/* ===================================================================
   CSS COMPLETO Y FINAL para la página "Quienes Somos"
   - CORREGIDO: Fuentes para h1, h2, h3.
   - CORREGIDO: Fondos de sección y tarjetas en blanco puro.
   - CORREGIDO: Texto de sección y tarjetas en negro.
   =================================================================== */

/* ==================== FUENTES ==================== */
@font-face {
    font-family: 'Facon';
    src: url('/static/fonts/Facon.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Wedgie Regular';
    src: url('/static/fonts/Wedgie Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

/* ==================== ESTILOS GLOBALES ==================== */
html,
body {
    font-family: Arial, Helvetica, sans-serif;
    background-color: #ffffff; /* FONDO BLANCO PARA TODO */
    color: #333;
    margin: 0;
    padding: 0;
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

/* ==================== HEADER ==================== */
header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    height: 15vh;
    padding: 0 2rem;
    background-color: #ffffff;
    border-bottom: 2px solid #000;
    box-sizing: border-box;
}

header .logotipo {
    height: 10vh;
    width: auto;
    flex-shrink: 0;
}

header h1 {
    /* CORRECCIÓN: Aplicamos la fuente directamente aquí para asegurar que funcione */
    font-family: 'Wedgie Regular', sans-serif;
    flex-grow: 1;
    text-align: center;
    font-size: clamp(2rem, 5vw, 3.5rem);
    color: #000;
    text-shadow: 2px 2px 4px #00ff3c;
    margin: 0 1rem;
}

header .header-buttons {
    display: flex;
    gap: 0.75rem;
}

header .header-buttons a {
    display: inline-block;
    padding: 0.5rem 1rem;
    font-family: 'Wedgie Regular', sans-serif;
    font-size: clamp(0.8rem, 1.2vw, 1rem);
    color: #000;
    background-color: #fff;
    border: 1px solid #00ff3c;
    border-radius: 4px;
    text-decoration: none;
    text-shadow: 1px 1px 2px #90ee90;
    transition: all 0.2s ease;
}

header .header-buttons a:hover {
    background-color: #00ff3c;
    color: #ff6600;
    text-shadow: none;
    transform: translateY(-2px);
}

/* ==================== NAV ==================== */
nav {
    background-color: #ffffff;
    border-bottom: 1px solid #ddd;
    padding: 0.5rem 0;
    display: flex;
    justify-content: center;
}

.nav-links {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin: 0;
    padding: 0;
}

.nav-links a {
    display: block;
    padding: 0.5rem 1.5rem;
    font-family: 'Wedgie Regular', sans-serif;
    font-size: clamp(1rem, 1.5vw, 1.5rem);
    color: #000;
    background-color: #fff;
    border: 1px solid #28a745;
    border-radius: 4px;
    text-decoration: none;
    text-shadow: 1px 1px 2px #90ee90;
    transition: all 0.3s ease;
}

.nav-links a:hover {
    background-color: #28a745;
    color: #ff6600;
    text-shadow: none;
}

/* ==================== CONTENIDO PRINCIPAL ==================== */
main {
    flex: 1;
    padding: 2rem 1rem;
    box-sizing: border-box;
    background-color: #ffffff;
}

section {
    max-width: 1200px;
    margin: 0 auto 3rem auto;
}

section h2 {
    /* CORRECCIÓN: Aplicamos la fuente directamente aquí */
    font-family: 'Wedgie Regular', sans-serif;
    font-size: 2.5rem;
    color: #28a745;
    text-align: center;
    margin-bottom: 1.5rem;
}

/* --- Sección "Quienes Somos" --- */
.nosotros-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    line-height: 1.7;
    /* CORRECCIÓN: Texto negro/oscuro */
    color: #333;
}

.nosotros-content img {
    width: 100%;
    border-radius: 10px;
    margin: 1.5rem 0;
}

/* --- Sección "Nuestro Equipo" (Fichas/Cards) --- */
.cards-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.card {
    /* CORRECCIÓN: Fondo blanco y borde sutil */
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    padding: 1.5rem 1rem;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}

.card h3 {
    /* CORRECCIÓN: Aplicamos la fuente directamente aquí */
    font-family: 'Wedgie Regular', sans-serif;
    color: #28a745;
    margin: 0 0 0.5rem 0;
    font-size: 1.4rem;
}

.card p {
    /* CORRECCIÓN: Texto negro/oscuro */
    color: #333;
    margin: 0.25rem 0;
    font-size: 1rem;
}

/* ==================== ESTILOS ADICIONALES (Slider, Article) ==================== */
.slider {
    overflow-x: auto;
    white-space: nowrap;
    width: 100%;
    scroll-snap-type: x mandatory;
}
.slide-track {
    display: inline-flex;
}
.slide {
    flex: 0 0 auto;
    width: 100vw;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: space-around;
    padding: 20px;
    box-sizing: border-box;
    color: #000;
    background-color: #fff;
}
.article {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    border: 1px solid #ddd;
    margin: 20px 0;
    box-sizing: border-box;
}

/* ==================== FOOTER ==================== */
footer {
    background-color: #343a40;
    padding: 2rem;
    color: #f8f9fa;
    text-align: center;
    margin-top: auto;
    font-family: 'Facon', sans-serif;
}

footer a {
    color: #00ff3c;
    text-decoration: none;
    padding: 0 0.5rem;
}

footer a:hover {
    text-decoration: underline;
}

/* ==================== MEDIA QUERIES (RESPONSIVE) ==================== */
@media screen and (max-width: 992px) {
    /* No se necesita la regla para cards-container aquí porque
       usamos auto-fit, que es automáticamente responsive. */
}

@media screen and (max-width: 768px) {
    header {
        flex-direction: column;
        height: auto;
        padding: 1rem;
        gap: 1rem;
    }
    header h1 {
        font-size: 2.2rem;
        order: -1;
    }
}

@media screen and (max-width: 480px) {
    body {
        font-size: 14px;
    }
    header h1 {
        font-size: 1.8rem;
    }
    .nav-links {
        flex-direction: column;
        align-items: center;
    }
    section h2 {
        font-size: 2rem;
    }
}
