:root {
    --navy: #0c2d62;
    --navy-deep: #081a38;
    --gold: #d7af48;
    --gold-soft: #f2e1aa;
    --ink: #1a2740;
    --muted: #6b7687;
    --paper: #f5f7fb;
    --white: #ffffff;
    --shadow: 0 25px 60px rgba(5, 16, 36, 0.16);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Montserrat', sans-serif;
    color: var(--ink);
    background: var(--white);
}

a {
    color: var(--navy);
    text-decoration: none;
}

a:hover {
    color: var(--gold);
}

.skip-link {
    position: absolute;
    left: 1rem;
    top: 1rem;
    z-index: 2000;
    padding: 0.75rem 1rem;
    background: var(--navy);
    color: var(--white);
}

.navbar {
    padding: 1rem 0;
    background: rgba(8, 26, 56, 0.24);
    backdrop-filter: blur(12px);
    transition: background-color 0.25s ease, box-shadow 0.25s ease;
}

.navbar.is-scrolled {
    background: rgba(8, 26, 56, 0.92);
    box-shadow: 0 10px 35px rgba(5, 16, 36, 0.25);
}

.brand-logo,
.footer-logo {
    width: 58px;
    height: auto;
}

.navbar-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.nav-link {
    color: rgba(255, 255, 255, 0.88);
    font-weight: 600;
    margin-left: 0.6rem;
}

.dropdown-menu {
    border: 0;
    border-radius: 1rem;
    padding: 0.7rem;
    box-shadow: 0 20px 45px rgba(5, 16, 36, 0.18);
}

.dropdown-item {
    border-radius: 0.7rem;
    font-weight: 600;
    padding: 0.7rem 0.9rem;
}

.dropdown-item:hover,
.dropdown-item:focus {
    background: #eef3fb;
    color: var(--navy);
}

.nav-link:hover,
.nav-link:focus {
    color: var(--gold-soft);
}

.hero-section {
    position: relative;
}

.hero-slide {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background-position: center;
    background-size: cover;
    padding: 7rem 0 4rem;
}

.hero-content {
    max-width: 700px;
    color: var(--white);
}

.eyebrow,
.section-tag,
.card-kicker {
    display: inline-block;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    font-size: 0.78rem;
    font-weight: 800;
    color: var(--gold);
    margin-bottom: 1rem;
}

.hero-content h1,
.section h2,
.site-footer h3 {
    font-family: 'Source Serif 4', serif;
}

.history-title {
    font-family: 'Source Serif 4', serif;
    font-size: clamp(2.6rem, 5vw, 4.2rem);
    line-height: 1.08;
}

.hero-content h1 {
    font-size: clamp(2.7rem, 6vw, 4.9rem);
    line-height: 1.04;
    margin-bottom: 1.25rem;
}

.hero-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.88);
    max-width: 620px;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.btn-brand {
    background: var(--gold);
    color: var(--navy-deep);
    border: 1px solid var(--gold);
    padding: 0.92rem 1.5rem;
    font-weight: 700;
}

.btn-brand:hover,
.btn-brand:focus {
    background: #e6c567;
    border-color: #e6c567;
    color: var(--navy-deep);
}

.section {
    padding: 6rem 0;
}

.section-overview {
    margin-top: -4rem;
    position: relative;
    z-index: 5;
}

.info-card,
.stat-card,
.contact-card,
.map-card {
    background: var(--white);
    border-radius: 1.5rem;
    box-shadow: var(--shadow);
}

.info-card {
    padding: 2rem;
    height: 100%;
}

.info-card h2,
.section h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.1;
    margin-bottom: 1rem;
}

.stats-grid {
    display: grid;
    gap: 1.2rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    height: 100%;
}

.stat-card {
    padding: 1.8rem;
}

.stat-card strong {
    display: block;
    font-size: 1.2rem;
    margin-bottom: 0.6rem;
    color: var(--navy);
}

