/* GOES – Full Site Stylesheet */

/* ── Fuentes locales Roboto ──────────────────────────────── */
@font-face {
    font-family: 'Roboto';
    src: url('fuente/Roboto-Thin.ttf') format('truetype');
    font-weight: 100;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Roboto';
    src: url('fuente/Roboto-ThinItalic.ttf') format('truetype');
    font-weight: 100;
    font-style: italic;
    font-display: swap;
}
@font-face {
    font-family: 'Roboto';
    src: url('fuente/Roboto-ExtraLight.ttf') format('truetype');
    font-weight: 200;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Roboto';
    src: url('fuente/Roboto-Light.ttf') format('truetype');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Roboto';
    src: url('fuente/Roboto-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Roboto';
    src: url('fuente/Roboto-Medium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Roboto';
    src: url('fuente/Roboto-SemiBold.ttf') format('truetype');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Roboto';
    src: url('fuente/Roboto-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Roboto';
    src: url('fuente/Roboto-ExtraBold.ttf') format('truetype');
    font-weight: 800;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Roboto';
    src: url('fuente/Roboto-Black.ttf') format('truetype');
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}

/* Roboto Condensed — headings, nav, botones, topbar */
@font-face {
    font-family: 'Roboto Condensed';
    src: url('fuente/Roboto_Condensed-Thin.ttf') format('truetype');
    font-weight: 100;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Roboto Condensed';
    src: url('fuente/Roboto_Condensed-Light.ttf') format('truetype');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Roboto Condensed';
    src: url('fuente/Roboto_Condensed-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Roboto Condensed';
    src: url('fuente/Roboto_Condensed-Medium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Roboto Condensed';
    src: url('fuente/Roboto_Condensed-SemiBold.ttf') format('truetype');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Roboto Condensed';
    src: url('fuente/Roboto_Condensed-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Roboto Condensed';
    src: url('fuente/Roboto_Condensed-ExtraBold.ttf') format('truetype');
    font-weight: 800;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Roboto Condensed';
    src: url('fuente/Roboto_Condensed-Black.ttf') format('truetype');
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}

/* Roboto Semi Condensed — subtítulos, labels de sección */
@font-face {
    font-family: 'Roboto SemiCondensed';
    src: url('fuente/Roboto_SemiCondensed-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Roboto SemiCondensed';
    src: url('fuente/Roboto_SemiCondensed-Medium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Roboto SemiCondensed';
    src: url('fuente/Roboto_SemiCondensed-SemiBold.ttf') format('truetype');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Roboto SemiCondensed';
    src: url('fuente/Roboto_SemiCondensed-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --navy-deep: #030c1f;
    --navy: #071535;
    --navy-mid: #0d2460;
    --navy-b: #1a3a8f;
    --gold: #f0c040;
    --gold-d: #b8860b;
    --gold-m: rgba(240, 192, 64, .2);
    --red: #CF142B;
    --flag-b: #003087;
    --flag-y: #CF9B1E;
    --w: #f0f4ff;
    --wd: rgba(240, 244, 255, .65);
    --wg: rgba(240, 244, 255, .08);
    --ff-h: 'Roboto Condensed', 'Segoe UI', sans-serif;
    --ff-sc: 'Roboto SemiCondensed', 'Roboto Condensed', sans-serif;
    --ff-b: 'Roboto', system-ui, sans-serif;
    --orbit: 460px;
    --emblem: 240px;
    --icon: 48px;
    --r: calc(var(--orbit)/2 - var(--icon)/2 - 8px);
    --t: .25s ease;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--ff-b);
    background: var(--navy-deep);
    color: var(--w);
    overflow-x: hidden;
}

img {
    max-width: 100%;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

button {
    cursor: pointer;
    background: none;
    border: none;
    font-family: inherit;
}

svg {
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    display: block;
}

/* ── Top Bar ──────────────────────────────────────────────── */
.topbar {
    background: #000d1f;
    border-bottom: 1px solid rgba(240, 192, 64, .12);
    position: relative;
    z-index: 200;
}

.topbar__inner {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: .35rem 1.2rem;
}

.topbar__brand {
    display: flex;
    align-items: center;
    gap: .5rem;
    font-family: var(--ff-h);
    font-size: .72rem;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--gold);
    opacity: .85;
}

.topbar__dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--gold);
    animation: pdot 2s ease-in-out infinite;
}

@keyframes pdot {

    0%,
    100% {
        opacity: 1;
        transform: scale(1)
    }

    50% {
        opacity: .4;
        transform: scale(1.4)
    }
}

.topbar__social {
    display: flex;
    align-items: center;
    gap: .6rem;
}

.topbar__social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 4px;
    color: var(--wd);
    transition: color var(--t), background var(--t);
}

.topbar__social-link svg {
    width: 14px;
    height: 14px;
}

.topbar__social-link:hover {
    color: var(--gold);
    background: var(--gold-m);
}

/* ── Header ──────────────────────────────────────────────── */
.header {
    position: sticky;
    top: 0;
    z-index: 150;
    background: linear-gradient(180deg, rgba(3, 12, 31, .98), rgba(7, 21, 53, .97));
    border-bottom: 1px solid rgba(240, 192, 64, .15);
    backdrop-filter: blur(12px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, .5);
    transition: box-shadow .3s;
}

.header.scrolled {
    box-shadow: 0 4px 40px rgba(0, 0, 0, .8);
}

.header__inner {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    padding: .5rem 1.2rem;
    gap: 1.5rem;
}

.header__logo {
    display: flex;
    align-items: center;
    gap: .75rem;
    flex-shrink: 0;
    transition: opacity var(--t);
}

.header__logo:hover {
    opacity: .85;
}

.header__logo-img-wrap {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--navy-mid);
    border: 2px solid rgba(240, 192, 64, .4);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 16px rgba(240, 192, 64, .25);
}

.header__logo-img {
    width: 52px;
    height: 52px;
    object-fit: contain;
}

.header__logo-svg {
    width: 46px;
    height: 46px;
}

.header__logo-text {
    display: flex;
    flex-direction: column;
}

.header__logo-name {
    font-family: var(--ff-h);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--gold);
    letter-spacing: .12em;
    line-height: 1;
}

.header__logo-sub {
    font-family: var(--ff-b);
    font-size: .6rem;
    letter-spacing: .06em;
    color: var(--wd);
    line-height: 1.3;
    max-width: 140px;
}

.header__nav {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: .1rem;
}

.nav__list {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: .1rem;
    padding: .15rem 0;
}

.nav__list--secondary {
    border-top: 1px solid rgba(240, 192, 64, .1);
}

.nav__item {
    position: relative;
}

.nav__link {
    display: flex;
    align-items: center;
    gap: .25rem;
    padding: .38rem .75rem;
    font-family: var(--ff-h);
    font-size: .82rem;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--wd);
    border-radius: 4px;
    transition: color var(--t), background var(--t);
    white-space: nowrap;
}

.nav__link--sm {
    font-size: .75rem;
}

.nav__link:hover,
.nav__item--active>.nav__link {
    color: var(--gold);
}

.nav__item--active>.nav__link {
    position: relative;
}

.nav__item--active>.nav__link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: .75rem;
    right: .75rem;
    height: 2px;
    background: var(--gold);
    border-radius: 2px;
}

.nav__arrow {
    font-size: .6rem;
    opacity: .7;
    transition: transform .2s;
}

.nav__item--dropdown:hover .nav__arrow {
    transform: rotate(180deg);
}

.nav__dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 200px;
    background: rgba(6, 13, 34, .97);
    border: 1px solid rgba(240, 192, 64, .15);
    border-radius: 6px;
    padding: .4rem 0;
    box-shadow: 0 12px 40px rgba(0, 0, 0, .6);
    opacity: 0;
    pointer-events: none;
    transform: translateY(6px);
    transition: opacity .2s, transform .2s;
    z-index: 10;
}

.nav__item--dropdown:hover .nav__dropdown,
.nav__item--dropdown:focus-within .nav__dropdown {
    opacity: 1;
    pointer-events: all;
    transform: translateY(0);
}

