﻿:root {
    --navy: #0b1c2d;
    --charcoal: #1e1e1e;
    --light-gray: #f4f6f8;
    --gold: #c9a24d;
    --orange: #ff9100;
    --cyan: #1cb7e9;
    --white: #ffffff;    
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

.container.narrow {
    max-width: 900px;
}

/* Header de sección */
.about-header {
    margin-bottom: 2rem;
}

    .about-header h2 {
        font-size: 2.4rem;
        margin-bottom: 0.4rem;
    }

.about-subtitle {
    font-size: 1rem;
    color: var(--orange);
    font-weight: 500;
    letter-spacing: 0.5px;
}

/* Contenido */
.about-content p {
    margin-bottom: 1.4rem;
}

/* Sección destacada (Misión) */
.about-section.highlight {
    background-color: var(--light-gray);
}

.about-content.emphasis p {
    font-size: 1.1rem;
    font-weight: 500;
}

#nuestra-historia {
    padding: 4rem 2rem;
}

#porque-mision {
    padding: 4rem 2rem;
}

/* Targets personal */
.targets {
    padding: 6rem 0; /* aire vertical */
    background-color: var(--white);
}

.section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.title-card {
    font-size: 2.4rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

    /* underline limpio, sin animaciones infantiles */
    .title-card::after {
        content: "";
        display: block;
        width: 60px;
        height: 4px;
        background-color: var(--orange);
        margin: 0.8rem auto 0;
        border-radius: 2px;
    }

.section-subtitle {
    font-size: 1rem;
    color: #666;
    margin-top: 0.5rem;
}

.target-special {
    margin-top: 3rem;
    padding: 0 2rem; /* padding lateral */
    max-width: 1200px; /* límite real */
    margin-left: auto;
    margin-right: auto;
}


.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
}

.team-card {
    background-color: var(--white);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid var(--gold);
    border-top: 6px solid var(--gold);
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

    .team-card:hover {
        transform: translateY(-6px);
        box-shadow: 0 18px 45px rgba(0,0,0,0.15);
    }

    .team-card img {
        width: 100%;
        max-width: 220px;
        margin: 0 auto 1.5rem;
        border-radius: 12px;
        object-fit: cover;
    }

    .team-card h3 {
        font-size: 1.2rem;
        font-weight: 700;
        color: var(--navy);
        margin-bottom: 0.9rem;
    }

    .team-card span {
        display: inline-block;
        margin-top: 0.6rem;
        padding: 0.55rem 1.1rem;
        font-size: 0.9rem;
        font-weight: 500;
        letter-spacing: 0.4px;
        color: var(--navy);
        background: linear-gradient( 135deg, rgba(255, 255, 255, 0.85), rgba(244, 246, 248, 0.9) );
        border: 1px solid rgba(201, 162, 77, 0.45); /* gold suave */
        border-radius: 999px;
        box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        pointer-events: none; /* deja claro que NO es interactivo */
    }

    .team-card .cargo-directivo {
        border-color: var(--gold);
    }

    .team-card .cargo-tecnico {
        border-color: var(--cyan);
    }

/* Valores */
#valores-significado {
    background-color: var(--light-gray);
    padding: 5rem 2rem;
}

.benefits-heading h2 {
    text-align: center;
    font-size: 2.5rem;
    color: var(--navy);
    margin-bottom: 1rem;
}

    .benefits-heading h2::after {
        content: "";
        display: block;
        width: 60px;
        height: 4px;
        background-color: var(--orange);
        margin: 1rem auto 0;
        border-radius: 2px;
    }

.benefits-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
}