.objectives-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.objective-card,
.objective-block,
.objective-highlight,
.objective-metrics {
    background: var(--white);
    border-radius: 1.5rem;
    box-shadow: var(--shadow);
}

.objective-card,
.objective-block {
    padding: 2rem;
}

.objective-card h3,
.objective-block h3 {
    color: var(--navy);
    margin-bottom: 1rem;
    font-size: 1.4rem;
    font-weight: 800;
}

.values-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.values-list span {
    padding: 0.7rem 1rem;
    border-radius: 999px;
    background: #eef3fb;
    color: var(--navy);
    font-weight: 700;
}

.objective-list {
    margin: 0;
    padding-left: 1.2rem;
    color: var(--muted);
    display: grid;
    gap: 0.8rem;
}

.objective-highlight,
.objective-metrics {
    padding: 1.6rem;
    height: 100%;
}

.objective-highlight small,
.objective-metrics small {
    display: block;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--gold);
    font-weight: 800;
    margin-bottom: 0.6rem;
}

.objective-highlight strong,
.objective-metrics strong {
    display: block;
    color: var(--navy);
    font-size: 1.2rem;
    line-height: 1.5;
}

.objective-metrics {
    display: grid;
    gap: 1rem;
}

.photo-frame {
    position: relative;
}

.message-copy p,
.section p {
    line-height: 1.85;
    color: var(--muted);
}

.signature-box {
    margin-top: 2rem;
    padding: 1.5rem 1.75rem;
    border-left: 4px solid var(--gold);
    background: linear-gradient(180deg, #faf7ec, #ffffff);
    border-radius: 0 1rem 1rem 0;
    display: grid;
    gap: 0.35rem;
}

.signature-box strong,
.signature-box span,
.signature-box em {
    display: block;
}

.section-dark {
    background: linear-gradient(180deg, var(--navy-deep), var(--navy));
}

.section-dark h2,
.section-dark p,
.section-dark a {
    color: var(--white);
}

.section-dark p {
    color: rgba(255, 255, 255, 0.78);
}

.pill-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-top: 2rem;
}

.pill-links a {
    display: inline-flex;
    align-items: center;
    padding: 0.8rem 1.1rem;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    color: var(--white);
}

.interactive-section {
    background-color: #001689;
    background-image: linear-gradient(rgba(0, 22, 137, 0.85), rgba(0, 22, 137, 0.85)), url("../../img/fondo.jpg");
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    color: var(--white);
}

.section-head {
    max-width: 760px;
    margin: 0 auto 2rem;
}

.section-head p,
.interactive-notes p {
    color: rgba(255, 255, 255, 0.8);
}

.hero-history {
    padding-top: 10rem;
    padding-bottom: 2rem;
    background-color: #001689;
    background-image: linear-gradient(rgba(0, 22, 137, 0.88), rgba(0, 22, 137, 0.82)), url("../../img/fondo.jpg");
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    color: var(--white);
}

.history-layout {
    display: grid;
    gap: 1.5rem;
}

.hero-history .section-head p,
.hero-history .section-tag,
.hero-history .history-title {
    color: var(--white);
}

.history-card {
    background: #ffffff;
    border-radius: 1.5rem;
    box-shadow: var(--shadow);
    padding: 2rem;
}

.history-card h3 {
    margin-top: 1.6rem;
    margin-bottom: 0.7rem;
    color: var(--navy);
    font-size: 1.2rem;
    font-weight: 800;
}

.history-card-split {
    display: grid;
    grid-template-columns: 1.5fr 0.9fr;
    gap: 2rem;
    align-items: center;
}

.history-card-split.reverse {
    grid-template-columns: 0.9fr 1.5fr;
}

.history-card-split.reverse > div {
    order: 2;
}

.history-card-split.reverse .history-figure {
    order: 1;
}

.history-figure {
    margin: 0;
}