.nav__drop-link {
    display: block;
    padding: .5rem 1.1rem;
    font-family: var(--ff-h);
    font-size: .8rem;
    letter-spacing: .06em;
    color: var(--wd);
    transition: color var(--t), background var(--t);
}

.nav__drop-link:hover {
    color: var(--gold);
    background: var(--wg);
}

.header__burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: .4rem;
    margin-left: auto;
    width: 38px;
    height: 38px;
    border-radius: 4px;
    border: 1px solid rgba(240, 192, 64, .25);
    align-items: center;
    justify-content: center;
    transition: background var(--t);
}

.header__burger:hover {
    background: var(--gold-m);
}

.header__burger span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--wd);
    border-radius: 2px;
    transition: transform .3s, opacity .3s;
}

.header__burger.open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.header__burger.open span:nth-child(2) {
    opacity: 0;
}

.header__burger.open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.mobile-nav {
    display: none;
    background: rgba(3, 12, 31, .98);
    border-top: 1px solid rgba(240, 192, 64, .12);
    max-height: 0;
    overflow: hidden;
    transition: max-height .4s cubic-bezier(.4, 0, .2, 1);
}

.mobile-nav.open {
    max-height: 80vh;
    overflow-y: auto;
}

.mobile-nav__list {
    padding: .5rem 0 1rem;
}

.mobile-nav__link {
    display: block;
    padding: .75rem 1.5rem;
    font-family: var(--ff-h);
    font-size: .95rem;
    letter-spacing: .08em;
    color: var(--wd);
    border-left: 3px solid transparent;
    transition: color var(--t), border-color var(--t), background var(--t);
}

.mobile-nav__link:hover {
    color: var(--gold);
    border-left-color: var(--gold);
    background: var(--wg);
}

/* ── Buttons ──────────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: .6rem 1.4rem;
    border-radius: 5px;
    font-family: var(--ff-h);
    font-size: .9rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    transition: transform .2s, box-shadow .2s, background .2s;
}

.btn--gold {
    background: linear-gradient(135deg, var(--gold), var(--gold-d));
    color: var(--navy-deep);
    box-shadow: 0 4px 18px rgba(240, 192, 64, .35);
}

.btn--gold:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(240, 192, 64, .55);
}

.btn--outline {
    background: transparent;
    color: var(--w);
    border: 1.5px solid rgba(240, 244, 255, .3);
}

.btn--outline:hover {
    background: var(--wg);
    border-color: rgba(240, 244, 255, .6);
    transform: translateY(-2px);
}

.btn--sm {
    font-size: .78rem;
    padding: .45rem 1rem;
}

/* ── Hero ─────────────────────────────────────────────────── */
.hero {
    position: relative;
    min-height: 100svh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
    padding-block: 6rem 5rem;
}

.hero__bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero__bricks {
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(0deg, transparent 0 18px, rgba(0, 0, 0, .35) 18px 19px), repeating-linear-gradient(90deg, transparent 0 38px, rgba(0, 0, 0, .2) 38px 39px), radial-gradient(ellipse 80% 60% at 50% 40%, #0d2460 0%, #071535 55%, #030c1f 100%);
}

.hero__overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 55% 70% at 50% 50%, rgba(26, 58, 143, .15) 0%, transparent 70%);
}

.hero__splash {
    position: absolute;
    pointer-events: none;
    opacity: .5;
}

.hero__splash--tr {
    top: -40px;
    right: -60px;
    width: 440px;
    height: 260px;
    background: #fff;
    clip-path: polygon(60% 0%, 100% 0%, 100% 55%, 72% 100%, 38% 78%, 18% 42%);
    transform: rotate(-8deg);
    filter: blur(2px);
}

.hero__splash--tl {
    top: 20px;
    left: -70px;
    width: 280px;
    height: 180px;
    background: #fff;
    clip-path: polygon(0 0, 55% 0%, 70% 40%, 44% 100%, 0 70%);
    transform: rotate(5deg);
    filter: blur(3px);
}

.hero__particles {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.particle {
    position: absolute;
    border-radius: 50%;
    background: rgba(240, 192, 64, .7);
    animation: floatp linear infinite;
    pointer-events: none;
}

@keyframes floatp {
    0% {
        transform: translateY(0) scale(1);
        opacity: .8
    }

    50% {
        opacity: .35
    }

    100% {
        transform: translateY(-110vh) scale(.4);
        opacity: 0
    }
}

.hero__content {
    position: relative;
    z-index: 1;
    width: min(1280px, 94%);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    grid-template-areas: "text emblem stats";
    align-items: center;
    gap: 1.5rem;
}

.hero__text {
    grid-area: text;
    display: flex;
    flex-direction: column;
    gap: .75rem;
    padding-right: 1rem;
}

.hero__eyebrow {
    font-family: var(--ff-h);
    font-size: .7rem;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--gold);
    opacity: .8;
}

.hero__ministry {
    font-family: var(--ff-h);
    font-size: clamp(.95rem, 1.7vw, 1.35rem);
    font-weight: 400;
    line-height: 1.4;
    color: var(--wd);
}

.hero__ministry strong {
    display: block;
    font-size: clamp(1.1rem, 2.1vw, 1.65rem);
    font-weight: 700;
    color: var(--w);
}

.hero__flag-motto {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-block: .5rem;
}

.hero__flag {
    display: flex;
    flex-direction: column;
    width: 52px;
    height: 34px;
    border-radius: 3px;
    overflow: hidden;
    box-shadow: 0 3px 14px rgba(0, 0, 0, .6);
    flex-shrink: 0;
}