.benefit-card {
    background-color: var(--white);
    padding: 2.5rem 2rem;
    border-radius: 12px;
    border-left: 5px solid var(--orange);
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

    .benefit-card:hover {
        transform: translateY(-6px);
        box-shadow: 0 18px 45px rgba(0,0,0,0.15);
    }

    .benefit-card .title {
        text-align: center;
        font-size: 1.5rem;
        font-weight: 700;
        color: var(--navy);
        margin-bottom: 1rem;
        position: relative;
    }

        .benefit-card .title::after {
            content: "";
            display: block;
            width: 60px;
            height: 4px;
            background-color: var(--orange);
            margin: 1rem auto 0;
            border-radius: 2px;
        }

    /* Texto */
    .benefit-card ul {
        list-style: none;
        padding: 0;
        margin: 0;
    }

        .benefit-card ul li {
            font-size: 1rem;
            color: #444;
            line-height: 1.7;
            padding-left: 1.2rem;
            position: relative;
        }

            .benefit-card ul li::before {
                content: "";
                position: absolute;
                left: 0;
                top: 0.6rem;
                width: 6px;
                height: 6px;
                background-color: var(--orange);
                border-radius: 50%;
            }


/* Carrusel */

.carousel-gallery-container {
    padding: 3rem 0;
    text-align: center;
}

    .carousel-gallery-container h2 {
        font-size: 2.3rem;
        color: var(--navy);
        font-weight: 700;
        margin-bottom: 1rem;
        position: relative;
    }

        .carousel-gallery-container h2::after {
            content: "";
            display: block;
            width: 60px;
            height: 4px;
            background-color: var(--orange);
            margin: 1rem auto 0;
            border-radius: 2px;
        }


.carousel-gallery {
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: auto;
    max-width: 100%;
}

    .carousel-gallery::-webkit-scrollbar {
        height: 8px;
    }

    .carousel-gallery::-webkit-scrollbar-thumb {
        background: var(--azul3);
        border-radius: 4px;
    }

    .carousel-gallery::-webkit-scrollbar-track {
        background: var(--gris2);
        border-radius: 4px;
    }

.gallery-track {
    display: flex;
    gap: 1.5rem;
    justify-content: flex-start;
    transition: transform 0.5s ease;
    scroll-behavior: smooth;
    padding: 1rem 0;
}

    .gallery-track::-webkit-scrollbar {
        display: flex;
    }

.gallery-item {
    flex: 0 0 auto;
    width: 320px;
    aspect-ratio: 1/1;
    height: auto;
    border-radius: 1rem;
    background: #ccc;
    scroll-snap-align: start;
    transition: transform 0.35s ease, filter 0.35s ease;
    will-change: transform;
}

    .gallery-item.zoomed {
        transform: scale(1.05);
        transition: transform 0.3s ease;
    }

.carousel-gallery a:hover .gallery-item {
    transform: scale(1.03);
    box-shadow: 0 14px 30px rgba(0,0,0,0.4);
}

.gallery-item[hidden] {
    display: none !important;
}

@media (min-width: 1200px) {
    .gallery-item {
        width: 280px;
    }
}

@media (prefers-color-scheme: dark) {
    :root {
        --navyd: #07121e;
        --charcoald: #e6e9ee;
        --light-grayd: #121c26;
        --whited: #0e1620;
        --goldd: #d4af37;
        --oranged: #ff9f1c;
        --cyand: #38c6ff;
    }

    body {
        background-color: var(--whited);
        color: var(--charcoald);
    }

    header {
        background-color: var(--navyd);
        box-shadow: 0 4px 20px rgba(0,0,0,.6);
    }

    h2, h3, h4 {
        color: var(--white) !important;
    }

    /* Secciones base */
    #nuestra-historia,
    #porque-mision,
    .targets,
    #valores-significado {
        background-color: var(--whited);
        color: var(--charcoald);
    }

    .about-section.highlight {
        background-color: var(--light-grayd);
    }

    /* Subtítulos */
    .about-subtitle {
        color: var(--oranged);
    }

    .section-subtitle {
        color: #a9b4c0;
    }

    /* Títulos */
    .about-header h2,
    .title-card,
    .benefits-heading h2,
    .carousel-gallery-container h2 {
        color: var(--charcoald);
    }

        .title-card::after,
        .benefits-heading h2::after,
        .carousel-gallery-container h2::after {
            background-color: var(--oranged);
        }

    /* Team Cards */
    .team-card {
        background-color: #16222e;
        border: 1px solid var(--goldd);
        border-top: 6px solid var(--goldd);
        box-shadow: 0 12px 35px rgba(0,0,0,0.6);
    }

        .team-card h3 {
            color: var(--charcoald);
        }

        .team-card span {
            background: linear-gradient( 135deg, rgba(22,34,46,0.9), rgba(27,39,51,0.9) );
            color: var(--charcoald);
            border: 1px solid rgba(212,175,55,0.5);
            box-shadow: 0 8px 20px rgba(0,0,0,0.6);
        }

        .team-card .cargo-directivo {
            border-color: var(--goldd);
        }

        .team-card .cargo-tecnico {
            border-color: var(--cyand);
        }

    /* Benefit cards */
    .benefit-card {
        background-color: #16222e;
        border-left: 5px solid var(--oranged);
        box-shadow: 0 12px 35px rgba(0,0,0,0.6);
    }

        .benefit-card .title {
            color: var(--charcoald);
        }

            .benefit-card .title::after {
                background-color: var(--oranged);
            }

        .benefit-card ul li {
            color: #a9b4c0;
        }

            .benefit-card ul li::before {
                background-color: var(--oranged);
            }

    /* Carousel */
    .carousel-gallery-container h2 {
        color: var(--charcoald);
    }

    .carousel-gallery::-webkit-scrollbar-thumb {
        background: var(--cyand);
    }

    .carousel-gallery::-webkit-scrollbar-track {
        background: #1b2733;
    }

    .gallery-item {
        background: #1b2733;
    }

    .carousel-gallery a:hover .gallery-item {
        box-shadow: 0 18px 40px rgba(0,0,0,0.7);
    }
}