.history-points {
    margin: 0;
    padding-left: 1.25rem;
    color: var(--muted);
}

.mesa-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
}

.mesa-card {
    background: var(--white);
    border-radius: 1.5rem;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.mesa-card-trigger {
    display: block;
    width: 100%;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: zoom-in;
}

.mesa-card-image {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    display: block;
}

.mesa-card-body {
    padding: 1.2rem 1.2rem 1.4rem;
}

.mesa-card-body h3 {
    font-size: 1.1rem;
    margin: 0 0 0.35rem;
    color: var(--navy);
}

.mesa-card-body p {
    margin: 0;
    color: var(--muted);
    line-height: 1.5;
}

.image-modal-content {
    border-radius: 1.2rem;
}

.interest-grid {
    display: grid;
    gap: 1.5rem;
}

.interest-card {
    display: grid;
    grid-template-columns: 280px 1fr;
    background: var(--white);
    border-radius: 1.5rem;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.interest-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: #eef3fb;
    padding: 2rem;
}

.interest-card-body {
    padding: 2rem;
}

.interest-card-body h2 {
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    margin-bottom: 1rem;
}

.program-grid,
.program-grid-media,
.program-file-list {
    display: grid;
    gap: 1.5rem;
}

.program-grid {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.program-card,
.program-content-card,
.program-file-item,
.program-media-card {
    background: var(--white);
    border-radius: 1.5rem;
    box-shadow: var(--shadow);
}

.program-card,
.program-content-card {
    padding: 2rem;
}

.program-card h2 {
    font-size: 1.7rem;
    color: var(--navy);
    margin-bottom: 1rem;
}

.program-card p {
    margin-bottom: 1.5rem;
}

.program-carousel {
    margin-bottom: 2rem;
    border-radius: 1.5rem;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.program-carousel-image,
.program-media-image {
    width: 100%;
    display: block;
    object-fit: cover;
}

.program-carousel-image {
    max-height: 560px;
}

.program-grid-media {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    margin-bottom: 2rem;
}

.program-media-card {
    overflow: hidden;
    margin: 0;
}

.program-media-image {
    aspect-ratio: 4 / 3;
}

.program-content-card {
    line-height: 1.85;
    color: var(--muted);
}

.program-content-card h1,
.program-content-card h2,
.program-content-card h3,
.program-content-card h4 {
    color: var(--navy);
    margin-top: 1.5rem;
    margin-bottom: 0.9rem;
}

.program-content-card iframe,
.program-content-card video {
    max-width: 100%;
    border-radius: 1rem;
}

.program-files {
    margin-top: 2.5rem;
}

.program-file-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
}

.program-file-item strong {
    color: var(--navy);
}

.program-file-item span {
    color: var(--muted);
    font-weight: 700;
}

#Capa_1 {
    transition: ease-in-out 0.3s;
    width: min(700px, 100%);
    margin: auto;
    display: block;
    padding-top: 25px;
}

.cls-1 {
    fill: rgba(255, 255, 255, 0.17);
    stroke: #fd0;
    stroke-linejoin: round;
    stroke-width: 3px;
    transition: ease-in-out 0.3s;
    cursor: pointer;
}

.cls-2,
.cls-3,
.cls-4 {
    transition: ease-in-out 0.3s;
    fill: #fd0;
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    cursor: pointer;
}

.cls-2 {
    font-size: 29px;
}

.cls-3 {
    font-size: 25px;
}

.cls-4 {
    font-size: 19px;
}

.video-hotspot:hover .cls-1,
.video-hotspot:focus .cls-1 {
    fill: #e2211c;
}

.center {
    padding: 30px 0 10px;
    text-align: center;
}

#image-logo {
    animation: fadeInVanish 0.6s ease-in-out;
}

#Capa_1 a {
    animation: fadeIn 0.4s ease-in both;
    text-decoration: none;
}