.hf {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hf--y {
    background: var(--flag-y);
}

.hf--b {
    background: var(--flag-b);
}

.hf--r {
    background: var(--red);
}

.hf--b em {
    font-style: normal;
    font-size: 4.5px;
    color: #fff;
    letter-spacing: .7px;
}

.hero__motto {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1;
}

.hero__motto p {
    font-family: var(--ff-h);
    font-size: clamp(1.2rem, 2vw, 1.7rem);
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.hero__motto-div {
    display: block;
    width: 100%;
    height: 1.5px;
    background: linear-gradient(90deg, var(--gold), transparent);
    margin: 3px 0;
}

.hero__tagline {
    font-family: var(--ff-h);
    font-size: clamp(.85rem, 1.3vw, 1.05rem);
    color: var(--gold);
    letter-spacing: .22em;
    text-transform: uppercase;
}

.hero__btns {
    display: flex;
    gap: .7rem;
    flex-wrap: wrap;
    margin-top: .5rem;
}

/* Orbital */
.orbital {
    grid-area: emblem;
    position: relative;
    width: var(--orbit);
    height: var(--orbit);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.orbital__ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    pointer-events: none;
}

.orbital__ring--a {
    width: calc(var(--orbit) - 20px);
    height: calc(var(--orbit) - 20px);
    border: 1.5px dashed rgba(240, 192, 64, .3);
    animation: spin 35s linear infinite;
}

.orbital__ring--b {
    width: calc(var(--orbit) - 80px);
    height: calc(var(--orbit) - 80px);
    border: 1px dashed rgba(240, 192, 64, .15);
    animation: spinr 25s linear infinite;
}

@keyframes spin {
    to {
        transform: translate(-50%, -50%) rotate(360deg)
    }
}

@keyframes spinr {
    to {
        transform: translate(-50%, -50%) rotate(-360deg)
    }
}

.orbital__nav {
    position: absolute;
    inset: 0;
    animation: spin 35s linear infinite;
}

.orb-btn {
    --ox: calc(50% + cos(var(--a)) * var(--r) - var(--icon)/2);
    --oy: calc(50% + sin(var(--a)) * var(--r) - var(--icon)/2);
    position: absolute;
    left: var(--ox);
    top: var(--oy);
    width: var(--icon);
    height: var(--icon);
    border-radius: 50%;
    background: linear-gradient(145deg, rgba(255, 255, 255, .92), rgba(220, 230, 255, .85));
    border: 2px solid rgba(255, 255, 255, .9);
    box-shadow: 0 4px 18px rgba(0, 0, 0, .5), 0 0 0 3px rgba(240, 192, 64, .2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--navy-mid);
    animation: spinr 35s linear infinite;
    transition: transform .3s cubic-bezier(.34, 1.56, .64, 1), box-shadow .3s, background .3s;
}

.orb-btn svg {
    width: 20px;
    height: 20px;
    stroke: var(--navy-mid);
    transition: stroke .3s;
}

.orb-btn:hover {
    transform: scale(1.22);
    background: linear-gradient(145deg, var(--gold), var(--gold-d));
    box-shadow: 0 6px 28px rgba(240, 192, 64, .65);
    animation-play-state: paused;
}

.orb-btn:hover svg {
    stroke: var(--navy-deep);
}

.orb-btn:focus-visible {
    outline: 2.5px solid var(--gold);
    outline-offset: 4px;
}

.orbital__emblem-wrap {
    position: relative;
    z-index: 2;
    width: var(--emblem);
    height: var(--emblem);
}

.orbital__glow-ring {
    position: absolute;
    inset: -8px;
    border-radius: 50%;
    background: conic-gradient(var(--gold) 0deg, var(--gold-d) 90deg, var(--gold) 180deg, var(--gold-d) 270deg, var(--gold) 360deg);
    animation: spin 8s linear infinite;
    filter: blur(1px);
}

.orbital__emblem {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    overflow: hidden;
    background: var(--navy-deep);
    box-shadow: 0 0 0 4px var(--navy-deep), 0 0 45px rgba(240, 192, 64, .35), inset 0 0 30px rgba(0, 0, 50, .8);
    animation: epulse 4s ease-in-out infinite;
}

@keyframes epulse {

    0%,
    100% {
        box-shadow: 0 0 0 4px var(--navy-deep), 0 0 45px rgba(240, 192, 64, .35), inset 0 0 30px rgba(0, 0, 50, .8)
    }

    50% {
        box-shadow: 0 0 0 4px var(--navy-deep), 0 0 70px rgba(240, 192, 64, .6), inset 0 0 30px rgba(0, 0, 50, .8)
    }
}

.orbital__logo-img,
.orbital__logo-svg {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Hero stats */
.hero__stats {
    grid-area: stats;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding-left: 1rem;
}

.stat-card {
    background: var(--wg);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(240, 192, 64, .15);
    border-left: 3px solid var(--gold);
    border-radius: 6px;
    padding: .6rem 1rem;
    display: grid;
    grid-template-columns: auto auto 1fr;
    grid-template-rows: auto auto;
    align-items: center;
    gap: 0 .25rem;
    transition: transform var(--t), border-left-color var(--t);
    cursor: default;
}

.stat-card:hover {
    transform: translateX(4px);
    border-left-color: #fff;
}

.stat-card__num {
    font-family: var(--ff-h);
    font-size: clamp(1.5rem, 2.3vw, 2rem);
    font-weight: 700;
    color: var(--gold);
    line-height: 1;
}

.stat-card__unit {
    font-family: var(--ff-h);
    font-size: .68rem;
    font-weight: 600;
    color: var(--gold);
    align-self: flex-end;
    margin-bottom: 3px;
    text-transform: uppercase;
    letter-spacing: .08em;
}

.stat-card__label {
    font-family: var(--ff-b);
    font-size: .72rem;
    color: var(--wd);
    grid-row: 2;
    grid-column: 1/-1;
    margin-top: 2px;
}

.hero__socials {
    display: flex;
    gap: .6rem;
    padding-left: 2px;
    margin-top: .3rem;
}

.hs-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 1.5px solid rgba(240, 192, 64, .3);
    color: var(--gold);
    transition: background .25s, transform .25s;
}

.hs-link svg {
    width: 16px;
    height: 16px;
}

.hs-link:hover {
    background: var(--gold-m);
    transform: translateY(-2px) scale(1.12);
}

.hero__scroll {
    position: absolute;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    opacity: .5;
}

.hero__scroll-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--gold);
    animation: scrollb 2s ease-in-out infinite;
}

@keyframes scrollb {

    0%,
    100% {
        transform: translateY(0)
    }

    50% {
        transform: translateY(7px)
    }
}

.hero__scroll-txt {
    font-family: var(--ff-h);
    font-size: .6rem;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--gold);
}

/* ── Stats Bar ───────────────────────────────────────────── */
.statsbar {
    background: linear-gradient(90deg, #000d1f, #071535 50%, #000d1f);
    border-top: 1px solid rgba(240, 192, 64, .15);
    border-bottom: 1px solid rgba(240, 192, 64, .12);
    padding: 1.5rem 0;
}

.statsbar__inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.2rem;
    display: flex;
    align-items: center;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 1rem;
}

.statsbar__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .2rem;
    line-height: 1;
}

.statsbar__num {
    font-family: var(--ff-h);
    font-size: clamp(1.8rem, 3vw, 2.6rem);
    font-weight: 700;
    color: var(--gold);
}

.statsbar__pct {
    font-family: var(--ff-h);
    font-size: 1rem;
    color: var(--gold);
}

.statsbar__label {
    font-family: var(--ff-sc);
    font-size: .73rem;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--wd);
    margin-top: .2rem;
}

.statsbar__divider {
    width: 1px;
    height: 40px;
    background: rgba(240, 192, 64, .2);
}

/* ── Sections common ─────────────────────────────────────── */
.section {
    padding: 5rem 0;
}

.section__inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.2rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 3rem;
}

.section__inner--reverse {
    direction: rtl;
}

.section__inner--reverse>* {
    direction: ltr;
}

.section__label {
    display: flex;
    align-items: center;
    gap: .6rem;
    font-family: var(--ff-sc);
    font-size: .7rem;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--gold);
    opacity: .8;
    margin-bottom: .5rem;
}

.section__label-line {
    display: block;
    width: 28px;
    height: 2px;
    background: var(--gold);
    border-radius: 2px;
    opacity: .7;
}

.section__title {
    font-family: var(--ff-h);
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.section__title--light {
    color: var(--w);
}

.section__divider {
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, var(--gold), transparent);
    margin-bottom: 1.2rem;
    border-radius: 2px;
}

.section__header {
    max-width: 1280px;
    margin: 0 auto 2.5rem;
    padding: 0 1.2rem;
    text-align: center;
}

/* ── Objetivo ─────────────────────────────────────────────── */
.objetivo {
    background: var(--navy);
}

.objetivo__text {
    display: flex;
    flex-direction: column;
    gap: .8rem;
}

.objetivo__sub {
    font-family: var(--ff-sc);
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--gold);
}

.objetivo__body {
    font-family: var(--ff-b);
    font-size: .9rem;
    line-height: 1.8;
    color: var(--wd);
}

.objetivo__visual {
    position: relative;
}

.objetivo__card-wrap {
    position: relative;
    height: 420px;
}

.objetivo__bg-card {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 88%;
    height: 90%;
    background: linear-gradient(145deg, var(--navy-mid), var(--navy-deep));
    border-radius: 16px;
    border: 1px solid rgba(240, 192, 64, .12);
}

.objetivo__img-card {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(145deg, var(--navy-b), var(--navy-mid));
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(240, 192, 64, .2);
    box-shadow: 0 20px 60px rgba(0, 0, 0, .5);
}

.objetivo__img-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.objetivo__img-placeholder::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 50% 30%, rgba(26, 58, 143, .3) 0%, transparent 70%);
}

.obj-soldier {
    width: 55%;
    height: auto;
    opacity: .8;
    position: relative;
    z-index: 1;
}

.objetivo__badge {
    position: absolute;
    bottom: -16px;
    right: -16px;
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: var(--navy-deep);
    border: 2px solid rgba(240, 192, 64, .4);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(240, 192, 64, .25);
}

.objetivo__badge img {
    width: 64px;
    height: 64px;
    object-fit: contain;
}

