/* ============================================================
 *  VECTOR ZERO — Estilos propios (complemento de Tailwind)
 *  Tema CLARO (gris neutro) + acento verde bosque
 * ========================================================== */

/* ============================================================
 *  HERO · Centro de mando "three-zone + bleed" (full-bleed)
 * ========================================================== */
.map-frame {
    line-height: 0;            /* elimina el hueco inferior del inline-SVG */
}
.map-frame > svg {
    display: block;
    width: 100%;
    height: auto;              /* mantiene la proporción 2:1 del viewBox */
}

/* Esquinas tipo retícula en la zona del mapa (acento "operaciones") */
.hud-zone--map::before,
.hud-zone--map::after {
    content: "";
    position: absolute;
    width: 14px;
    height: 14px;
    border: 1px solid #3c6147;
    opacity: 0.55;
    pointer-events: none;
}
.hud-zone--map::before {
    top: 18px;
    left: -2px;
    border-right: none;
    border-bottom: none;
}
.hud-zone--map::after {
    bottom: 18px;
    right: -2px;
    border-left: none;
    border-top: none;
}

/* Punto pulsante reutilizable (kicker + zona mapa + HUD) */
.map-pulse-dot {
    box-shadow: 0 0 0 0 rgba(60, 97, 71, 0.55);
    animation: hud-pulse 2.6s ease-out infinite;
}
@keyframes hud-pulse {
    0%   { box-shadow: 0 0 0 0   rgba(60, 97, 71, 0.55); }
    70%  { box-shadow: 0 0 0 7px rgba(60, 97, 71, 0); }
    100% { box-shadow: 0 0 0 0   rgba(60, 97, 71, 0); }
}
@media (prefers-reduced-motion: reduce) {
    .map-pulse-dot { animation: none; }
}

/* ---- Encabezados de sección reutilizables ---- */
.section-kicker {
    font-family: "Space Mono", monospace;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.3em;
    color: #3c6147;            /* verde bosque frío */
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.section-title {
    font-family: "Oswald", sans-serif;
    font-weight: 700;
    color: #262626;            /* texto gris oscuro neutro */
    font-size: clamp(2rem, 5vw, 3.25rem);
    line-height: 1.05;
    letter-spacing: -0.01em;
    margin-top: 0.75rem;
}

/* ---- Rejilla tipo HUD del hero (líneas oliva sutiles) ---- */
.hero-grid {
    background-image:
        linear-gradient(to right,  rgba(120, 120, 120, 0.55) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(120, 120, 120, 0.55) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: radial-gradient(ellipse at 30% 0%, #000 0%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse at 30% 0%, #000 0%, transparent 70%);
}

/* ---- Portada / foto generada automáticamente (tonos lino) ---- */
.cover-fallback {
    background:
        radial-gradient(120% 120% at 20% 0%, rgba(90,90,90,0.12), transparent 55%),
        repeating-linear-gradient(135deg, #d7d7d7 0px, #d7d7d7 22px, #cbcbcb 22px, #cbcbcb 44px);
    border: 1px solid #c3c3c3;
}

/* ---- Mapa de operaciones del hero ---- */
.map-link {
    stroke-dasharray: 5 7;
    animation: map-dash 3s linear infinite;
}
@keyframes map-dash { to { stroke-dashoffset: -24; } }

.map-pulse-ring {
    transform-box: fill-box;
    transform-origin: center;
    animation: map-pulse 2.6s ease-out infinite;
}
@keyframes map-pulse {
    0%   { transform: scale(1); opacity: 0.55; }
    100% { transform: scale(4); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
    .map-link, .map-pulse-ring { animation: none; }
}

/* ---- Animación de aparición ---- */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal-in {
    opacity: 1;
    transform: none;
}
@media (prefers-reduced-motion: reduce) {
    .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---- Compensar la barra fija al saltar a un ancla ---- */
:target {
    scroll-margin-top: 5rem;
}
section[id] {
    scroll-margin-top: 4rem;
}