#Capa_1 a:nth-of-type(1) { animation-delay: 0.6s; }
#Capa_1 a:nth-of-type(2) { animation-delay: 0.7s; }
#Capa_1 a:nth-of-type(3) { animation-delay: 0.8s; }
#Capa_1 a:nth-of-type(4) { animation-delay: 0.9s; }
#Capa_1 a:nth-of-type(5) { animation-delay: 1s; }
#Capa_1 a:nth-of-type(6) { animation-delay: 1.1s; }
#Capa_1 a:nth-of-type(7) { animation-delay: 1.2s; }
#Capa_1 a:nth-of-type(8) { animation-delay: 1.3s; }

.club-list {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0 0;
    display: grid;
    gap: 0.8rem;
}

.club-list-horizontal {
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
}

.club-list li {
    padding: 0.95rem 1rem;
    background: var(--paper);
    border-left: 4px solid var(--gold);
    border-radius: 0.8rem;
    font-weight: 600;
}

.map-card {
    padding: 1rem;
}

#mapa {
    min-height: 530px;
    border-radius: 1rem;
    overflow: hidden;
}

.section-contact {
    background: linear-gradient(180deg, #eef3fb, #ffffff);
}

.contact-data {
    display: grid;
    gap: 1rem;
    margin-top: 2rem;
}

.contact-data a {
    font-weight: 700;
}

.contact-card {
    padding: 2rem;
}

.form-control,
.form-select {
    border-radius: 0.85rem;
    padding: 0.9rem 1rem;
    border: 1px solid #d0d8e7;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 0.2rem rgba(215, 175, 72, 0.18);
}

.form-text {
    display: inline-block;
    margin-top: 0.5rem;
    color: var(--muted);
}

.hp-field {
    position: absolute;
    left: -9999px;
    opacity: 0;
    pointer-events: none;
}

.modal-content {
    border: 0;
    border-radius: 1.2rem;
    overflow: hidden;
}

.video-fallback {
    position: absolute;
    inset: 0;
    background: #0b1220;
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    text-align: center;
    padding: 2rem;
}

.site-footer {
    background: var(--navy-deep);
    color: rgba(255, 255, 255, 0.76);
    padding: 4rem 0 2rem;
}

.footer-grid {
    display: grid;
    gap: 2rem;
    grid-template-columns: 1.5fr 1fr 1fr;
}

.site-footer h3 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: var(--white);
}

.site-footer ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 0.7rem;
}

.site-footer a {
    color: rgba(255, 255, 255, 0.86);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    margin-top: 2rem;
    padding-top: 1.5rem;
}

.whatsapp-float {
    position: fixed;
    right: 1.2rem;
    bottom: 1.2rem;
    z-index: 1030;
    width: 64px;
    height: 64px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #25d366;
    border-radius: 50%;
    box-shadow: 0 18px 35px rgba(37, 211, 102, 0.35);
}

.whatsapp-float img {
    width: 34px;
    height: 34px;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translate3d(0, -20%, 0);
    }

    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

@keyframes fadeInVanish {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@media (max-width: 991.98px) {
    .navbar-collapse {
        background: rgba(8, 26, 56, 0.98);
        margin-top: 1rem;
        padding: 1rem;
        border-radius: 1rem;
    }

    .section {
        padding: 4.5rem 0;
    }

    .section-overview {
        margin-top: 0;
    }

    .stats-grid,
    .footer-grid,
    .history-card-split,
    .history-card-split.reverse,
    .interest-card {
        grid-template-columns: 1fr;
    }

    .objectives-grid {
        grid-template-columns: 1fr;
    }

    .footer-bottom {
        flex-direction: column;
    }
}

@media (max-width: 767.98px) {
    .hero-slide {
        min-height: 88vh;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .contact-card,
    .info-card,
    .stat-card {
        padding: 1.4rem;
    }

    #mapa {
        min-height: 380px;
    }

    .whatsapp-float {
        width: 56px;
        height: 56px;
    }
}