/* ── Carousel ─────────────────────────────────────────────── */
.carousel-section {
    padding: 5rem 0;
    background: var(--navy-deep);
}

.carousel-section__header {
    max-width: 1280px;
    margin: 0 auto 2rem;
    padding: 0 1.2rem;
    text-align: center;
}

.carousel {
    position: relative;
    overflow: hidden;
    width: 100%;
}

.carousel__track {
    display: flex;
    transition: transform .55s cubic-bezier(.4, 0, .2, 1);
}

.carousel__slide {
    min-width: 100%;
    position: relative;
    height: clamp(340px, 55vh, 520px);
    overflow: hidden;
}

.carousel__slide-bg {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel__slide-img-ph {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slide-scene {
    width: 100%;
    height: 100%;
    position: relative;
}

.slide-scene::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 60% 80% at 50% 50%, rgba(26, 58, 143, .4) 0%, transparent 70%);
}

.carousel__slide-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2rem max(1.2rem, calc((100% - 1280px)/2 + 1.2rem));
    background: linear-gradient(0deg, rgba(3, 12, 31, .92) 0%, rgba(3, 12, 31, .5) 60%, transparent 100%);
}

.carousel__tag {
    display: inline-block;
    margin-bottom: .6rem;
    padding: .2rem .7rem;
    border-radius: 3px;
    background: var(--gold);
    color: var(--navy-deep);
    font-family: var(--ff-h);
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.carousel__title {
    font-family: var(--ff-h);
    font-size: clamp(1.3rem, 2.5vw, 2rem);
    font-weight: 700;
    color: var(--w);
    margin-bottom: .5rem;
}

.carousel__desc {
    font-size: .88rem;
    color: var(--wd);
    max-width: 580px;
    line-height: 1.7;
}

.carousel__btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: rgba(240, 192, 64, .15);
    border: 1.5px solid rgba(240, 192, 64, .3);
    color: var(--gold);
    font-size: 1.8rem;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background var(--t), transform .25s;
    cursor: pointer;
    z-index: 5;
}

.carousel__btn:hover {
    background: rgba(240, 192, 64, .35);
    transform: translateY(-50%) scale(1.08);
}

.carousel__btn--prev {
    left: 1.5rem;
}

.carousel__btn--next {
    right: 1.5rem;
}

.carousel__btn--sm {
    position: static;
    transform: none;
    width: 38px;
    height: 38px;
    font-size: 1.5rem;
}

.carousel__btn--sm:hover {
    transform: scale(1.1);
}

.carousel__dots {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: .5rem;
    z-index: 5;
}

.carousel__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(240, 192, 64, .35);
    border: none;
    cursor: pointer;
    transition: background .25s, transform .25s;
}

.carousel__dot.active,
.carousel__dot:hover {
    background: var(--gold);
    transform: scale(1.25);
}

/* ── Misión & Visión ─────────────────────────────────────── */
.mision {
    background: var(--navy);
}

.vision {
    background: var(--navy-deep);
}

.mision__text,
.vision__text {
    display: flex;
    flex-direction: column;
    gap: .7rem;
}

.mision__tagline {
    font-family: var(--ff-sc);
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--gold);
}

.mision__body,
.vision__body {
    font-family: var(--ff-b);
    font-size: .9rem;
    line-height: 1.85;
    color: var(--wd);
}

.mision__bullets {
    display: flex;
    flex-direction: column;
    gap: .5rem;
    margin-top: .5rem;
}

.mision__bullets li {
    display: flex;
    align-items: center;
    gap: .7rem;
    font-family: var(--ff-sc);
    font-size: .88rem;
    color: var(--wd);
    padding: .45rem .7rem;
    border-radius: 5px;
    background: var(--wg);
}

.bullet-icon {
    font-size: 1rem;
}

.tactical-card {
    position: relative;
    height: 420px;
}

.tactical-card__img {
    width: 100%;
    height: 100%;
    background: linear-gradient(145deg, var(--navy-b), var(--navy-deep));
    border-radius: 20px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(240, 192, 64, .18);
    box-shadow: 0 20px 60px rgba(0, 0, 0, .6);
}

.tactical-svg {
    width: 60%;
    height: auto;
}

/* Foto real en la sección Misión */
.tactical-card__photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
    border-radius: 20px;
}


.tactical-card__label {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(240, 192, 64, .9);
    color: var(--navy-deep);
    font-family: var(--ff-h);
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .1em;
    padding: .3rem .9rem;
    border-radius: 20px;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: .4rem;
}

.vision__img-frame {
    position: relative;
    height: 420px;
}

.vision__img-bg {
    width: 100%;
    height: 100%;
    border-radius: 100px 100px 20px 20px;
    overflow: hidden;
    border: 2px solid rgba(240, 192, 64, .15);
    box-shadow: 0 20px 60px rgba(0, 0, 0, .6);
}

.vision-svg {
    width: 100%;
    height: 100%;
}

/* Foto real en la sección Visión */
.vision__photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
}


.vision__badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 44px;
    height: 44px;
    background: var(--navy-deep);
    border-radius: 50%;
    border: 2px solid rgba(240, 192, 64, .4);
    display: flex;
    align-items: center;
    justify-content: center;
}

.vision__badge svg {
    width: 32px;
    height: 32px;
}

/* ── Organigrama ─────────────────────────────────────────── */
.orgchart {
    padding: 5rem 0;
    background: var(--navy-mid);
    position: relative;
    overflow: hidden;
}

.orgchart::before {
    content: 'GOES';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: var(--ff-h);
    font-size: clamp(6rem, 14vw, 14rem);
    font-weight: 700;
    color: rgba(255, 255, 255, .04);
    letter-spacing: .1em;
    pointer-events: none;
    white-space: nowrap;
}

.orgchart__header {
    max-width: 1280px;
    margin: 0 auto 2rem;
    padding: 0 1.2rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    border-bottom: 1px dashed rgba(240, 192, 64, .2);
    padding-bottom: 1.5rem;
    flex-wrap: wrap;
}

.orgchart__logo-wrap {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-shrink: 0;
}

.flag-mini {
    display: flex;
    flex-direction: column;
    width: 36px;
    height: 24px;
    border-radius: 2px;
    overflow: hidden;
}

.flag-mini span {
    flex: 1;
}

.flag-mini span:nth-child(1) {
    background: var(--flag-y);
}

.flag-mini span:nth-child(2) {
    background: var(--flag-b);
}

.flag-mini span:nth-child(3) {
    background: var(--red);
}

.orgchart__logo {
    width: 56px;
    height: 56px;
    object-fit: contain;
}

.orgchart__titles {
    flex: 1;
}

.orgchart__republic {
    font-family: var(--ff-sc);
    font-size: .7rem;
    letter-spacing: .15em;
    text-transform: uppercase;
    color: var(--gold);
    opacity: .8;
}

.orgchart__ministry-txt {
    font-family: var(--ff-b);
    font-size: .7rem;
    color: var(--wd);
    margin: .15rem 0;
}

.orgchart__main-title {
    font-family: var(--ff-h);
    font-size: clamp(1.2rem, 2.5vw, 1.8rem);
    font-weight: 700;
    color: var(--w);
    letter-spacing: .1em;
}

.orgchart__body {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 1.2rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.org-level {
    display: flex;
    flex-direction: column;
    gap: 0;
    align-items: center;
}

.org-level__label {
    font-family: var(--ff-h);
    font-size: .65rem;
    font-weight: 700;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--gold);
    opacity: .7;
    border-bottom: 1px solid rgba(240, 192, 64, .2);
    width: 100%;
    text-align: center;
    padding-bottom: .4rem;
    margin-bottom: 1rem;
}

.org-level__nodes {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .6rem;
    width: 100%;
    margin-top: 0;
}

.org-level__nodes--row {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    align-items: flex-start;
    gap: .8rem;
}

