body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f9;
    color: #333;
    overflow-x: hidden;
}

header {
    height: auto;
    min-height: 120px;
    background: linear-gradient(to bottom, #322400, #ffbf00);
    padding: 1.5rem;
    text-align: center;
    color: white;
}

/* Título principal */
header h1 {
    margin: 0;
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-family: 'Times New Roman', Times, serif;
}

header p {
    margin: 0.5rem 0 0;
    font-size: clamp(0.8rem, 2vw, 1rem);
    color: white;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Barra de navegación */
nav {
    height: auto;
    overflow: hidden;
    background: #ffbf00;
    padding: 0.5rem;
    color: white;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

nav ul li {
    margin: 0.5rem;
}

nav ul li a {
    color: #fff;
    text-decoration: none;
    font-size: 1rem;
    font-weight: bold;
    transition: color 0.3s;
    display: block;
    padding: 0.3rem 0.5rem;
}

nav ul li a:hover {
    color: #b59100;
}

/* Seccion de la imagen */
.sol {
    position: relative;
    text-align: center;
    margin: 1rem auto 2rem;
    width: 90%;
    max-width: 800px;
}

.sol-imagen {
    width: 100%;
    height: auto;
    max-height: 750px;
    border-radius: 30px;
    margin: 0 auto;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.sol-contenido {
    position: absolute;
    bottom: 20px;
    left: 0;
    right: 0;
    color: white;
    text-align: center;
    padding: 20px;
}

.sol-contenido h1 {
    font-size: clamp(1.5rem, 5vw, 2.5rem);
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.sol-contenido p {
    font-size: clamp(0.9rem, 3vw, 1.2rem);
    margin: 0;
    color: white;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

/*Pagina principal*/
main {
    padding: 1.5rem;
    width: 90%;
    max-width: 900px;
    margin: 0 auto 5rem;
    background: #ffffff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
}

section {
    margin-bottom: 2rem;
}

section h1 {
    font-size: clamp(1.4rem, 4vw, 1.75rem);
    border-bottom: 2px solid #070700;
    padding-bottom: 0.5rem;
    color: #f8c00b;
}

section p,
section ul {
    font-size: 1rem;
    line-height: 1.6;
}

/* indice */
.indice {
    margin: 20px auto;
    padding: 5%;
    width: 90%;
    max-width: 600px;
    background: linear-gradient(135deg, #ffbf00, #dea004);
    border-radius: 25px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    
}

.indice > ul > li {
    text-align: left;
    margin: 1rem 0;
}

.indice a {
    color: #fff;
    font-family: Verdana, Geneva, Tahoma, sans-serif;
    text-decoration: none;
    font-weight: bold;
    font-size: clamp(1.1rem, 3vw, 1.2rem); /* tamaño para puntos principales */
    transition: color 0.3s ease, transform 0.3s ease;
    display: inline-block;
    margin: 0.5rem;
}

.indice a:hover {
    color: #ffc400;
    transform: scale(1.1);
}

/* Tamaños de fuente para subniveles */
.indice ul ul > li > a {
    font-size: clamp(0.9rem, 2.5vw, 1rem); /* subpuntos como 4.1, 5.1... */
    font-weight: bold;
    
}

.indice ul ul ul > li > a {
    font-size: clamp(0.8rem, 2vw, 0.95rem); /* sub-subpuntos como 7.2.1... */
    font-weight: bold;
}

/* Sección de Equipo*/
.equipo {
    padding: 2rem 0;
}

/* Contenedor principal */
.contenedor-equipo {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Título de la sección */
.contenedor-equipo h2 {
    font-size: clamp(1.8rem, 4vw, 2.2rem);
    color: #f8c00b;
    text-align: center;
    margin-bottom: 2rem;
    position: relative;
    padding-bottom: 1rem;
}

.contenedor-equipo h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: #f8c00b;
}

/* Grid para las tarjetas */
.grid-equipo {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    gap: 2rem;
    margin-top: 2rem;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

/* Estilos base para todas las tarjetas de miembros */
.miembro01, .miembro02, .miembro03 , .miembro04{
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    padding: 1.5rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
    border: 1px solid #f0f0f0;
    margin-left: 0;
    width: 100%;
    max-width: 350px;
    text-align: center;
}

.miembro03 ,.miembro04 {
    grid-column: 1 / span 2; 
    justify-self: center; /* Center the card horizontally */
    margin-top: 1rem; 
}

/* Efectos de hover */
.miembro01:hover, .miembro02:hover, .miembro03:hover , .miembro04:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* Barra de color superior */
.miembro01::before, .miembro02::before, .miembro03::before , .miembro04::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, #ffbf00, #dea004);
}

/* Elementos dentro de las tarjetas */
.miembro01 h3, .miembro02 h3, .miembro03 h3 , .miembro04 h3 {
    color: #333;
    font-size: clamp(1.2rem, 3vw, 1.4rem);
    margin-bottom: 1rem;
    font-weight: 600;
}

.miembro01 p, .miembro02 p, .miembro03 p , .miembro04 p {
    margin-bottom: 1.25rem;
}

.miembro01 textarea, .miembro02 textarea, .miembro03 textarea , .miembro04 textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #eaeaea;
    border-radius: 8px;
    background-color: #f9f9f9;
    color: #555;
    font-size: 0.9rem;
    resize: none;
    transition: border-color 0.3s ease;
    cursor: default;
    height: auto;
    overflow: hidden;
}

/* Estilo de los enlaces */
.miembro01 a, .miembro02 a, .miembro03 a , .miembro04 a {
    display: inline-flex;
    align-items: center;
    color: #ffbf00;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
    margin-top: 0.5rem;
}

.miembro01 a:hover, .miembro02 a:hover, .miembro03 a:hover , .miembro04 a:hover {
    color: #b59100;
}

.miembro01 a svg, .miembro02 a svg, .miembro03 a svg , .miembro04 a svg {
    margin-left: 5px;
    transition: transform 0.3s ease;
}

.miembro01 a:hover svg, .miembro02 a:hover svg, .miembro03 a:hover svg , .miembro04 a:hover svg {
    transform: translateX(3px);
}


textarea {
    width: 100%;
    max-width: 340px;
    height: 20px;
    padding: 10px;
    border: 1px solid #ffc400;
    border-radius: 15px;
    font-size: 1em;
    resize: none;
    cursor: pointer;
    box-sizing: border-box;
}

textarea:focus {
    outline: 2px solid #000000;
}

p {
    font-size: 1em;
    color: #555;
}

section ul {
    list-style: disc;
    padding-left: 2rem;
}

footer {
    font-family: Arial, Helvetica, sans-serif;
    background: #333;
    color: white;
    text-align: center;
    padding: 1rem;
    position: relative;
    margin-top: auto;
    bottom: unset;
    width: 100%;
    box-shadow: 0 -2px 4px rgba(0, 0, 0, 0.2);
    z-index: 100;
}

footer p {
    margin: 0;
    color: white;
    font-size: 0.9rem;
}

/* Media queries actualizados para diferentes tamaños de pantalla */
/* Tablets */
@media (max-width: 768px) {
    header {
        padding: 1rem;
    }
    
    main {
        padding: 1rem;
        width: 95%;
    }
    .grid-equipo {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        max-width: 500px;
        margin-left: auto;
        margin-right: auto;
    }

    .miembro01, .miembro02, .miembro03 {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        justify-self: center;
        margin: 0 auto;
        margin-left: 0;
        margin-right: 0;
    }

    .miembro03 {
        grid-column: 1;
        margin-top: 0
    }
    
    .indice {
        width: 95%;
    }
}

/* Móviles */
@media (max-width: 480px) {
    header {
        min-height: 100px;
        padding: 0.8rem;
    }
    
    nav ul {
        flex-direction: column;
        align-items: center;
    }
    
    nav ul li {
        margin: 0.3rem 0;
    }
    
    .sol-contenido {
        position: relative;
        background-color: rgba(0, 0, 0, 0.6);
        border-radius: 0 0 30px 30px;
        margin-top: -5px;
    }
    
    textarea {
        max-width: 100%;
    }
    
    main {
        margin-bottom: 4rem;
    }
    .contenedor-equipo {
        padding: 0 1rem;
    }
    
    .miembro01, .miembro02, .miembro03 {
        padding: 1.25rem;
    }
}

/* Pantallas muy pequeñas */
@media (max-width: 320px) {
    header h1 {
        font-size: 1.3rem;
    }

    nav ul li a {
        font-size: 0.9rem;
        padding: 0.2rem;
    }
    
    .sol-contenido h1 {
        font-size: 1.3rem;
    }
    
    .sol-contenido p {
        font-size: 0.8rem;
    }
}

@supports (-webkit-touch-callout: none) {
    .grid-equipo {
        display: -webkit-box;
        display: -webkit-flex;
        -webkit-box-pack: center;
        -webkit-justify-content: center;
        justify-content: center;
        display: flex;
        flex-wrap: wrap;
    }
}
