/* =========================================================
   HONDUCOR - Sitio público
   Paleta: azul institucional + turquesa "Correos de Honduras" + dorado del escudo
   ========================================================= */

@font-face {
    font-family: "Montserrat";
    src: url("../fonts/montserrat-latin-wght-normal.woff2") format("woff2-variations");
    font-weight: 100 900;
    font-display: swap;
}

:root {
    --hc-navy: #0b2a52;
    --hc-navy-2: #123d74;
    --hc-blue: #1f569c;
    --hc-teal: #1f569c;
    --hc-teal-2: #184a8a;
    --hc-gold: #F5AE09;
    --hc-ink: #13223a;
    --hc-muted: #5b6b80;
    --hc-line: #e3e9f1;
    --hc-bg: #f4f7fb;
    --hc-white: #ffffff;
    --hc-gradient: linear-gradient(135deg, #3a78c4 0%, #1f569c 55%, #173f77 100%);
    --hc-accent-light: #9cc0ee;
    --hc-gradient-dark: linear-gradient(135deg, var(--hc-navy) 0%, var(--hc-blue) 100%);
    /* Dos radios (más el "pill" de los botones): grande para tarjetas e imágenes, chico para piezas internas. */
    --hc-radius: 16px;
    --hc-radius-sm: 12px;
    /* Tres niveles de sombra, siempre de dos capas (una corta y otra suave) y teñidas del azul marino:
       reposo (tarjetas quietas), elevada (al pasar el mouse) y flotante (elementos principales). */
    --hc-shadow-sm: 0 1px 2px rgba(11, 42, 82, .05), 0 4px 14px -6px rgba(11, 42, 82, .10);
    --hc-shadow: 0 2px 4px rgba(11, 42, 82, .05), 0 14px 32px -12px rgba(11, 42, 82, .20);
    --hc-shadow-lg: 0 4px 8px rgba(11, 42, 82, .06), 0 28px 56px -22px rgba(11, 42, 82, .30);
    --hc-ease: cubic-bezier(.22, .61, .36, 1);
    /* Un solo lenguaje de hover: subir 4 px, un nivel más de sombra, 250 ms. */
    --hc-lift: -4px;
    --hc-hover: transform .25s var(--hc-ease), box-shadow .25s var(--hc-ease), border-color .25s var(--hc-ease), background-color .25s var(--hc-ease), color .25s var(--hc-ease);
    --font-head: "Montserrat", system-ui, sans-serif;
    --font-body: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;
    --header-h: 86px;
}

/* ---------- Base ---------- */
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }

body {
    font-family: var(--font-body);
    color: var(--hc-ink);
    background: var(--hc-white);
    font-size: 1rem;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 { font-family: var(--font-head); font-weight: 700; color: var(--hc-navy); letter-spacing: -.01em; }

a { color: var(--hc-blue); text-decoration: none; transition: color .2s var(--hc-ease); }
a:hover { color: var(--hc-teal-2); }

img { max-width: 100%; height: auto; }

:focus-visible { outline: 3px solid var(--hc-teal); outline-offset: 2px; border-radius: 4px; }

.skip-link {
    position: absolute; left: -999px; top: 8px; z-index: 2000;
    background: var(--hc-navy); color: #fff; padding: .6rem 1rem; border-radius: 8px;
}
.skip-link:focus { left: 8px; color: #fff; }

.text-gradient {
    background: var(--hc-gradient);
    -webkit-background-clip: text; background-clip: text;
    color: transparent;
}
.text-white-75 { color: rgba(255, 255, 255, .78); }

/* ---------- Barra de progreso ---------- */
.scroll-progress { position: fixed; inset: 0 0 auto 0; height: 3px; z-index: 1100; pointer-events: none; }
.scroll-progress span { display: block; height: 100%; width: 0; background: var(--hc-gradient); transition: width .1s linear; }

/* ---------- Botones ---------- */
.btn-track {
    display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
    background: var(--hc-gradient); color: #fff; border: 0;
    font-family: var(--font-head); font-weight: 600; letter-spacing: .01em;
    padding: .7rem 1.35rem; border-radius: 999px;
    box-shadow: 0 8px 22px rgba(31, 86, 156, .35);
    position: relative; overflow: hidden; isolation: isolate;
    transition: transform .25s var(--hc-ease), box-shadow .25s var(--hc-ease);
}
.btn-track::before {
    content: ""; position: absolute; inset: 0; z-index: -1;
    background: linear-gradient(120deg, transparent 20%, rgba(255, 255, 255, .35) 50%, transparent 80%);
    transform: translateX(-120%); transition: transform .7s var(--hc-ease);
}
.btn-track:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 14px 30px rgba(31, 86, 156, .45); }
.btn-track:hover::before { transform: translateX(120%); }
.btn-track:active { transform: translateY(0) scale(.98); box-shadow: 0 6px 14px rgba(31, 86, 156, .35); }

.btn-outline-brand {
    display: inline-flex; align-items: center; gap: .5rem;
    border: 2px solid var(--hc-blue); color: var(--hc-blue); background: transparent;
    font-family: var(--font-head); font-weight: 600; padding: .65rem 1.4rem; border-radius: 999px;
    transition: var(--hc-hover);
}
.btn-outline-brand:hover { background: var(--hc-blue); color: #fff; transform: translateY(-2px); box-shadow: 0 10px 22px -8px rgba(31, 86, 156, .45); }
.btn-outline-brand:active { transform: translateY(0) scale(.98); box-shadow: none; }
.btn-outline-brand i, .link-arrow i, .service-more i { transition: transform .25s var(--hc-ease); }
.btn-outline-brand:hover i, .link-arrow:hover i { transform: translateX(4px); }

.btn-icon {
    width: 44px; height: 44px; border-radius: 50%;
    display: inline-grid; place-items: center;
    background: var(--hc-bg); border: 1px solid var(--hc-line); color: var(--hc-navy);
    font-size: 1.15rem; transition: var(--hc-hover);
}
.btn-icon:hover { background: var(--hc-navy); color: #fff; }
.btn-icon:active { transform: scale(.94); }

.link-arrow { font-family: var(--font-head); font-weight: 600; display: inline-flex; align-items: center; gap: .4rem; }

/* ---------- Barra superior ---------- */
.topbar { background: var(--hc-navy); color: rgba(255, 255, 255, .8); font-size: .82rem; padding: .45rem 0; }
.topbar a { color: rgba(255, 255, 255, .85); }
.topbar a:hover { color: var(--hc-teal); }
.topbar-info { display: flex; gap: 1.6rem; }
.topbar-info i { color: var(--hc-teal); margin-right: .3rem; }
.topbar-social { display: flex; gap: .9rem; font-size: .95rem; }

/* ---------- Encabezado ---------- */
.site-header {
    position: sticky; top: 0; z-index: 1030;
    background: rgba(255, 255, 255, .92);
    backdrop-filter: saturate(180%) blur(14px);
    -webkit-backdrop-filter: saturate(180%) blur(14px);
    border-bottom: 1px solid transparent;
    transition: box-shadow .3s var(--hc-ease), border-color .3s var(--hc-ease);
}
.site-header > .container { min-height: var(--header-h); transition: min-height .3s var(--hc-ease); }
.site-header.is-scrolled { box-shadow: 0 8px 30px rgba(11, 42, 82, .08); border-bottom-color: var(--hc-line); }
.site-header.is-scrolled > .container { min-height: 70px; }

.brand { display: flex; align-items: center; gap: .75rem; color: var(--hc-navy); flex-shrink: 0; }
.brand img { height: 62px; width: auto; transition: height .3s var(--hc-ease); }
.site-header.is-scrolled .brand img { height: 50px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; border-left: 2px solid var(--hc-line); padding-left: .75rem; }
.brand-text strong { font-family: var(--font-head); font-size: 1.2rem; letter-spacing: .04em; color: var(--hc-navy); }
.brand-text small { font-size: .72rem; color: var(--hc-teal-2); font-weight: 600; text-transform: uppercase; letter-spacing: .08em; }
.brand:hover { color: var(--hc-navy); }

.header-actions { display: flex; align-items: center; gap: .6rem; }

/* ---------- Menú principal (escritorio) ---------- */
.nav-list { list-style: none; display: flex; gap: .15rem; margin: 0; padding: 0; }
.nav-item-top { position: relative; }
.nav-top-link {
    display: flex; align-items: center; gap: .3rem;
    padding: .65rem .8rem; border-radius: 10px;
    font-family: var(--font-head); font-weight: 600; font-size: .9rem; color: var(--hc-ink);
    position: relative;
}
.nav-top-link i { font-size: .7rem; transition: transform .25s var(--hc-ease); }
.nav-top-link::after {
    content: ""; position: absolute; left: .8rem; right: .8rem; bottom: .3rem; height: 2px;
    background: var(--hc-gradient); border-radius: 2px;
    transform: scaleX(0); transform-origin: left; transition: transform .3s var(--hc-ease);
}
.nav-top-link:hover, .nav-top-link.active { color: var(--hc-blue); }
.nav-top-link:hover::after, .nav-top-link.active::after { transform: scaleX(1); }
.nav-item-top:hover > .nav-top-link i, .nav-item-top:focus-within > .nav-top-link i { transform: rotate(180deg); }

.dropdown-panel {
    position: absolute; top: calc(100% + 10px); left: 50%;
    min-width: 270px; padding: .6rem;
    background: #fff; border-radius: var(--hc-radius-sm);
    border: 1px solid var(--hc-line); box-shadow: var(--hc-shadow-lg);
    opacity: 0; visibility: hidden; transform: translate(-50%, 10px);
    transition: opacity .25s var(--hc-ease), transform .25s var(--hc-ease), visibility .25s;
}
.dropdown-panel::before { content: ""; position: absolute; inset: -12px 0 auto 0; height: 12px; }
.nav-item-top:hover > .dropdown-panel,
.nav-item-top:focus-within > .dropdown-panel { opacity: 1; visibility: visible; transform: translate(-50%, 0); }

/* El mega-menú se centra respecto al encabezado (no al elemento) para no salirse de la pantalla. */
.nav-item-top.is-mega { position: static; }
.is-mega .dropdown-panel { min-width: min(760px, 94vw); padding: 1.2rem; top: calc(100% - 6px); }
.mega-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.mega-title {
    display: block; font-family: var(--font-head); font-weight: 700; font-size: .85rem;
    color: var(--hc-navy); padding: .4rem .6rem; margin-bottom: .2rem;
    border-bottom: 2px solid var(--hc-bg);
}
.mega-title:hover { color: var(--hc-teal-2); }

.dropdown-link {
    display: flex; align-items: center; gap: .45rem;
    padding: .5rem .7rem; border-radius: 8px;
    font-size: .875rem; color: var(--hc-ink);
    transition: background .2s, color .2s, padding-left .2s var(--hc-ease);
}
.dropdown-link i { font-size: .65rem; color: var(--hc-teal); }
.dropdown-link .ext { margin-left: auto; font-size: .7rem; color: var(--hc-muted); }
.dropdown-link:hover { background: var(--hc-bg); color: var(--hc-blue); padding-left: 1rem; }

/* ---------- Menú móvil ---------- */
.mobile-nav { width: min(360px, 88vw) !important; }
.mobile-list, .mobile-sub, .mobile-sub-2 { list-style: none; margin: 0; padding: 0; }
.mobile-link, .mobile-toggle {
    display: flex; justify-content: space-between; align-items: center; width: 100%;
    padding: .85rem .25rem; border: 0; background: none; text-align: left;
    font-family: var(--font-head); font-weight: 600; color: var(--hc-navy);
    border-bottom: 1px solid var(--hc-line);
}
.mobile-toggle i { transition: transform .25s; }
.mobile-toggle:not(.collapsed) i { transform: rotate(180deg); }
.mobile-sub { padding: .4rem 0 .6rem .8rem; }
.mobile-sub a { display: block; padding: .45rem 0; color: var(--hc-ink); font-size: .92rem; }
.mobile-sub-2 { padding-left: .9rem; border-left: 2px solid var(--hc-line); }
.mobile-sub-2 a { font-size: .85rem; color: var(--hc-muted); }

/* ---------- Búsqueda ---------- */
.search-overlay {
    position: fixed; inset: 0; z-index: 1200;
    background: rgba(11, 42, 82, .94);
    backdrop-filter: blur(8px);
    display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 1.5rem;
    animation: fadeIn .3s var(--hc-ease);
}
.search-overlay[hidden] { display: none; }
.search-form {
    width: min(720px, 100%); display: flex; align-items: center; gap: .75rem;
    background: #fff; border-radius: 999px; padding: .5rem .5rem .5rem 1.4rem;
    box-shadow: var(--hc-shadow-lg); animation: slideUp .4s var(--hc-ease);
}
.search-form > i { color: var(--hc-muted); font-size: 1.2rem; }
.search-form input { flex: 1; border: 0; outline: 0; font-size: 1.15rem; min-width: 0; }
.search-hint { color: rgba(255, 255, 255, .7); margin-top: 1rem; }
.search-close {
    position: absolute; top: 1.5rem; right: 1.5rem; width: 52px; height: 52px; border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, .3); background: transparent; color: #fff; font-size: 1.3rem;
    transition: transform .3s var(--hc-ease), background .3s;
}
.search-close:hover { transform: rotate(90deg); background: rgba(255, 255, 255, .1); }

/* ---------- Hero ---------- */
.hero { position: relative; background: var(--hc-navy); }
.hero-swiper { width: 100%; }
.hero-swiper .swiper-slide { position: relative; overflow: hidden; }
.hero-img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 5; object-fit: cover; }
.hero-swiper .swiper-slide-active .hero-img { animation: kenburns 9s ease-out both; }
.hero-link { display: block; }
.hero-caption { position: absolute; inset: 0; display: flex; align-items: center; background: linear-gradient(90deg, rgba(11, 42, 82, .85), transparent 70%); }
.hero-caption-box { max-width: 560px; color: #fff; }
.hero-caption-box h2 { color: #fff; font-size: clamp(1.6rem, 3.2vw, 3rem); font-weight: 800; }
.hero-caption-box p { font-size: 1.1rem; opacity: .9; }
.swiper-slide-active .hero-caption-box > * { animation: slideUp .8s var(--hc-ease) both; }
.swiper-slide-active .hero-caption-box > *:nth-child(2) { animation-delay: .12s; }
.swiper-slide-active .hero-caption-box > *:nth-child(3) { animation-delay: .24s; }

.hero-nav {
    --swiper-navigation-size: 18px;
    width: 52px !important; height: 52px !important; border-radius: 50%;
    background: rgba(255, 255, 255, .18); backdrop-filter: blur(6px); color: #fff !important;
    border: 1px solid rgba(255, 255, 255, .35);
    opacity: 0; transition: opacity .3s, background .3s, transform .3s var(--hc-ease);
}
.hero:hover .hero-nav, .hero:focus-within .hero-nav { opacity: 1; }
.hero-nav:hover { background: var(--hc-teal); transform: scale(1.08); }

/* Puntos de paginación: la barrita visible mide 5 px, pero el área táctil es de 24 px de alto. */
.hero-pagination { bottom: 60px !important; }
.hero-pagination .swiper-pagination-bullet {
    position: relative; width: 32px; height: 24px; margin: 0 !important; border-radius: 0;
    background: transparent; opacity: 1; transition: width .4s var(--hc-ease);
}
.hero-pagination .swiper-pagination-bullet::after {
    content: ""; position: absolute; left: 2px; right: 2px; top: 50%; height: 5px; margin-top: -2.5px;
    border-radius: 5px; background: #fff; opacity: .5; transition: opacity .3s, box-shadow .3s;
}
.hero-pagination .swiper-pagination-bullet-active { width: 60px; }
.hero-pagination .swiper-pagination-bullet-active::after { opacity: 1; box-shadow: 0 0 10px rgba(255, 255, 255, .6); }

/* ---------- Hero: transición de banners ---------- */
.hero-swiper { --hero-ease: cubic-bezier(.77, 0, .18, 1); }

/* Una imagen sobre la otra: el banner nuevo va apareciendo ENCIMA del anterior, que se queda visible
   debajo durante todo el cambio y se retira solo cuando el nuevo ya está completo. Así el fondo azul
   nunca se asoma. Mientras alguien arrastra el banner con el dedo, site.js pone .is-dragging y el banner
   sigue al dedo sin retraso. Con "movimiento reducido" estas reglas no se aplican (el cambio es inmediato).
   Si cambiás los 1100 ms, ajustá "speed" en site.js. */
.hero-swiper .swiper-slide { background: var(--hc-navy); transition-property: opacity; }
.hero-swiper .swiper-slide-active { z-index: 2; }
@media (prefers-reduced-motion: no-preference) {
    .hero-swiper:not(.is-dragging) .swiper-slide-active { transition-duration: 1100ms !important; transition-delay: 0s; transition-timing-function: cubic-bezier(.4, 0, .2, 1); }
    .hero-swiper:not(.is-dragging) .swiper-slide:not(.swiper-slide-active) { transition-duration: .01ms !important; transition-delay: 1100ms; }
}

/* Destello de luz que cruza el banner cuando cambia (lo activa site.js con la clase .is-sweeping). */
.hero-sweep { position: absolute; inset: 0; z-index: 4; overflow: hidden; pointer-events: none; }
.hero-sweep::before {
    content: ""; position: absolute; top: -10%; bottom: -10%; left: 0; width: 34%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .22) 50%, transparent);
    transform: translateX(-140%) skewX(-18deg); opacity: 0;
}
.hero-swiper.is-sweeping .hero-sweep::before { animation: hero-sweep 1.2s var(--hero-ease) .1s both; }
@keyframes hero-sweep {
    0%   { transform: translateX(-140%) skewX(-18deg); opacity: 0; }
    20%  { opacity: 1; }
    80%  { opacity: 1; }
    100% { transform: translateX(380%) skewX(-18deg); opacity: 0; }
}

/* Barra de progreso del cambio automático (6 s: igual que DELAY en site.js). */
.hero-progress { position: absolute; left: 0; right: 0; bottom: 48px; height: 3px; z-index: 9; background: rgba(255, 255, 255, .16); pointer-events: none; }
.hero-progress span { display: block; width: 100%; height: 100%; background: linear-gradient(90deg, var(--hc-accent-light), #fff); transform: scaleX(0); transform-origin: left; }
.hero-progress.run span { animation: hero-progress 6s linear forwards; }
.hero-swiper.is-paused .hero-progress span { animation-play-state: paused; }
@keyframes hero-progress { to { transform: scaleX(1); } }

/* Botón de pausa / reanudar. */
.hero-toggle {
    position: absolute; right: 24px; bottom: 52px; z-index: 10; width: 40px; height: 40px; border-radius: 50%;
    display: grid; place-items: center; font-size: 1.25rem; color: #fff;
    background: rgba(11, 42, 82, .55); border: 1px solid rgba(255, 255, 255, .45); backdrop-filter: blur(6px);
    transition: background .25s, transform .25s var(--hc-ease);
}
.hero-toggle:hover { background: var(--hc-blue); transform: scale(1.08); }

/* Celular: el banner mide ~117 px de alto; los puntos taparían su texto. Se desliza con el dedo
   y la barra de progreso indica el avance. El botón de pausa pasa a la esquina superior. */
@media (max-width: 575.98px) {
    .hero-pagination { display: none !important; }
    .hero-toggle { right: 8px; top: 8px; bottom: auto; width: 34px; height: 34px; font-size: 1.1rem; }
}
@media (prefers-reduced-motion: reduce) {
    .hero-sweep, .hero-progress { display: none; }
    /* Sin movimiento: el cambio es inmediato (se anulan los tiempos del fundido de arriba). */
    .hero-swiper .swiper-slide, .hero-swiper .swiper-slide:not(.swiper-slide-active), .hero-swiper .swiper-slide-active {
        transition-duration: .01ms !important; transition-delay: 0s !important;
    }
}

/* ---------- Rastreo ---------- */
.tracking-section { position: relative; z-index: 5; margin-top: -48px; padding-bottom: 3rem; background: linear-gradient(to bottom, transparent 48px, var(--hc-bg) 48px); }
.tracking-card {
    display: grid; grid-template-columns: 1fr 1.25fr; gap: 2rem; align-items: center;
    background: #fff; border-radius: var(--hc-radius); padding: 1.8rem 2rem;
    box-shadow: var(--hc-shadow-lg); border: 1px solid var(--hc-line);
    position: relative; overflow: hidden;
}
/* Filo de luz en el borde superior (reemplaza la franja de color): da relieve sin adornar. */
.tracking-card::before { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .95), inset 0 -1px 0 rgba(11, 42, 82, .03); }
.tracking-intro { display: flex; gap: 1rem; align-items: center; }
.tracking-intro h2 { font-size: 1.45rem; margin: 0 0 .2rem; }
.tracking-intro p { margin: 0; color: var(--hc-muted); font-size: .92rem; }
.tracking-icon {
    flex-shrink: 0; width: 60px; height: 60px; border-radius: var(--hc-radius-sm);
    display: grid; place-items: center; font-size: 1.6rem; color: #fff;
    background: var(--hc-gradient); box-shadow: 0 10px 24px -6px rgba(31, 86, 156, .45);
}
.tracking-form { display: flex; gap: .75rem; flex-wrap: wrap; }
.tracking-input { flex: 1; position: relative; min-width: 0; }
.tracking-input i { position: absolute; left: 1.1rem; top: 50%; transform: translateY(-50%); color: var(--hc-muted); font-size: 1.15rem; transition: color .2s; }
.tracking-input:focus-within i { color: var(--hc-blue); }
.tracking-input input {
    width: 100%; height: 56px; padding: 0 1rem 0 3rem;
    border: 2px solid var(--hc-line); border-radius: 999px; font-size: 1.05rem; font-weight: 500;
    text-transform: uppercase; letter-spacing: .04em; background: var(--hc-bg);
    transition: border-color .2s, box-shadow .2s, background .2s;
}
.tracking-input input::placeholder { text-transform: none; letter-spacing: 0; font-weight: 400; }
.tracking-input input:focus { outline: 0; border-color: var(--hc-blue); background: #fff; box-shadow: 0 0 0 5px rgba(31, 86, 156, .12); }
.tracking-input input[aria-invalid="true"] { border-color: #CF1D1F; background: #fff; box-shadow: 0 0 0 5px rgba(207, 29, 31, .10); }
.tracking-form .btn-track { height: 56px; padding: 0 1.8rem; }
/* Mensaje de error en línea (sin globos del navegador) y estado "Consultando…". */
.tracking-error { flex-basis: 100%; margin: 0; padding-left: 1.2rem; font-size: .85rem; font-weight: 500; color: #B3171A; }
.tracking-error[hidden] { display: none; }
.tracking-form .btn-track.is-loading { pointer-events: none; opacity: .88; }
.tracking-form .btn-track.is-loading i { display: none; }

.quick-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-top: 1.5rem; }
.quick-tile {
    display: flex; align-items: center; gap: .9rem;
    padding: 1.1rem 1.2rem; background: #fff; border-radius: var(--hc-radius-sm);
    border: 1px solid var(--hc-line); color: var(--hc-ink); position: relative;
    box-shadow: var(--hc-shadow-sm);
    transition: var(--hc-hover);
}
.quick-tile strong { display: block; font-family: var(--font-head); font-size: .95rem; color: var(--hc-navy); }
.quick-tile small { color: var(--hc-muted); font-size: .8rem; }
.quick-icon {
    flex-shrink: 0; width: 46px; height: 46px; border-radius: var(--hc-radius-sm);
    display: grid; place-items: center; font-size: 1.25rem;
    background: rgba(31, 86, 156, .08); color: var(--hc-teal-2);
    transition: background-color .25s var(--hc-ease), color .25s var(--hc-ease), transform .25s var(--hc-ease);
}
.quick-arrow { margin-left: auto; color: var(--hc-muted); transition: transform .25s var(--hc-ease), color .25s var(--hc-ease); }
.quick-tile:hover { transform: translateY(var(--hc-lift)); box-shadow: var(--hc-shadow); border-color: rgba(31, 86, 156, .18); color: var(--hc-ink); }
.quick-tile:hover .quick-icon { background: var(--hc-gradient); color: #fff; transform: scale(1.04); }
.quick-tile:hover .quick-arrow { transform: translateX(4px); color: var(--hc-teal-2); }
.quick-tile:active { transform: translateY(-1px); box-shadow: var(--hc-shadow-sm); }

/* ---------- Secciones ---------- */
/* Ritmo vertical constante entre secciones; los fondos se alternan (blanco / gris / azul marino). */
.section { padding: clamp(3.75rem, 7vw, 6rem) 0; position: relative; }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; margin-bottom: 2.5rem; flex-wrap: wrap; }
.section-title { font-size: clamp(1.7rem, 2.8vw, 2.5rem); font-weight: 800; line-height: 1.2; margin-bottom: 0; text-wrap: balance; }
.section-lead { color: var(--hc-muted); font-size: 1.08rem; margin-top: 1rem; max-width: 62ch; text-wrap: pretty; }
.eyebrow {
    display: inline-flex; align-items: center; gap: .5rem; margin-bottom: .7rem;
    font-family: var(--font-head); font-weight: 700; font-size: .78rem;
    text-transform: uppercase; letter-spacing: .14em; color: var(--hc-teal-2);
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: var(--hc-gradient); border-radius: 2px; }
.eyebrow-light { color: var(--hc-teal); }

/* ---------- Quiénes somos ---------- */
.about-section { background: var(--hc-bg); padding-top: 3rem; }
.about-visual { position: relative; max-width: 520px; margin: 0 auto; }
.about-img { border-radius: var(--hc-radius); box-shadow: var(--hc-shadow-lg); position: relative; z-index: 1; background: #fff; }
.about-badge {
    position: absolute; z-index: 2; right: -18px; bottom: 36px;
    background: #fff; border-radius: var(--hc-radius-sm); padding: 1rem 1.2rem; max-width: 230px;
    box-shadow: var(--hc-shadow-lg); display: flex; gap: .8rem; align-items: center;
    font-size: .85rem; color: var(--hc-muted); line-height: 1.3;
    animation: float 6s ease-in-out infinite;
}
.about-badge-number { font-family: var(--font-head); font-size: 2.2rem; font-weight: 800; color: var(--hc-blue); line-height: 1; font-variant-numeric: tabular-nums; }
.about-dots {
    position: absolute; z-index: 0; left: -30px; top: -30px; width: 160px; height: 160px;
    background-image: radial-gradient(var(--hc-teal) 2px, transparent 2px); background-size: 16px 16px; opacity: .35;
}
.pillars { display: grid; gap: .9rem; margin-top: 1.6rem; }
.pillar { display: flex; gap: 1rem; align-items: flex-start; padding: 1rem 1.1rem; background: #fff; border-radius: var(--hc-radius-sm); border: 1px solid var(--hc-line); box-shadow: var(--hc-shadow-sm); transition: var(--hc-hover); }
.pillar:hover { transform: translateY(-2px); box-shadow: var(--hc-shadow); border-color: rgba(31, 86, 156, .18); }
.pillar > i { font-size: 1.3rem; color: var(--hc-gold); }
.pillar strong { display: block; font-family: var(--font-head); color: var(--hc-navy); }
.pillar span { font-size: .9rem; color: var(--hc-muted); }

/* ---------- Servicios ---------- */
/* Servicios: al pasar el mouse la tarjeta se llena de azul, el ícono da una vuelta y aparece la barra superior. */
.service-card {
    display: flex; flex-direction: column; height: 100%;
    padding: 2rem 1.8rem; background: #fff; border-radius: 18px;
    border: 1px solid var(--hc-line); color: var(--hc-ink);
    position: relative; overflow: hidden; isolation: isolate;
    transition: transform .4s var(--hc-ease), box-shadow .4s var(--hc-ease), border-color .4s;
}
.service-card::before {
    content: ""; position: absolute; inset: 0; z-index: -1;
    background: var(--hc-gradient-dark); opacity: 0; transition: opacity .4s var(--hc-ease);
}
.service-card::after { content: ""; position: absolute; left: 0; top: 0; height: 4px; width: 0; background: var(--hc-gradient); transition: width .5s var(--hc-ease); }
.service-icon {
    width: 64px; height: 64px; border-radius: 18px; display: grid; place-items: center;
    font-size: 1.75rem; color: #fff; background: var(--hc-gradient);
    box-shadow: 0 12px 26px rgba(31, 86, 156, .25); margin-bottom: 1.3rem;
    transition: transform .5s var(--hc-ease), background .4s;
}
/* Imagen del servicio: a la derecha del texto, que la rodea */
.service-figure { float: right; width: clamp(200px, 34%, 280px); margin: 0 0 1rem 1.75rem; border-radius: var(--hc-radius); overflow: hidden; box-shadow: var(--hc-shadow); background: #e3edf9; }
.service-figure img { display: block; width: 100%; height: auto; }
.content-card::after { content: ""; display: block; clear: both; }
@media (max-width: 575.98px) { .service-figure { float: none; width: 100%; max-width: 320px; margin: 0 auto 1.25rem; } }
.service-card h3 { font-size: 1.2rem; margin-bottom: .6rem; transition: color .4s; }
.service-card p { color: var(--hc-muted); font-size: .95rem; flex: 1; transition: color .4s; }
.service-more { font-family: var(--font-head); font-weight: 600; font-size: .9rem; color: var(--hc-blue); display: inline-flex; gap: .4rem; align-items: center; transition: color .4s; }
.service-num { position: absolute; right: 1.2rem; top: .6rem; font-family: var(--font-head); font-weight: 800; font-size: 3.6rem; color: var(--hc-bg); line-height: 1; z-index: -1; transition: color .4s; }
.service-card:hover { transform: translateY(-8px); box-shadow: 0 30px 70px rgba(11, 42, 82, .18); border-color: transparent; color: #fff; }
.service-card:hover::before { opacity: 1; }
.service-card:hover::after { width: 100%; }
.service-card:hover .service-icon { transform: rotateY(180deg); background: rgba(255, 255, 255, .15); }
.service-card:hover .service-icon i { transform: rotateY(180deg); }
.service-card:hover h3 { color: #fff; }
.service-card:hover p { color: rgba(255, 255, 255, .8); }
.service-card:hover .service-more { color: var(--hc-teal); }
.service-card:hover .service-more i { transform: translateX(5px); }
.service-card:hover .service-num { color: rgba(255, 255, 255, .07); }

/* ---------- Cifras ---------- */
.stats-section {
    padding: 4.5rem 0; color: #fff; position: relative; overflow: hidden;
    background:
        radial-gradient(circle at 10% 20%, rgba(31, 86, 156, .35), transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(245, 174, 9, .25), transparent 40%),
        var(--hc-gradient-dark);
}
.stat { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: .3rem; }
.stat i { font-size: 1.6rem; color: var(--hc-teal); margin-bottom: .3rem; }
.stat-number { font-family: var(--font-head); font-weight: 800; font-size: clamp(2.2rem, 4vw, 3.4rem); line-height: 1; font-variant-numeric: tabular-nums; }
.stat-label { color: rgba(255, 255, 255, .75); font-size: .95rem; }
/* Separadores finos entre cifras (reemplazan la cuadrícula decorativa del fondo). */
@media (min-width: 992px) {
    .stats-section .row > [class*="col-"] + [class*="col-"] .stat::before {
        content: ""; position: absolute; left: calc(var(--bs-gutter-x) / -2); top: 12%; bottom: 12%; width: 1px;
        background: linear-gradient(to bottom, transparent, rgba(255, 255, 255, .22), transparent);
    }
}

/* ---------- Noticias ---------- */
/* Noticias: el fondo gris claro hace de marcador de posición mientras cada imagen carga. */
.news-section { background: var(--hc-bg); }
.news-featured { display: block; position: relative; border-radius: var(--hc-radius); overflow: hidden; height: 100%; min-height: 460px; color: #fff; box-shadow: var(--hc-shadow); background: #d9e0ec; transition: var(--hc-hover); }
.news-featured:hover { transform: translateY(var(--hc-lift)); box-shadow: var(--hc-shadow-lg); }
.news-featured img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--hc-ease); }
.news-featured::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(11, 42, 82, .95) 0%, rgba(11, 42, 82, .3) 55%, transparent 100%); }
.news-featured-body { position: absolute; z-index: 1; left: 0; right: 0; bottom: 0; padding: 2rem; }
.news-featured h3 { color: #fff; font-size: 1.55rem; margin: .7rem 0 .5rem; text-wrap: balance; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; line-clamp: 3; overflow: hidden; }
.news-featured p { color: rgba(255, 255, 255, .85); margin-bottom: .8rem; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; line-clamp: 3; overflow: hidden; }
.news-featured .news-date { color: rgba(255, 255, 255, .8); }
.news-featured:hover { color: #fff; }
.news-featured:hover img { transform: scale(1.07); }
.news-tag { display: inline-block; background: var(--hc-gold); color: #fff; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; padding: .3rem .7rem; border-radius: 999px; }
.news-list { display: grid; gap: 1rem; }
.news-item { display: flex; gap: 1.1rem; align-items: center; padding: .8rem; border-radius: var(--hc-radius-sm); background: #fff; border: 1px solid var(--hc-line); color: var(--hc-ink); box-shadow: var(--hc-shadow-sm); transition: var(--hc-hover); }
.news-item:hover { transform: translateY(var(--hc-lift)); box-shadow: var(--hc-shadow); border-color: rgba(31, 86, 156, .18); color: var(--hc-ink); }
.news-item:active { transform: translateY(-1px); box-shadow: var(--hc-shadow-sm); }
.news-item h3 { font-size: 1rem; margin: .3rem 0 0; line-height: 1.35; transition: color .2s; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; line-clamp: 3; overflow: hidden; }
.news-item:hover h3 { color: var(--hc-blue); }
.news-thumb { flex-shrink: 0; width: 120px; height: 92px; border-radius: var(--hc-radius-sm); overflow: hidden; background: var(--hc-bg); }
.news-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--hc-ease); }
.news-item:hover .news-thumb img { transform: scale(1.1); }
.news-date { font-size: .8rem; font-weight: 500; letter-spacing: .01em; color: var(--hc-muted); display: inline-flex; gap: .4rem; align-items: center; }

.news-card { display: flex; flex-direction: column; height: 100%; background: #fff; border-radius: var(--hc-radius); overflow: hidden; border: 1px solid var(--hc-line); color: var(--hc-ink); box-shadow: var(--hc-shadow-sm); transition: var(--hc-hover); }
.news-card:hover { transform: translateY(var(--hc-lift)); box-shadow: var(--hc-shadow); border-color: rgba(31, 86, 156, .18); color: var(--hc-ink); }
.news-card:active { transform: translateY(-1px); box-shadow: var(--hc-shadow-sm); }
.news-card-img { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--hc-bg); }
.news-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--hc-ease); }
.news-card:hover .news-card-img img { transform: scale(1.08); }
.date-badge { position: absolute; top: 1rem; left: 1rem; background: #fff; border-radius: 12px; padding: .4rem .7rem; text-align: center; line-height: 1; box-shadow: var(--hc-shadow-sm); }
.date-badge strong { display: block; font-family: var(--font-head); font-size: 1.35rem; color: var(--hc-navy); }
.date-badge span { font-size: .7rem; font-weight: 700; color: var(--hc-teal-2); }
.news-card-body { padding: 1.4rem; display: flex; flex-direction: column; flex: 1; }
.news-card-body h3 { font-size: 1.1rem; line-height: 1.35; text-wrap: balance; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; line-clamp: 3; overflow: hidden; }
.news-card-body p { color: var(--hc-muted); font-size: .92rem; flex: 1; text-wrap: pretty; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; line-clamp: 3; overflow: hidden; }

/* ---------- Filatelia ---------- */
.philately-section { background: var(--hc-navy); overflow: hidden; }
.philately-bg { position: absolute; inset: 0; background: radial-gradient(circle at 80% 50%, rgba(31, 86, 156, .25), transparent 50%), radial-gradient(circle at 0% 100%, rgba(245, 174, 9, .2), transparent 40%); }
.stamps-swiper { padding: 1rem .5rem 3rem !important; }
/* Borde perforado: el fondo del marco es un patrón de círculos transparentes; el contenido va sobre blanco. */
.stamp-card {
    margin: 0; padding: 9px;
    background: radial-gradient(circle at 50% 50%, transparent 4px, #fff 4.6px) -7px -7px / 14px 14px;
    filter: drop-shadow(0 18px 30px rgba(0, 0, 0, .35));
    transition: transform .4s var(--hc-ease);
}
.stamp-card img { display: block; aspect-ratio: 1; object-fit: cover; width: 100%; background: #fff; padding: .55rem .55rem 0; }
.stamp-card figcaption { font-family: var(--font-head); font-weight: 600; font-size: .85rem; color: var(--hc-navy); text-align: center; padding: .6rem; background: #fff; }
.stamps-swiper .swiper-slide-active .stamp-card { transform: translateY(-6px); }
.stamps-swiper .swiper-slide { transition: opacity .4s; }
.stamps-swiper .swiper-slide:not(.swiper-slide-active) { opacity: .55; }
/* Puntos del carrusel de estampillas: el punto visible mide 8 px, pero el área táctil es de 24 px. */
.stamps-pagination .swiper-pagination-bullet { position: relative; width: 24px; height: 24px; margin: 0 !important; background: transparent; opacity: 1; }
.stamps-pagination .swiper-pagination-bullet::after { content: ""; position: absolute; left: 50%; top: 50%; width: 8px; height: 8px; margin: -4px 0 0 -4px; border-radius: 50%; background: #fff; opacity: .5; transition: opacity .25s, transform .25s var(--hc-ease); }
.stamps-pagination .swiper-pagination-bullet-active::after { opacity: 1; transform: scale(1.35); }

.stamp-grid-card { border-radius: var(--hc-radius-sm); overflow: hidden; background: #fff; border: 1px solid var(--hc-line); cursor: zoom-in; box-shadow: var(--hc-shadow-sm); transition: var(--hc-hover); padding: 0; width: 100%; text-align: left; }
.stamp-grid-card:hover { transform: translateY(var(--hc-lift)); box-shadow: var(--hc-shadow); border-color: rgba(31, 86, 156, .18); }
.stamp-grid-card:active { transform: translateY(-1px); box-shadow: var(--hc-shadow-sm); }
.stamp-grid-card img { aspect-ratio: 1; object-fit: cover; width: 100%; }
.stamp-grid-card span { display: block; padding: .8rem 1rem; font-family: var(--font-head); font-weight: 600; color: var(--hc-navy); }

/* ---------- Enlaces (marquesina) ---------- */
.links-section { padding-bottom: 4rem; }
.marquee { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee-track { display: flex; gap: 1.5rem; width: max-content; animation: marquee 40s linear infinite; padding: 1rem 0; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee:focus-within .marquee-track { animation-play-state: paused; }
.marquee-item { display: flex; flex-direction: column; align-items: center; gap: .6rem; width: 170px; padding: 1.2rem 1rem; background: #fff; border: 1px solid var(--hc-line); border-radius: var(--hc-radius); color: var(--hc-ink); text-align: center; box-shadow: var(--hc-shadow-sm); transition: var(--hc-hover); }
.marquee-item img { width: 84px; height: 84px; object-fit: contain; filter: grayscale(.4); transition: filter .3s, transform .3s var(--hc-ease); }
.marquee-item span { font-size: .8rem; font-weight: 600; line-height: 1.25; }
.marquee-item:hover { transform: translateY(var(--hc-lift)); box-shadow: var(--hc-shadow); border-color: rgba(31, 86, 156, .18); color: var(--hc-blue); }
.marquee-item:hover img { filter: none; transform: scale(1.06); }

/* ---------- CTA ---------- */
.cta-section { padding: 0 0 5rem; }
.cta-box {
    display: flex; justify-content: space-between; align-items: center; gap: 2rem; flex-wrap: wrap;
    padding: 2.8rem 3rem; border-radius: var(--hc-radius); color: #fff; position: relative; overflow: hidden;
    /* Un solo reflejo suave en la esquina (reemplaza los círculos decorativos). */
    background: radial-gradient(120% 150% at 100% 0%, rgba(255, 255, 255, .18), transparent 55%), var(--hc-gradient);
    box-shadow: 0 4px 8px rgba(11, 42, 82, .06), 0 28px 56px -22px rgba(31, 86, 156, .55);
}
.cta-box > * { position: relative; z-index: 1; }
.cta-box h2 { color: #fff; font-size: clamp(1.4rem, 2.4vw, 2rem); margin-bottom: .3rem; text-wrap: balance; }
.cta-box p { margin: 0; opacity: .9; }
.cta-actions { display: flex; gap: .8rem; align-items: center; flex-wrap: wrap; }
/* Jerarquía de botones: el principal es la pastilla blanca; el teléfono es secundario (contorno). */
.cta-phone { color: #fff; font-family: var(--font-head); font-weight: 700; font-size: 1.05rem; display: inline-flex; gap: .5rem; align-items: center; padding: .65rem 1.3rem; border: 1.5px solid rgba(255, 255, 255, .5); border-radius: 999px; transition: var(--hc-hover); }
.cta-phone:hover { color: #fff; background: rgba(255, 255, 255, .14); border-color: #fff; }
.cta-actions .btn-light { border: 0; border-radius: 999px; font-family: var(--font-head); font-weight: 600; color: var(--hc-navy); padding: .75rem 1.6rem; box-shadow: 0 10px 24px -10px rgba(11, 42, 82, .5); transition: var(--hc-hover); }
.cta-actions .btn-light:hover { transform: translateY(-2px); box-shadow: 0 16px 28px -10px rgba(11, 42, 82, .55); color: var(--hc-navy); }
.cta-actions .btn-light:active { transform: scale(.98); }

/* ---------- Pie de página ---------- */
.site-footer { background: #081d3a; color: rgba(255, 255, 255, .72); padding-top: 4.5rem; font-size: .93rem; position: relative; }
.site-footer::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: linear-gradient(90deg, var(--hc-teal), var(--hc-gold), var(--hc-blue)); }
.site-footer h3 { color: #fff; font-size: 1rem; margin-bottom: 1.2rem; position: relative; padding-bottom: .6rem; }
.site-footer h3::after { content: ""; position: absolute; left: 0; bottom: 0; width: 32px; height: 2px; background: var(--hc-teal); }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: .55rem; }
.site-footer a { color: rgba(255, 255, 255, .72); }
.site-footer a:hover { color: var(--hc-teal); }
.site-footer ul:not(.footer-contact) a { display: inline-block; transition: transform .2s var(--hc-ease), color .2s; }
.site-footer ul:not(.footer-contact) a:hover { transform: translateX(5px); }
.footer-logo { width: 150px; filter: brightness(0) invert(1); opacity: .95; }
.footer-contact li { display: flex; gap: .8rem; }
.footer-contact i { color: var(--hc-teal); margin-top: .15rem; }
.footer-social { display: flex; gap: .6rem; margin-top: 1.2rem; }
.footer-social a { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .08); transition: background .3s, transform .3s var(--hc-ease); }
.footer-social a:hover { background: var(--hc-teal); color: #fff; transform: translateY(-3px); }
.footer-meta { display: inline-flex; align-items: center; gap: 1rem; }
/* Visitas: franja del pie con cuatro tarjetas (total, hoy, ayer y conectados ahora), en los colores del sitio */
.visit-stats { position: relative; margin-top: 2.2rem; padding: 1rem 1.2rem 1.2rem; border-radius: 18px;
    background: #081d3a; border: 1px solid rgba(255, 255, 255, .12); }   /* mismo fondo que el pie de página */
.visit-stats-head { position: relative; z-index: 1; display: flex; align-items: center; gap: .7rem; margin-bottom: .85rem; }
.visit-stats-icon { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; font-size: 1rem; color: #fff; background: var(--hc-gradient); box-shadow: 0 8px 18px -6px rgba(31, 86, 156, .8); }
.site-footer h3.visit-stats-title { margin: 0; padding: 0; font-size: 1rem; color: #fff; }
.site-footer h3.visit-stats-title::after { display: none; }
.visit-stats-head p { margin: 0; font-size: .74rem; color: rgba(255, 255, 255, .7); }
.visit-stats-grid { position: relative; z-index: 1; margin: 0; display: grid; grid-template-columns: 1.35fr repeat(3, 1fr); gap: .7rem; }
.visit-stat { position: relative; padding: .7rem .85rem .75rem; border-radius: 14px; background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .1); transition: var(--hc-hover); }
.visit-stat:hover { transform: translateY(-4px); background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .24); }
.visit-stat-icon { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 9px; margin-bottom: .45rem; font-size: .85rem; color: #fff; background: rgba(255, 255, 255, .14); }
.visit-stat dt { margin: 0; font-weight: 600; font-size: .72rem; letter-spacing: .02em; color: rgba(255, 255, 255, .72); display: flex; align-items: center; gap: .45rem; }
.visit-stat dd { margin: .2rem 0 0; font-family: var(--font-head); font-weight: 800; font-size: 1.4rem; line-height: 1.1; color: #fff; font-variant-numeric: tabular-nums; }
.visit-stat.is-total { background: rgba(58, 120, 196, .12); border-color: rgba(156, 192, 238, .45); }
.visit-stat.is-total .visit-stat-icon { background: var(--hc-gradient); box-shadow: 0 8px 18px -6px rgba(31, 86, 156, .8); }
.visit-stat.is-total dd { font-size: 1.7rem; color: var(--hc-accent-light); }
.visit-stat.is-live .visit-stat-icon { background: rgba(52, 211, 153, .2); color: #6ee7b7; }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: #34d399; box-shadow: 0 0 0 0 rgba(52, 211, 153, .6); animation: live-pulse 2s infinite; }
@keyframes live-pulse { 70% { box-shadow: 0 0 0 7px rgba(52, 211, 153, 0); } 100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0); } }
@media (max-width: 991.98px) { .visit-stats-grid { grid-template-columns: repeat(2, 1fr); } .visit-stat.is-total { grid-column: 1 / -1; } }
@media (max-width: 575.98px) { .visit-stats { padding: .9rem .8rem 1rem; } .visit-stats-grid { gap: .55rem; } .visit-stat { padding: .65rem .7rem; } .visit-stat dd { font-size: 1.2rem; } .visit-stat.is-total dd { font-size: 1.45rem; } }
@media (prefers-reduced-motion: reduce) { .live-dot { animation: none; } .visit-stat { transition: none; } }
.admin-link { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; font-size: 1rem; opacity: .75; transition: opacity .2s, background .2s; }
.admin-link:hover, .admin-link:focus-visible { opacity: 1; background: rgba(255, 255, 255, .1); }
.footer-bottom { margin-top: 3.5rem; padding: 1.3rem 0; border-top: 1px solid rgba(255, 255, 255, .08); font-size: .82rem; }

/* ---------- Volver arriba ---------- */
.back-to-top {
    position: fixed; right: 1.4rem; bottom: 1.4rem; z-index: 1020;
    width: 50px; height: 50px; border-radius: 50%; border: 0;
    background: var(--hc-gradient); color: #fff; font-size: 1.2rem;
    box-shadow: 0 10px 25px rgba(31, 86, 156, .35);
    opacity: 0; visibility: hidden; transform: translateY(20px);
    transition: all .35s var(--hc-ease);
}
.back-to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { transform: translateY(-4px); }

/* ---------- Páginas internas ---------- */
.page-hero { position: relative; padding: 4.5rem 0 4rem; color: #fff; overflow: hidden; background: var(--hc-gradient-dark); }
.page-hero-bg {
    position: absolute; inset: 0;
    background:
        radial-gradient(circle at 85% 30%, rgba(31, 86, 156, .4), transparent 45%),
        radial-gradient(circle at 10% 110%, rgba(245, 174, 9, .25), transparent 40%);
}
.page-hero-bg::after {
    content: ""; position: absolute; right: -60px; top: -60px; width: 380px; height: 380px;
    background: url("../img/brand/logo.png") center / contain no-repeat;
    filter: brightness(0) invert(1); opacity: .05;
}
.page-hero h1 { color: #fff; font-size: clamp(1.9rem, 3.6vw, 3rem); font-weight: 800; margin: .4rem 0 0; max-width: 900px; }
.page-hero .lead { color: rgba(255, 255, 255, .82); max-width: 760px; margin-top: .8rem; }
.page-hero .breadcrumb { margin: 0; font-size: .85rem; }
.page-hero .breadcrumb a { color: rgba(255, 255, 255, .75); }
.page-hero .breadcrumb a:hover { color: var(--hc-teal); }
.page-hero .breadcrumb-item.active { color: #fff; }
.page-hero .breadcrumb-item + .breadcrumb-item::before { color: rgba(255, 255, 255, .5); }

.page-body { padding: 4rem 0 5rem; background: var(--hc-bg); }
.content-card { background: #fff; border-radius: var(--hc-radius); padding: clamp(1.5rem, 4vw, 3rem); box-shadow: var(--hc-shadow-sm); border: 1px solid var(--hc-line); }

.sidebar-card { background: #fff; border-radius: var(--hc-radius); padding: 1.5rem; border: 1px solid var(--hc-line); box-shadow: var(--hc-shadow-sm); position: sticky; top: calc(var(--header-h) + 20px); }
.sidebar-card h3 { font-size: 1.05rem; margin-bottom: 1rem; }
.sidebar-links { list-style: none; padding: 0; margin: 0; }
.sidebar-links a { display: flex; align-items: center; gap: .6rem; padding: .6rem .7rem; border-radius: 10px; color: var(--hc-ink); font-size: .92rem; transition: background .2s, padding-left .2s var(--hc-ease); }
.sidebar-links a:hover, .sidebar-links a.active { background: var(--hc-bg); color: var(--hc-blue); padding-left: 1rem; }
.sidebar-links i { color: var(--hc-teal); }

/* Contenido enriquecido */
.prose { font-size: 1.04rem; color: #2a3a52; }
.prose h2 { font-size: 1.5rem; margin: 2rem 0 .8rem; padding-left: .9rem; border-left: 4px solid var(--hc-teal); }
.prose h3 { font-size: 1.2rem; margin: 1.6rem 0 .6rem; }
.prose p { margin-bottom: 1.1rem; }
.prose ul, .prose ol { padding-left: 1.3rem; margin-bottom: 1.2rem; }
.prose li { margin-bottom: .45rem; }
.prose ul li::marker { color: var(--hc-teal); }
.prose img { border-radius: 12px; margin: .5rem 0; box-shadow: var(--hc-shadow-sm); }
.prose blockquote { border-left: 4px solid var(--hc-gold); background: var(--hc-bg); padding: 1rem 1.3rem; border-radius: 0 12px 12px 0; font-style: italic; }
.prose a { text-decoration: underline; text-underline-offset: 3px; }
.prose iframe, .prose .ql-video { width: 100%; aspect-ratio: 16 / 9; height: auto; border: 0; border-radius: 12px; }
.prose > :first-child { margin-top: 0; }
.ql-align-center { text-align: center; }
.ql-align-right { text-align: right; }
.ql-align-justify { text-align: justify; }
.ql-indent-1 { padding-left: 3em; }
.ql-indent-2 { padding-left: 6em; }
.ql-size-small { font-size: .85em; }
.ql-size-large { font-size: 1.4em; }
.ql-size-huge { font-size: 2em; }

/* Documentos */
.doc-list { display: grid; gap: .8rem; }
.doc-item { display: flex; align-items: center; gap: 1rem; padding: 1rem 1.2rem; border-radius: var(--hc-radius-sm); background: #fff; border: 1px solid var(--hc-line); color: var(--hc-ink); transition: transform .25s var(--hc-ease), box-shadow .25s, border-color .25s; }
.doc-item:hover { transform: translateX(5px); box-shadow: var(--hc-shadow); border-color: transparent; color: var(--hc-ink); }
.doc-icon { width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; font-size: 1.4rem; background: rgba(220, 53, 69, .1); color: #dc3545; flex-shrink: 0; }
.doc-item strong { display: block; color: var(--hc-navy); font-family: var(--font-head); font-size: .97rem; }
.doc-item small { color: var(--hc-muted); }
.doc-dl { margin-left: auto; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: var(--hc-bg); color: var(--hc-blue); transition: background .25s, color .25s; flex-shrink: 0; }
.doc-item:hover .doc-dl { background: var(--hc-gradient); color: #fff; }

.chip-filter { display: inline-flex; padding: .45rem 1rem; border-radius: 999px; border: 1px solid var(--hc-line); background: #fff; color: var(--hc-ink); font-size: .87rem; font-weight: 500; transition: all .2s; }
.chip-filter:hover, .chip-filter.active { background: var(--hc-navy); color: #fff; border-color: var(--hc-navy); }

/* Formularios públicos */
.form-control, .form-select { border-radius: 12px; border: 2px solid var(--hc-line); padding: .7rem 1rem; transition: border-color .2s, box-shadow .2s; }
.form-control:focus, .form-select:focus { border-color: var(--hc-teal); box-shadow: 0 0 0 4px rgba(31, 86, 156, .15); }
.form-label { font-weight: 600; font-size: .9rem; color: var(--hc-navy); }
.hp-field { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }

.contact-info-card { display: flex; gap: 1rem; padding: 1.3rem; background: #fff; border-radius: var(--hc-radius-sm); border: 1px solid var(--hc-line); transition: transform .3s var(--hc-ease), box-shadow .3s; }
.contact-info-card:hover { transform: translateY(-4px); box-shadow: var(--hc-shadow); }
.contact-info-card .quick-icon { background: var(--hc-gradient); color: #fff; }
.contact-info-card strong { display: block; font-family: var(--font-head); color: var(--hc-navy); }
.map-frame { width: 100%; height: 360px; border: 0; border-radius: var(--hc-radius); box-shadow: var(--hc-shadow-sm); }

.pagination .page-link { border-radius: 10px !important; margin: 0 .2rem; border: 1px solid var(--hc-line); color: var(--hc-navy); font-weight: 600; }
.pagination .active .page-link { background: var(--hc-gradient); border-color: transparent; }

.error-page { min-height: 60vh; display: grid; place-items: center; text-align: center; padding: 4rem 0; }
.error-code { font-family: var(--font-head); font-size: clamp(5rem, 15vw, 9rem); font-weight: 900; line-height: 1; }

/* ---------- Animaciones ---------- */
@keyframes kenburns { from { transform: scale(1.08); } to { transform: scale(1); } }
@keyframes slideUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(calc(-50% - .75rem)); } }
@keyframes pulse-soft { 0%, 100% { box-shadow: 0 10px 24px rgba(31, 86, 156, .35), 0 0 0 0 rgba(31, 86, 156, .35); } 50% { box-shadow: 0 10px 24px rgba(31, 86, 156, .35), 0 0 0 12px rgba(31, 86, 156, 0); } }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* ---------- Responsive ---------- */
.nav-top-link, .btn-track { white-space: nowrap; }

@media (max-width: 1599.98px) {
    .brand-text { display: none; }
}
@media (max-width: 1399.98px) {
    .nav-top-link { padding: .6rem .55rem; font-size: .86rem; }
}
@media (max-width: 1199.98px) {
    .brand-text { display: flex; }
}
@media (max-width: 991.98px) {
    :root { --header-h: 72px; }
    .brand img { height: 50px; }
    .tracking-card { grid-template-columns: 1fr; padding: 1.5rem; }
    .quick-grid { grid-template-columns: repeat(2, 1fr); }
    .section { padding: 4rem 0; }
    .about-badge { right: 8px; }
    .news-featured { min-height: 380px; }
    .cta-box { padding: 2rem; }
}
@media (max-width: 575.98px) {
    .brand-text { display: none; }
    .tracking-section { margin-top: -20px; background: linear-gradient(to bottom, transparent 20px, var(--hc-bg) 20px); }
    .tracking-form { flex-direction: column; }
    .tracking-form .btn-track { width: 100%; }
    .quick-grid { grid-template-columns: 1fr; }
    .news-thumb { width: 92px; height: 76px; }
    .hero-nav { display: none !important; }
}

/* ---------- Acentos sobre fondos oscuros (variante clara de #1f569c para buena legibilidad) ---------- */
.topbar-info i, .topbar a:hover, .stat i, .eyebrow-light,
.footer-contact i, .site-footer a:hover, .page-hero .breadcrumb a:hover { color: var(--hc-accent-light); }
.site-footer h3::after { background: var(--hc-accent-light); }
.footer-social a:hover { background: #1f569c; }
.stamps-pagination .swiper-pagination-bullet-active { background: #ffffff; }
.hero-nav:hover { background: #1f569c; }
.site-footer::before { background: linear-gradient(90deg, #1f569c, var(--hc-gold), #3a78c4); }

/* ---------- Barra de navegación con imagen de fondo ---------- */
.site-header {
    background-color: var(--hc-navy);
    background-image:
        linear-gradient(90deg, rgba(11, 42, 82, .82) 0%, rgba(11, 42, 82, .55) 45%, rgba(11, 42, 82, .35) 100%),
        url("../img/brand/header-bg.webp");
    background-size: cover;
    background-position: center 40%;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-bottom: 0;
}
.site-header.is-scrolled { box-shadow: 0 10px 30px rgba(11, 42, 82, .35); }

/* El escudo y el nombre van sobre una pastilla blanca para conservar su legibilidad */
.brand img { background: #fff; border-radius: 14px; padding: 4px 8px; }
.brand-text { border-left-color: rgba(255, 255, 255, .45); }
.brand-text strong, .brand:hover .brand-text strong { color: #fff; text-shadow: 0 1px 6px rgba(0, 0, 0, .35); }
.brand-text small { color: #ffd98a; text-shadow: 0 1px 6px rgba(0, 0, 0, .35); }

.nav-top-link { color: #fff; text-shadow: 0 1px 6px rgba(0, 0, 0, .45); }
.nav-top-link::after { background: #fff; }
.nav-top-link:hover, .nav-top-link.active { color: #fff; background: rgba(255, 255, 255, .16); }

.site-header .btn-icon { background: rgba(255, 255, 255, .18); border-color: rgba(255, 255, 255, .4); color: #fff; backdrop-filter: blur(6px); }
.site-header .btn-icon:hover { background: #fff; color: var(--hc-navy); }
.site-header .btn-track { box-shadow: 0 8px 22px rgba(0, 0, 0, .3); }

/* ---------- Barra de navegación más ancha y logo más grande ---------- */
:root { --header-h: 128px; }
.brand img { height: 102px; }
.site-header.is-scrolled > .container { min-height: 92px; }
.site-header.is-scrolled .brand img { height: 74px; }
@media (max-width: 991.98px) {
    :root { --header-h: 92px; }
    .brand img { height: 70px; }
    .site-header.is-scrolled > .container { min-height: 70px; }
    .site-header.is-scrolled .brand img { height: 52px; }
}

/* ---------- Animación suave de las plumas de la guacamaya ---------- */
.site-header {
    background-size: auto, 135% auto;
    background-position: 0 0, 0% 35%;
    background-repeat: no-repeat;
    animation: feathers-drift 32s ease-in-out infinite alternate;
}
@keyframes feathers-drift {
    0%   { background-position: 0 0, 0% 30%; }
    50%  { background-position: 0 0, 60% 55%; }
    100% { background-position: 0 0, 100% 40%; }
}
@media (prefers-reduced-motion: reduce) {
    .site-header { animation: none; background-position: 0 0, 50% 40%; }
}

/* =========================================================
   Pantalla de carga con la guacamaya (inspirada en sit.gob.hn)
   ========================================================= */
.preloader { display: none; }
.con-preloader body { overflow: hidden; }
.con-preloader .preloader {
    position: fixed; inset: 0; z-index: 5000;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    background: radial-gradient(circle at 50% 45%, #ffffff 0%, #f1f6fc 70%, #e6eff9 100%);
    transition: opacity .95s cubic-bezier(.4, 0, .2, 1), visibility .95s;
}
.preloader.is-hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.sin-preloader .preloader { display: none !important; }

.preloader-stage { position: relative; width: 190px; height: 190px; }

/* Anillo giratorio con los colores de la guacamaya y resplandor difuminado */
.preloader-ring {
    --ring: conic-gradient(from 0deg, #CF1D1F, #F5AE09, #1F569C, #1f569c, #CF1D1F);
    position: absolute; inset: 0;
    border-radius: 50%;
    background: var(--ring);
    animation: preloader-spin 1.4s linear infinite;
}
.preloader-ring span { position: absolute; inset: 0; border-radius: 50%; background: var(--ring); }
.preloader-ring span:nth-child(1) { filter: blur(5px); }
.preloader-ring span:nth-child(2) { filter: blur(10px); }
.preloader-ring span:nth-child(3) { filter: blur(25px); }
.preloader-ring span:nth-child(4) { filter: blur(50px); opacity: .7; }
.preloader-ring::after {
    content: ""; position: absolute; inset: 9px; border-radius: 50%;
    background: #fff; box-shadow: inset 0 0 18px rgba(31, 86, 156, .12);
}

/* La guacamaya "vuela": aparece, flota y aletea suavemente */
.preloader-logo {
    position: absolute; z-index: 1; top: 50%; left: 50%;
    width: 118px; height: auto; margin: -59px 0 0 -59px;
    animation: preloader-in .7s cubic-bezier(.22, .61, .36, 1) both, preloader-fly 1.6s ease-in-out .7s infinite;
    transform-origin: 40% 60%;
    filter: drop-shadow(0 10px 14px rgba(11, 42, 82, .18));
}
.preloader-text {
    position: relative; z-index: 1; margin-top: 34px; text-align: center; line-height: 1.2;
    /* "backwards" y no "both": al terminar la entrada el texto queda en su estilo normal y así puede
       desvanecerse con transición cuando la pantalla de carga se va. */
    animation: preloader-in .8s cubic-bezier(.22, .61, .36, 1) .25s backwards;
}
.preloader-text strong { display: block; font-family: var(--font-head); font-weight: 800; letter-spacing: .18em; color: var(--hc-navy); font-size: 1.15rem; }
.preloader-text small { font-weight: 600; letter-spacing: .12em; text-transform: uppercase; font-size: .72rem; color: #1f569c; }

@keyframes preloader-spin { to { transform: rotate(360deg); } }
@keyframes preloader-in { from { opacity: 0; transform: translateY(14px) scale(.85); } to { opacity: 1; transform: none; } }
@keyframes preloader-fly {
    0%, 100% { transform: translateY(0) rotate(0deg) scale(1); }
    25%      { transform: translateY(-6px) rotate(-4deg) scale(1.04); }
    50%      { transform: translateY(-2px) rotate(0deg) scale(1); }
    75%      { transform: translateY(-7px) rotate(3deg) scale(1.03); }
}

@media (prefers-reduced-motion: reduce) {
    .preloader-ring, .preloader-logo, .preloader-text { animation: none !important; }
}

/* =========================================================
   Entrada del sitio después de la pantalla de carga
   1) La guacamaya se acerca a la pantalla y se disuelve; el texto se va (.is-leaving).
   2) 550 ms después el velo se disuelve y el sitio entra por capas (html.hc-entrada):
      el contenido aparece, el encabezado baja a su lugar, el banner se asienta con un zoom
      que se frena despacio y su texto sube; las tarjetas entran después con AOS (site.js).
   ========================================================= */
/* La guacamaya "se acerca" a la pantalla y se disuelve: crece acelerando mientras se desenfoca y se
   desvanece; el anillo de color se apaga antes, y el texto baja y se va. */
.preloader-stage { transition: transform 1.1s cubic-bezier(.7, 0, .3, 1), opacity .75s cubic-bezier(.4, 0, 1, 1) .3s, filter .75s ease-in .25s; }
.preloader-ring { transition: opacity .35s ease; }
.preloader-text { transition: opacity .35s ease, transform .5s cubic-bezier(.4, 0, .2, 1), filter .35s ease; }
.preloader.is-leaving .preloader-stage { transform: scale(5); opacity: 0; filter: blur(12px); }
.preloader.is-leaving .preloader-ring { opacity: 0; }
.preloader.is-leaving .preloader-text { opacity: 0; transform: translateY(10px); filter: blur(4px); }

.hc-entrada #main { animation: hc-fade-in 1s var(--hc-ease) both; }
.hc-entrada .topbar, .hc-entrada .site-header-wrap { animation: hc-drop-in .9s var(--hc-ease) .15s both; }
.hero-swiper .swiper-slide-active.hc-enter .hero-img { animation: hc-settle 9s cubic-bezier(.16, 1, .3, 1) both; }
.hero-swiper .swiper-slide-active.hc-enter .hero-caption-box > * { animation: hc-caption-in .9s var(--hc-ease) .45s both; }
.hero-swiper .swiper-slide-active.hc-enter .hero-caption-box > *:nth-child(2) { animation-delay: .57s; }
.hero-swiper .swiper-slide-active.hc-enter .hero-caption-box > *:nth-child(3) { animation-delay: .69s; }

@keyframes hc-fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes hc-drop-in { from { opacity: 0; transform: translate3d(0, -16px, 0); } to { opacity: 1; transform: none; } }
@keyframes hc-settle { from { transform: scale(1.1); } to { transform: scale(1); } }
@keyframes hc-caption-in { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
    .preloader.is-leaving .preloader-stage, .preloader.is-leaving .preloader-text { transform: none; filter: none; }
    .preloader-stage { transition: opacity .5s ease; }
    .hc-entrada .topbar, .hc-entrada .site-header-wrap,
    .hero-swiper .swiper-slide-active.hc-enter .hero-img,
    .hero-swiper .swiper-slide-active.hc-enter .hero-caption-box > * { animation: none !important; }
}

/* ---------- Marca: escudo + logo "Correos de Honduras" sobre tarjeta blanca ---------- */
.brand {
    gap: .8rem; padding: .45rem 1rem; border-radius: 18px;
    background: rgba(255, 255, 255, .96);
    box-shadow: 0 8px 24px rgba(0, 0, 0, .22);
    transition: transform .3s var(--hc-ease), box-shadow .3s var(--hc-ease);
}
.brand:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(0, 0, 0, .28); }
.brand .brand-crest, .brand .brand-correos { background: none; border-radius: 0; padding: 0; width: auto; transition: height .3s var(--hc-ease); }
.brand .brand-crest { height: 86px; }
.brand .brand-correos { height: 72px; }
.brand-divider { width: 1px; align-self: stretch; margin: .4rem 0; background: linear-gradient(to bottom, transparent, #c9cfe0, transparent); }
.site-header.is-scrolled .brand .brand-crest { height: 64px; }
.site-header.is-scrolled .brand .brand-correos { height: 54px; }

@media (max-width: 1399.98px) {
    .brand { padding: .4rem .8rem; gap: .6rem; }
    .brand .brand-crest { height: 70px; }
    .brand .brand-correos { height: 56px; }
    .site-header.is-scrolled .brand .brand-crest { height: 56px; }
    .site-header.is-scrolled .brand .brand-correos { height: 46px; }
}
@media (max-width: 575.98px) {
    .brand { padding: .3rem .6rem; gap: .45rem; border-radius: 14px; }
    .brand .brand-crest { height: 52px; }
    .brand .brand-correos { height: 42px; }
    .site-header.is-scrolled .brand .brand-crest { height: 44px; }
    .site-header.is-scrolled .brand .brand-correos { height: 36px; }
}

/* Texto de la pantalla de carga */
.preloader-text strong { font-size: clamp(.8rem, 2.4vw, 1.1rem); letter-spacing: .16em; max-width: 92vw; }

/* Con el logo ampliado, en pantallas medianas el botón de rastreo muestra solo el ícono */
@media (max-width: 1599.98px) {
    .btn-track-header { width: 48px; height: 48px; padding: 0; border-radius: 50%; }
    .btn-track-header .btn-track-label { display: none; }
    .btn-track-header i { font-size: 1.15rem; }
    .nav-list { gap: 0; }
}
@media (max-width: 1399.98px) {
    .nav-top-link { padding: .55rem .5rem; font-size: .84rem; }
}
/* En pantallas grandes el encabezado usa más ancho para que todo quepa con el botón completo */
@media (min-width: 1600px) {
    .site-header > .container { max-width: 1560px; }
}
.preloader-text strong { line-height: 1.45; }

/* Tarjeta de la marca más suave: blanco translúcido con desenfoque (efecto vidrio) en lugar de blanco sólido */
.brand {
    background: rgba(255, 255, 255, .62);
    backdrop-filter: blur(10px) saturate(140%);
    -webkit-backdrop-filter: blur(10px) saturate(140%);
    border: 1px solid rgba(255, 255, 255, .45);
    box-shadow: 0 6px 20px rgba(0, 0, 0, .18);
}
.brand:hover { background: rgba(255, 255, 255, .72); }
.brand-divider { background: linear-gradient(to bottom, transparent, rgba(11, 42, 82, .25), transparent); }

/* Los 5 valores en la portada: dos columnas en pantallas medianas y grandes */
@media (min-width: 768px) {
    .pillars { grid-template-columns: 1fr 1fr; }
    .pillars .pillar:last-child { grid-column: 1 / -1; }
}

/* La guara de la pantalla de carga queda fija (solo aparece suavemente, sin flotar ni aletear) */
.preloader-logo { animation: preloader-in .7s cubic-bezier(.22, .61, .36, 1) both; }

/* Barra de navegación un poco más alta */
:root { --header-h: 146px; }
.brand .brand-crest { height: 96px; }
.brand .brand-correos { height: 80px; }
@media (max-width: 1399.98px) {
    .brand .brand-crest { height: 78px; }
    .brand .brand-correos { height: 64px; }
}
@media (max-width: 991.98px) {
    :root { --header-h: 100px; }
    .brand .brand-crest { height: 64px; }
    .brand .brand-correos { height: 52px; }
}
@media (max-width: 575.98px) {
    :root { --header-h: 84px; }
    .brand .brand-crest { height: 52px; }
    .brand .brand-correos { height: 42px; }
}
@media (min-width: 1200px) and (max-width: 1399.98px) {
    .brand { padding: .35rem .7rem; gap: .5rem; }
    .brand .brand-crest { height: 64px; }
    .brand .brand-correos { height: 50px; }
}

/* ---------- Encabezado sin saltos al hacer scroll ----------
   El contenedor pegajoso (sticky) tiene un alto FIJO. La barra puede compactarse por dentro
   sin cambiar el alto del documento, así el contenido ya no sube y baja ni se produce el temblor. */
.site-header-wrap { position: sticky; top: 0; z-index: 1030; height: var(--header-h); pointer-events: none; }
.site-header { position: relative; top: auto; pointer-events: auto; }
html { overflow-anchor: none; }

/* ===== Laravel: clases que reemplazan estilos en línea ===== */
.search-container { max-width: 900px; }
.doc-icon.search-icon { background: rgba(20, 184, 166, .12); color: var(--hc-teal-2); }
.search-type { color: var(--hc-teal-2); }

/* =========================================================
   Refinamientos visuales: entradas, estados y detalles
   ========================================================= */

/* --- Entradas al hacer scroll: más sutiles que las de AOS por defecto (100 px) --- */
[data-aos="fade-up"]    { transform: translate3d(0, 18px, 0); }
[data-aos="fade-right"] { transform: translate3d(-22px, 0, 0); }
[data-aos="fade-left"]  { transform: translate3d(22px, 0, 0); }
[data-aos="zoom-in"]    { transform: scale(.97); }

/* AOS deja todo con opacity 0 hasta que arranca. Para que el contenido nunca quede oculto:
   - sin JavaScript, o si la librería no cargó (html.no-aos): se muestra de inmediato;
   - si el script tarda o falla a medias: se muestra solo a los 3,5 s (site.js marca html.aos-ready al arrancar). */
html:not(.js) [data-aos], html.no-aos [data-aos] { opacity: 1 !important; transform: none !important; transition: none !important; pointer-events: auto !important; }
/* (Mientras se ve la pantalla de carga el plazo no corre: AOS arranca cuando el sitio se revela.) */
html.js:not(.aos-ready):not(.no-aos):not(.con-preloader) [data-aos] { animation: hc-reveal 0s 3.5s forwards; }
@keyframes hc-reveal { to { opacity: 1; transform: none; pointer-events: auto; } }

/* --- Imágenes: aparecen con un fundido corto cuando terminan de cargar (solo si hay JavaScript) --- */
.js .news-card-img img, .js .news-thumb img, .js .news-featured img { opacity: 0; transition: opacity .45s var(--hc-ease), transform .8s var(--hc-ease); }
.js .news-card-img img.is-loaded, .js .news-thumb img.is-loaded, .js .news-featured img.is-loaded { opacity: 1; }

/* --- Lectura --- */
h1, h2, h3, .page-hero .lead { text-wrap: balance; }
p, li { text-wrap: pretty; }

/* --- Foco visible también sobre fondos oscuros --- */
.stats-section :focus-visible, .philately-section :focus-visible, .cta-box :focus-visible,
.site-footer :focus-visible, .topbar :focus-visible, .hero :focus-visible, .site-header :focus-visible { outline-color: #fff; }
:focus-visible { outline-color: var(--hc-blue); }

/* --- Anclas: la tarjeta de rastreo solapa el banner, así que se deja más margen arriba --- */
#rastreo { scroll-margin-top: calc(var(--header-h) + 72px); }

/* --- Tablas de datos y números --- */
.stat-number, .date-badge strong, .service-num { font-variant-numeric: tabular-nums; }

/* --- Movimiento reducido: sin elevaciones ni desplazamientos, solo cambios de color y sombra --- */
@media (prefers-reduced-motion: reduce) {
    .quick-tile:hover, .service-card:hover, .news-card:hover, .news-item:hover, .news-featured:hover,
    .marquee-item:hover, .stamp-grid-card:hover, .pillar:hover { transform: none; }
}
/* ---------- Vista previa del panel (no publicado) ---------- */
.preview-bar { position: sticky; top: 0; z-index: 2000; display: flex; align-items: center; justify-content: center; gap: .6rem; padding: .6rem 1rem;
    background: #F5AE09; color: #1f1400; font-size: .88rem; text-align: center; box-shadow: 0 4px 14px rgba(0, 0, 0, .18); }
.preview-bar i { font-size: 1.1rem; }
.is-preview .preloader { display: none !important; }