.org-node {
    background: rgba(7, 21, 53, .8);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(240, 192, 64, .2);
    border-radius: 6px;
    padding: .55rem 1rem;
    font-family: var(--ff-sc);
    font-size: .8rem;
    text-align: center;
    color: var(--wd);
    min-width: 160px;
    max-width: 240px;
    transition: border-color var(--t), background var(--t);
}

.org-node:hover {
    border-color: rgba(240, 192, 64, .5);
    background: rgba(26, 58, 143, .3);
}

.org-node--top {
    background: rgba(26, 58, 143, .4);
    border-color: rgba(240, 192, 64, .35);
    color: var(--w);
}

.org-node--accent {
    border-color: rgba(240, 192, 64, .3);
    background: rgba(13, 36, 96, .5);
}

.org-node--op {
    background: rgba(240, 192, 64, .12);
    border-color: rgba(240, 192, 64, .4);
    color: var(--gold);
}

.org-connector {
    width: 3px;
    height: 28px;
    background: rgba(240, 192, 64, .85);
    margin: 0 auto;
    border-radius: 2px;
    box-shadow: 0 0 6px rgba(240, 192, 64, .4);
}

/* ── Nivel de Apoyo — layout dos columnas ─────────────────── */
.org-level__nodes--apoyo {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    justify-content: center;
    gap: 2.5rem;
    width: 100%;
    flex-wrap: wrap;
}

.org-apoyo__col-left {
    display: flex;
    flex-direction: column;
    gap: .6rem;
    align-items: center;
}

.org-apoyo__col-right {
    display: flex;
    flex-direction: column;
    gap: .6rem;
    align-items: center;
}

/* Nodo padre: Oficina de Gestión Interna */
.org-node--gestion {
    background: rgba(26, 58, 143, .45);
    border-color: rgba(240, 192, 64, .45);
    color: var(--w);
    font-weight: 700;
    min-width: 200px;
}

/* Grid de sub-unidades */
.org-gestion__subs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .5rem;
    margin-top: .2rem;
    position: relative;
    padding-top: .5rem;
}

.org-gestion__subs::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: .5rem;
    background: linear-gradient(180deg, rgba(240, 192, 64, .4), rgba(240, 192, 64, .1));
}

/* Sub-nodos de Gestión Interna */
.org-node--sub {
    background: rgba(7, 21, 53, .6);
    border-color: rgba(240, 192, 64, .15);
    font-size: .73rem;
    min-width: 130px;
    max-width: 175px;
    padding: .45rem .75rem;
    color: var(--wd);
}

.org-node--sub:hover {
    border-color: rgba(240, 192, 64, .4);
    background: rgba(26, 58, 143, .25);
}

/* ── Conector vertical corto (entre Ministerio y GOES) ──── */
.org-bridge {
    width: 3px;
    height: 32px;
    background: rgba(240, 192, 64, .85);
    margin: 0 auto;
    border-radius: 2px;
    box-shadow: 0 0 6px rgba(240, 192, 64, .35);
}

/* Variante: entra al inicio del org-level (antes del label) */
.org-bridge--entry {
    width: 3px;
    height: 32px;
    background: rgba(240, 192, 64, .85);
    margin: 0 auto;
    border-radius: 2px;
    box-shadow: 0 0 6px rgba(240, 192, 64, .35);
}

/* ── Barra horizontal de distribución ────────────────────── */
.org-hbar {
    width: 72%;
    height: 3px;
    background: rgba(240, 192, 64, .85);
    margin: 0 auto;
    border-radius: 2px;
    box-shadow: 0 0 8px rgba(240, 192, 64, .4);
    /* SIN ::before — el bridge--entry ya provee la línea entrante */
}

/* ── Línea vertical que cae del hbar a cada nodo ─────────── */
.org-drop {
    width: 3px;
    height: 22px;
    background: rgba(240, 192, 64, .8);
    margin: 0 auto;
    border-radius: 2px;
    box-shadow: 0 0 4px rgba(240, 192, 64, .3);
}

/* ── Wrapper para cada nodo en fila (branch) ─────────────── */
.org-branch {
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* ── Línea vertical entre nodos hermanos (col izquierda) ─── */
.org-vline-between {
    width: 3px;
    height: 18px;
    background: rgba(240, 192, 64, .75);
    margin: 0 auto;
    border-radius: 2px;
    box-shadow: 0 0 4px rgba(240, 192, 64, .3);
}

/* Ajuste: el label necesita espacio arriba cuando hay bridge--entry */
.org-level__label {
    margin-top: .5rem;
}

/* ── Comunicados ─────────────────────────────────────────── */
.comunicados {
    padding: 5rem 0;
    background: var(--navy);
}

.news-carousel {
    position: relative;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.2rem;
    overflow: hidden;
}

.news-carousel__track {
    display: flex;
    gap: 1.5rem;
    transition: transform .45s cubic-bezier(.4, 0, .2, 1);
    padding-bottom: .5rem;
}

.news-card {
    min-width: clamp(260px, 30%, 320px);
    background: var(--navy-deep);
    border: 1px solid rgba(240, 192, 64, .1);
    border-radius: 10px;
    overflow: hidden;
    transition: transform var(--t), box-shadow var(--t);
    flex-shrink: 0;
}

.news-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, .5);
}

.news-card__img {
    height: 160px;
    position: relative;
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    padding: .8rem;
}

.news-card__cat {
    display: inline-block;
    padding: .2rem .6rem;
    border-radius: 3px;
    background: rgba(240, 192, 64, .9);
    color: var(--navy-deep);
    font-family: var(--ff-h);
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .1em;
}

.news-card__body {
    padding: 1rem 1.2rem 1.4rem;
}

.news-card__date {
    font-family: var(--ff-b);
    font-size: .7rem;
    color: var(--gold);
    opacity: .7;
    letter-spacing: .06em;
}

.news-card__title {
    font-family: var(--ff-sc);
    font-size: 1rem;
    font-weight: 700;
    color: var(--w);
    margin: .4rem 0 .5rem;
    line-height: 1.35;
}

.news-card__excerpt {
    font-family: var(--ff-b);
    font-size: .8rem;
    color: var(--wd);
    line-height: 1.65;
    margin-bottom: .8rem;
}

.news-card__link {
    font-family: var(--ff-h);
    font-size: .78rem;
    color: var(--gold);
    letter-spacing: .06em;
    transition: opacity .2s;
}

.news-card__link:hover {
    opacity: .75;
}

.news-carousel__controls {
    display: flex;
    justify-content: center;
    gap: .8rem;
    margin-top: 1.5rem;
}

/* ── Sedes ───────────────────────────────────────────────── */
.sedes {
    padding: 4rem 0;
    background: var(--navy-deep);
}

.sedes__inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.2rem;
    text-align: center;
}

.sedes__desc {
    font-family: var(--ff-b);
    font-size: .9rem;
    color: var(--wd);
    max-width: 600px;
    margin: 0 auto 2rem;
    line-height: 1.7;
}

.sedes__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: .8rem;
    margin-top: 1.5rem;
}

.sede-card {
    background: var(--wg);
    border: 1px solid rgba(240, 192, 64, .1);
    border-radius: 8px;
    padding: .75rem 1rem;
    display: flex;
    align-items: center;
    gap: .5rem;
    font-family: var(--ff-sc);
    font-size: .85rem;
    color: var(--wd);
    transition: border-color var(--t), background var(--t), transform var(--t);
}

.sede-card:hover {
    border-color: rgba(240, 192, 64, .4);
    background: rgba(26, 58, 143, .2);
    transform: translateY(-2px);
}

.sede-card__icon {
    font-size: 1rem;
}

/* ── Footer ──────────────────────────────────────────────── */
.footer {
    background: #000d1f;
}

.footer__top {
    border-top: 1px solid rgba(240, 192, 64, .12);
    padding: 3rem 0;
}

.footer__inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.2rem;
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
    gap: 2.5rem;
}

.footer__brand {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.footer__logo-wrap {
    width: 56px;
    height: 56px;
    flex-shrink: 0;
}

.footer__logo-img {
    width: 56px;
    height: 56px;
    object-fit: contain;
}

.footer__brand-name {
    font-family: var(--ff-h);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--gold);
    letter-spacing: .12em;
}

.footer__brand-sub {
    font-family: var(--ff-b);
    font-size: .72rem;
    color: var(--wd);
    line-height: 1.4;
    max-width: 160px;
}

.footer__flag {
    display: flex;
    width: 42px;
    height: 26px;
    border-radius: 2px;
    overflow: hidden;
    margin: .6rem 0 .3rem;
}

.footer__flag span {
    flex: 1;
}

.footer__flag span:nth-child(1) {
    background: var(--flag-y);
}

.footer__flag span:nth-child(2) {
    background: var(--flag-b);
}

.footer__flag span:nth-child(3) {
    background: var(--red);
}

.footer__motto-text {
    font-family: var(--ff-h);
    font-size: .8rem;
    color: var(--gold);
    letter-spacing: .12em;
}

.footer__nav-title {
    font-family: var(--ff-h);
    font-size: .8rem;
    font-weight: 700;
    color: var(--gold);
    letter-spacing: .1em;
    text-transform: uppercase;
    margin-bottom: .8rem;
}

.footer__nav ul {
    display: flex;
    flex-direction: column;
    gap: .4rem;
}

.footer__nav a {
    font-family: var(--ff-b);
    font-size: .82rem;
    color: var(--wd);
    transition: color var(--t);
}

.footer__nav a:hover {
    color: var(--gold);
}

.footer__contact {
    display: flex;
    flex-direction: column;
    gap: .5rem;
}

.footer__contact p {
    font-family: var(--ff-b);
    font-size: .8rem;
    color: var(--wd);
    line-height: 1.5;
}

.footer__social {
    display: flex;
    gap: .6rem;
    margin-top: .5rem;
}

.footer__social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 1.5px solid rgba(240, 192, 64, .25);
    color: var(--gold);
    transition: background .25s, transform .25s;
}

.footer__social-link svg {
    width: 16px;
    height: 16px;
}

.footer__social-link:hover {
    background: var(--gold-m);
    transform: translateY(-2px);
}

.footer__bottom {
    border-top: 1px solid rgba(255, 255, 255, .06);
    padding: 1rem 1.2rem;
    text-align: center;
    font-family: var(--ff-b);
    font-size: .72rem;
    color: rgba(240, 244, 255, .35);
    letter-spacing: .04em;
}

/* ── Back to top ─────────────────────────────────────────── */
.back-to-top {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 500;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--gold), var(--gold-d));
    color: var(--navy-deep);
    font-size: 1.6rem;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 18px rgba(240, 192, 64, .4);
    opacity: 0;
    pointer-events: none;
    transition: opacity .3s, transform .3s;
}

.back-to-top.visible {
    opacity: 1;
    pointer-events: all;
}

.back-to-top:hover {
    transform: translateY(-3px);
}

/* ── Reveal animation ────────────────────────────────────── */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity .7s ease, transform .7s ease;
}

.reveal.in {
    opacity: 1;
    transform: none;
}

/* ── Responsive ──────────────────────────────────────────── */
@media(max-width:1100px) {
    :root {
        --orbit: 360px;
        --emblem: 190px;
        --icon: 42px;
    }

    .header__nav {
        display: none;
    }

    .header__burger {
        display: flex;
    }

    .mobile-nav {
        display: block;
    }

    .footer__inner {
        grid-template-columns: 1fr 1fr;
    }
}

@media(max-width:768px) {
    :root {
        --orbit: 300px;
        --emblem: 160px;
        --icon: 38px;
    }

    .hero {
        align-items: flex-start;
        min-height: auto;
    }

    .hero__content {
        grid-template-columns: 1fr;
        grid-template-areas: "emblem" "text" "stats";
        justify-items: center;
        text-align: center;
    }

    .hero__text {
        padding-right: 0;
        align-items: center;
    }

    .hero__btns {
        justify-content: center;
    }

    .hero__stats {
        padding-left: 0;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        width: 100%;
    }

    .stat-card {
        flex: 1 1 140px;
    }

    .hero__socials {
        justify-content: center;
    }

    .section__inner {
        grid-template-columns: 1fr;
    }

    .section__inner--reverse {
        direction: ltr;
    }

    .statsbar__divider {
        display: none;
    }

    .footer__inner {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }

    .footer__brand {
        flex-direction: column;
        align-items: center;
    }

    .footer__brand .footer__flag-img {
        margin-left: auto;
        margin-right: auto;
    }

    .footer__nav ul {
        align-items: center;
    }

    .footer__contact {
        align-items: center;
    }

    .footer__social {
        justify-content: center;
    }
}

@media(max-width:480px) {
    :root {
        --orbit: 240px;
        --emblem: 130px;
        --icon: 32px;
    }

    .hero {
        padding-top: 5rem;
    }

    .hero__splash--tr {
        width: 220px;
        height: 130px;
    }

    .hero__splash--tl {
        display: none;
    }

    .carousel__slide {
        height: 300px;
    }

    .carousel__btn--prev {
        left: .6rem;
    }

    .carousel__btn--next {
        right: .6rem;
    }
}

@media(prefers-reduced-motion:reduce) {

    .orbital__ring,
    .orbital__nav,
    .orb-btn,
    .orbital__glow-ring,
    .orbital__emblem,
    .hero__scroll-dot,
    .topbar__dot,
    .particle,
    .reveal {
        animation: none !important;
        transition: none !important;
        opacity: 1 !important;
        transform: none !important;
    }
}

/* ── Tactical HUD (Hero Center) ────────────────────────── */
.tac-hud {
    grid-area: emblem;
    position: relative;
    width: var(--orbit);
    height: var(--orbit);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Static SVG tick-ring: very slow rotation */
.tac-hud__rings {
    position: absolute;
    top: 0; right: 0; bottom: 0; left: 0;
    width: 100%;
    height: 100%;
    animation: spin 80s linear infinite;
}

/* Outer dashed spinning ring (CSS) */
.tac-hud__outer-ring {
    position: absolute;
    top: 6px; right: 6px; bottom: 6px; left: 6px;
    border-radius: 50%;
    border: 1.5px dashed rgba(240, 192, 64, .18);
    animation: spinr 40s linear infinite;
    pointer-events: none;
}

/* Radar sweep — rotating conic gradient */
.tac-hud__radar {
    position: absolute;
    top: 28px; right: 28px; bottom: 28px; left: 28px;
    border-radius: 50%;
    background: conic-gradient(from 0deg,
            transparent 0deg,
            rgba(240, 192, 64, .18) 0deg,
            rgba(240, 192, 64, .06) 60deg,
            transparent 60deg);
    animation: spin 5s linear infinite;
    pointer-events: none;
}

/* Ping indicators — fixed positions on the 190px-radius ring */
.tac-hud__ping {
    position: absolute;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--gold);
    box-shadow: 0 0 14px var(--gold), 0 0 4px #fff;
    pointer-events: none;
}

/* 12 o'clock */
.tac-hud__ping--top {
    top: 8%;
    left: calc(50% - 6px);
    animation: ping 2.2s ease-in-out infinite;
}

/* ~4 o'clock */
.tac-hud__ping--br {
    top: 70.6%;
    left: calc(85.8% - 6px);
    animation: ping 2.2s ease-in-out infinite .74s;
}

/* ~8 o'clock */
.tac-hud__ping--bl {
    top: 70.6%;
    left: calc(14.2% - 6px);
    animation: ping 2.2s ease-in-out infinite 1.48s;
}

@keyframes ping {

    0%,
    100% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(2.2);
        opacity: .25;
    }
}

/* Central logo circle */
.tac-hud__center {
    position: relative;
    z-index: 2;
    width: var(--emblem);
    height: var(--emblem);
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at 50% 40%, rgba(13, 36, 96, .85) 0%, rgba(3, 12, 31, .95) 100%);
    box-shadow:
        0 0 0 3px rgba(240, 192, 64, .45),
        0 0 60px rgba(240, 192, 64, .28),
        inset 0 0 40px rgba(0, 0, 50, .8);
    animation: epulse 4s ease-in-out infinite;
}

.tac-hud__glow-ring {
    position: absolute;
    top: -6px; right: -6px; bottom: -6px; left: -6px;
    border-radius: 50%;
    background: conic-gradient(var(--gold) 0deg, var(--gold-d) 90deg, var(--gold) 180deg, var(--gold-d) 270deg, var(--gold) 360deg);
    animation: spin 8s linear infinite;
    filter: blur(1.5px);
}

.tac-hud__logo {
    position: relative;
    z-index: 2;
    width: 82%;
    height: 82%;
    object-fit: contain;
    filter: drop-shadow(0 0 12px rgba(240, 192, 64, .45));
}

/* Horizontal scanline sweeping downward */
.tac-hud__scanline {
    position: absolute;
    top: 0; right: 0; bottom: 0; left: 0;
    border-radius: 50%;
    overflow: hidden;
    pointer-events: none;
    z-index: 3;
}

.tac-hud__scanline::after {
    content: '';
    position: absolute;
    left: -10%;
    right: -10%;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(240, 192, 64, .7), transparent);
    animation: scanH 2.8s ease-in-out infinite;
}

@keyframes scanH {
    0% {
        top: 0%;
        opacity: .9;
    }

    80% {
        opacity: .6;
    }

    100% {
        top: 100%;
        opacity: 0;
    }
}

/* HUD corner brackets */
.tac-hud__corner {
    position: absolute;
    width: 20px;
    height: 20px;
    border-color: var(--gold);
    border-style: solid;
    opacity: .55;
    animation: hblink 3s ease-in-out infinite;
}

.tac-hud__corner--tl {
    top: 18px;
    left: 18px;
    border-width: 2px 0 0 2px;
}

.tac-hud__corner--tr {
    top: 18px;
    right: 18px;
    border-width: 2px 2px 0 0;
}

.tac-hud__corner--bl {
    bottom: 18px;
    left: 18px;
    border-width: 0 0 2px 2px;
}

.tac-hud__corner--br {
    bottom: 18px;
    right: 18px;
    border-width: 0 2px 2px 0;
}

@keyframes hblink {

    0%,
    100% {
        opacity: .55;
    }

    50% {
        opacity: 1;
    }
}

/* Status bar */
.tac-hud__status {
    position: absolute;
    bottom: 8%;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: .45rem;
    font-family: var(--ff-h);
    font-size: .58rem;
    letter-spacing: .22em;
    color: var(--gold);
    opacity: .75;
    text-transform: uppercase;
    white-space: nowrap;
}

.tac-hud__status-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #22ff88;
    box-shadow: 0 0 8px #22ff88;
    animation: pdot 1.2s ease infinite;
}

/* HUD is now visible on mobile, no media queries to hide it. */

/* ── Objetivo real photo fix ────────────────────────────── */
.objetivo__real-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center bottom;
    display: block;
    border-radius: inherit;
}

/* ── Operativos Estratégicos — Video Grid ─────────────────── */

.ops-section {
    padding: 5rem 0;
    background: var(--navy-deep);
}

.ops-section__header {
    max-width: 1280px;
    margin: 0 auto 2rem;
    padding: 0 1.2rem;
    text-align: center;
}

.ops-section__sub {
    font-family: var(--ff-b);
    font-size: .88rem;
    color: var(--wd);
    margin-top: .5rem;
}

.ops-section__sub code {
    background: var(--wg);
    border: 1px solid rgba(240, 192, 64, .2);
    border-radius: 3px;
    padding: .1em .4em;
    font-family: monospace;
    color: var(--gold);
    font-size: .85em;
}

.ops-grid {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.2rem;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.ops-card {
    background: var(--navy);
    border: 1px solid rgba(240, 192, 64, .1);
    border-radius: 10px;
    overflow: hidden;
    transition: transform var(--t), box-shadow var(--t);
}

.ops-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 48px rgba(0, 0, 0, .55);
}

.ops-card__media {
    position: relative;
    aspect-ratio: 16/9;
    background: linear-gradient(135deg, var(--navy-mid), var(--navy-deep));
    overflow: hidden;
}

.ops-card__video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Imagen estática en lugar de video — mismo comportamiento */
.ops-card__img-cover {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .5s ease;
}

.ops-card:hover .ops-card__img-cover {
    transform: scale(1.05);
}

/* Placeholder when no video file */
.ops-card__media--placeholder {
    background: radial-gradient(ellipse at 50% 40%, rgba(26, 58, 143, .5) 0%, var(--navy-deep) 80%);
}

.ops-card__media--placeholder::after {
    content: '▶';
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: rgba(240, 192, 64, .3);
}

.ops-card__play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: rgba(240, 192, 64, .85);
    color: var(--navy-deep);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform .25s, background .25s;
    z-index: 2;
}

.ops-card__play svg {
    width: 20px;
    height: 20px;
    fill: var(--navy-deep);
    stroke: none;
}

.ops-card__play:hover {
    transform: translate(-50%, -50%) scale(1.12);
    background: var(--gold);
}

.ops-card--playing .ops-card__play {
    opacity: 0;
    pointer-events: none;
}

.ops-card--playing .ops-card__video {
    cursor: pointer;
}

.ops-card__tag {
    position: absolute;
    top: .7rem;
    left: .7rem;
    padding: .2rem .6rem;
    border-radius: 3px;
    background: rgba(240, 192, 64, .9);
    color: var(--navy-deep);
    font-family: var(--ff-h);
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .1em;
    z-index: 2;
}

.ops-card__info {
    padding: 1rem 1.2rem 1.4rem;
    display: flex;
    flex-direction: column;
    gap: .4rem;
}

.ops-card__title {
    font-family: var(--ff-sc);
    font-size: 1rem;
    font-weight: 700;
    color: var(--w);
    line-height: 1.3;
}

.ops-card__desc {
    font-family: var(--ff-b);
    font-size: .8rem;
    color: var(--wd);
    line-height: 1.65;
}

.ops-card__link {
    font-family: var(--ff-h);
    font-size: .78rem;
    color: var(--gold);
    letter-spacing: .06em;
    margin-top: .25rem;
    transition: opacity .2s;
}

.ops-card__link:hover {
    opacity: .75;
}

.ops-section__cta {
    text-align: center;
    margin-top: 2.5rem;
    padding: 0 1.2rem;
}

@media(max-width:900px) {
    .ops-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media(max-width:560px) {
    .ops-grid {
        grid-template-columns: 1fr;
    }
}

/* ── Especialidades ─────────────────────────────────────────── */
.especialidades {
    padding: 5rem 0;
    background: var(--navy-mid);
    position: relative;
    overflow: hidden;
}

.especialidades::before {
    content: 'GOES';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: var(--ff-h);
    font-size: clamp(5rem, 14vw, 13rem);
    font-weight: 700;
    color: rgba(255, 255, 255, .04);
    pointer-events: none;
    white-space: nowrap;
}

.especialidades__header {
    max-width: 1280px;
    margin: 0 auto 2rem;
    padding: 0 1.2rem;
    text-align: center;
    position: relative;
    z-index: 1;
}

.especialidades__sub {
    font-family: var(--ff-b);
    font-size: .9rem;
    color: var(--wd);
    max-width: 580px;
    margin: .5rem auto 0;
    line-height: 1.7;
}

/* Tabs */
.esp-tabs {
    display: flex;
    gap: .5rem;
    justify-content: center;
    flex-wrap: wrap;
    padding: 0 1.2rem;
    margin-bottom: 2rem;
    position: relative;
    z-index: 1;
}

.esp-tab {
    padding: .6rem 1.6rem;
    border-radius: 30px;
    font-family: var(--ff-h);
    font-size: .9rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--wd);
    border: 1.5px solid rgba(240, 192, 64, .25);
    background: var(--wg);
    transition: color var(--t), background var(--t), border-color var(--t), transform .2s;
}

.esp-tab:hover {
    color: var(--gold);
    border-color: rgba(240, 192, 64, .5);
    transform: translateY(-2px);
}

.esp-tab--active {
    background: linear-gradient(135deg, var(--gold), var(--gold-d));
    color: var(--navy-deep);
    border-color: transparent;
    box-shadow: 0 4px 18px rgba(240, 192, 64, .4);
}

/* Panels */
.esp-panel {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.2rem;
    position: relative;
    z-index: 1;
    animation: fadeIn .4s ease;
}

.esp-panel--hidden {
    display: none;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

.esp-panel__inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
    background: rgba(7, 21, 53, .6);
    border: 1px solid rgba(240, 192, 64, .15);
    border-radius: 14px;
    padding: 2.5rem;
}

.esp-panel__title {
    font-family: var(--ff-h);
    font-size: clamp(1.4rem, 2.5vw, 2rem);
    font-weight: 700;
    color: var(--w);
    margin-bottom: .5rem;
}

.esp-panel__body {
    font-family: var(--ff-b);
    font-size: .9rem;
    line-height: 1.85;
    color: var(--wd);
    margin-bottom: 1rem;
}

/* Requirements */
.esp-panel__req {
    margin-top: 1.2rem;
    padding-top: 1.2rem;
    border-top: 1px dashed rgba(240, 192, 64, .15);
}

.esp-panel__req-title {
    font-family: var(--ff-h);
    font-size: .82rem;
    font-weight: 700;
    letter-spacing: .12em;
    color: var(--gold);
    text-transform: uppercase;
    margin-bottom: .8rem;
}

.esp-req-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: .6rem;
}

.esp-req-card {
    background: var(--wg);
    border: 1px solid rgba(240, 192, 64, .12);
    border-radius: 7px;
    padding: .7rem;
    display: flex;
    flex-direction: column;
    gap: .2rem;
    font-family: var(--ff-b);
    font-size: .78rem;
    color: var(--wd);
}

.esp-req-icon {
    font-size: 1.2rem;
    margin-bottom: .1rem;
}

.esp-req-card strong {
    font-weight: 700;
    color: var(--w);
    font-size: .8rem;
}

/* Gallery */
.esp-panel__gallery {
    position: relative;
}

.esp-gallery-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 180px 180px;
    gap: .6rem;
}

.esp-img-slot {
    border-radius: 8px;
    overflow: hidden;
    background: linear-gradient(135deg, var(--navy-mid), var(--navy-deep));
    border: 1px solid rgba(240, 192, 64, .15);
    position: relative;
}

.esp-img-slot img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    transition: transform .4s ease;
}

.esp-img-slot:hover img {
    transform: scale(1.05);
}

.esp-img-slot--wide {
    grid-column: 1 / -1;
}

.esp-img-slot--wide img {
    object-position: center 30%;
}

/* Placeholder when image is missing */
.esp-img-slot--empty {
    background: radial-gradient(ellipse at 50% 40%, rgba(26, 58, 143, .4) 0%, var(--navy-deep) 80%);
}

.esp-img-slot--empty::after {
    content: '📷';
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    opacity: .3;
}

@media(max-width:900px) {
    .esp-panel__inner {
        grid-template-columns: 1fr;
    }

    .esp-req-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media(max-width:560px) {
    .esp-req-grid {
        grid-template-columns: 1fr;
    }

    .esp-gallery-grid {
        grid-template-rows: 140px 140px;
    }
}

/* ── Sedes — Mapa ─────────────────────────────────────────── */
.sedes {
    padding: 4rem 0;
    background: var(--navy);
}

.sedes__header {
    max-width: 1280px;
    margin: 0 auto 2rem;
    padding: 0 1.2rem;
    text-align: center;
}

.sedes__desc {
    font-family: var(--ff-b);
    font-size: .9rem;
    color: var(--wd);
    max-width: 640px;
    margin: .5rem auto 0;
    line-height: 1.7;
}

.sedes__map-wrap {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 1.2rem;
}

.sedes__map-fig {
    display: flex;
    flex-direction: column;
    gap: .8rem;
}

.sedes__map-box {
    border-radius: 14px;
    overflow: hidden;
    border: 1.5px solid rgba(240, 192, 64, .2);
    box-shadow: 0 24px 72px rgba(0, 0, 0, .6);
    background: linear-gradient(135deg, var(--navy-mid), var(--navy-deep));
}

.sedes__map-img {
    width: 100%;
    height: auto;
    display: block;
}

.sedes__map-svg {
    width: 100%;
    height: auto;
    display: block;
}

.sedes__map-caption {
    text-align: center;
    font-family: var(--ff-b);
    font-size: .78rem;
    color: var(--wd);
    opacity: .7;
}

.sedes__map-caption code {
    background: var(--wg);
    border: 1px solid rgba(240, 192, 64, .2);
    border-radius: 3px;
    padding: .1em .4em;
    font-family: monospace;
    color: var(--gold);
    font-size: .85em;
}

/* ── Hero flag real image ───────────────────────────────── */
.hero__flag-img {
    height: 110px;
    max-width: 280px;
    width: auto;
    object-fit: contain;
    display: block;
    margin: 0;
    filter: drop-shadow(0 2px 10px rgba(0, 0, 0, .55));
}

/* Footer flag image */
.footer__flag-img {
    height: 72px;
    max-width: 200px;
    width: auto;
    object-fit: contain;
    display: block;
    margin: .6rem 0 0;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, .5));
}

/* Organigrama flag image */
.orgchart__flag-img {
    height: 60px;
    max-width: 180px;
    width: auto;
    object-fit: contain;
    display: block;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, .45));
}

/* ══════════════════════════════════════════════════
   ORGANIGRAMA — RESPONSIVE (idéntico al desktop)
   La sección usa scroll horizontal en móvil para
   preservar la estructura sin deformarla.
══════════════════════════════════════════════════ */
@media (max-width: 900px) {

    /* El contenedor principal ya NO hace scroll horizontal (para que el header quede bien centrado) */
    .section.orgchart {
        overflow: hidden;
    }

    /* El nuevo wrapper SÍ hace scroll horizontal de solo el árbol */
    .orgchart__scroll-wrap {
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 1rem; /* espacio para la barra de scroll */
    }

    /* El árbol mantiene su ancho mínimo — no colapsa */
    .orgchart__body {
        min-width: 700px;
        width: max-content;
        max-width: none;
        padding: 0 1.5rem;
        margin: 0 auto;
    }

    /* Nodos ligeramente más pequeños pero legibles */
    .org-node {
        font-size: .72rem;
        padding: .45rem .8rem;
        min-width: 130px;
        max-width: 200px;
    }

    .org-node--sub {
        font-size: .65rem;
        min-width: 110px;
        max-width: 155px;
        padding: .4rem .6rem;
    }

    .org-node--gestion {
        min-width: 170px;
    }

    /* La barra horizontal mantiene su anchura */
    .org-hbar {
        width: 80%;
    }

    /* Gap entre columnas del nivel de apoyo más compacto */
    .org-level__nodes--apoyo {
        gap: 1.5rem;
    }
}

@media (max-width: 600px) {
    /* En pantallas muy pequeñas el árbol puede ser más estrecho */
    .orgchart__body {
        min-width: 560px;
    }

    .org-node {
        font-size: .68rem;
        min-width: 110px;
        max-width: 170px;
    }

    /* Header del organigrama apilado en vertical */
    .orgchart__header {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 1rem;
    }
}

/* ── Indicador de scroll horizontal (solo móvil) ─ */
.orgchart__scroll-hint {
    display: none;
    text-align: center;
    font-family: var(--ff-h);
    font-size: .65rem;
    letter-spacing: .15em;
    color: var(--gold);
    opacity: .55;
    margin-bottom: .8rem;
    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
    0%, 100% { opacity: .35; }
    50% { opacity: .7; }
}

@media (max-width: 900px) {
    .orgchart__scroll-hint {
        display: block;
    }
}