/* =====================================================
   VARIABLES Y RESET
===================================================== */
:root {
    --azul-oscuro: #0a1a2b;
    --azul-fondo:  #131b23;
    --celeste:     #5fa8d3;
    --blanco:      #ffffff;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Inter', sans-serif;
    background: var(--blanco);
    overflow-x: hidden;
}

html { scroll-behavior: smooth;
    scroll-behavior: smooth;
}

body.cursor-none,
body.cursor-none * { cursor: none !important; }


/* =====================================================
   PERFILES GRID — Equipos de Protección
===================================================== */
.perfiles-section-custom {
    background: #f8fafc;
    padding-bottom: 0;
}

.perfiles-grid-custom {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
    padding: 0 5%;
    max-width: 960px;
    margin: 0 auto 60px;
}

.perfil-card-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 160px;
    padding: 28px 16px 22px;
    border-radius: 16px;
    background: white;
    border: 1.5px solid rgba(0,0,0,0.08);
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    cursor: pointer;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    text-align: center;
}

.perfil-card-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 28px rgba(0,0,0,0.12);
}

.pci-policias  { border-top: 3px solid #1e40af; }
.pci-ambulancia { border-top: 3px solid #16a34a; }
.pci-bomberos  { border-top: 3px solid #dc2626; }
.pci-forenses  { border-top: 3px solid #8b5cf6; }
.pci-drogas    { border-top: 3px solid #ea580c; }

.perfil-icon-box {
    width: 60px;
    height: 60px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
    font-size: 1.9rem;
    color: #fff;
}

.perfil-card-item h3 {
    margin: 0;
    font-size: 0.88rem;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: 0.04em;
}

@media (max-width: 600px) {
    .perfiles-grid-custom { gap: 10px; }
    .perfil-card-item { width: 130px; padding: 20px 10px 16px; }
    .perfil-icon-box { width: 48px; height: 48px; font-size: 1.5rem; }
    .perfil-card-item h3 { font-size: 0.75rem; }
}

/* =====================================================
   ANIMACIONES DE ENTRADA — IntersectionObserver
   Sin GSAP, sin ScrollTrigger, solo CSS transitions
===================================================== */
.anim-ready {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.55s ease, transform 0.55s ease;
}
.anim-ready.anim-in {
    opacity: 1;
    transform: translateY(0);
}

/* Cursor: compositing hint, no repaints */
#cursor-wrap {
    will-change: transform;
    pointer-events: none;
}



/* =====================================================
   PRELOADER
===================================================== */
#sysne-preloader {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: #060e1a;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* Cuadrícula táctica */
.pre-grid {
    position: absolute;
    inset: 0;
    opacity: 0.04;
    background-image:
        linear-gradient(rgba(95,168,211,1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(95,168,211,1) 1px, transparent 1px);
    background-size: 50px 50px;
}

/* Línea de escaneo */
.pre-scan-line {
    position: absolute;
    left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(95,168,211,0.9) 40%, rgba(180,230,255,1) 50%, rgba(95,168,211,0.9) 60%, transparent);
    box-shadow: 0 0 20px rgba(95,168,211,0.7), 0 0 60px rgba(95,168,211,0.3);
    top: -2px;
    animation: scanDown 0.9s linear forwards;
}

@keyframes scanDown {
    to { top: 102%; }
}

/* Centro */
.pre-center {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 2;
}

/* Esquinas */
.pre-corner {
    position: absolute;
    width: 22px;
    height: 22px;
    border-color: rgba(95,168,211,0.5);
    border-style: solid;
    opacity: 0;
    animation: fadeCorner 0.4s ease forwards 0.8s;
}
.pre-corner.tl { top: -50px; left: -80px; border-width: 2px 0 0 2px; }
.pre-corner.tr { top: -50px; right: -80px; border-width: 2px 2px 0 0; }
.pre-corner.bl { bottom: -30px; left: -80px; border-width: 0 0 2px 2px; }
.pre-corner.br { bottom: -30px; right: -80px; border-width: 0 2px 2px 0; }

@keyframes fadeCorner { to { opacity: 1; } }

/* Logo */
.pre-logo-wrap {
    position: relative;
    margin-bottom: 16px;
    clip-path: inset(100% 0 0 0);
    animation: revealLogo 0.7s cubic-bezier(0.76,0,0.24,1) forwards 0.85s;
}

@keyframes revealLogo {
    to { clip-path: inset(0% 0 0 0); }
}

.pre-logo {
    height: 64px;
    width: auto;
    display: block;
}

.pre-logo-text {
    font-size: 32px;
    font-weight: 800;
    color: white;
    letter-spacing: 0.3em;
}

.pre-logo-line {
    position: absolute;
    bottom: -8px;
    left: 0; right: 0;
    height: 2px;
    background: var(--celeste);
    transform: scaleX(0);
    transform-origin: left;
    animation: growLine 0.5s ease forwards 1.3s;
}

@keyframes growLine { to { transform: scaleX(1); } }

/* Status text */
.pre-status {
    font-family: monospace;
    font-size: 10px;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: rgba(95,168,211,0.7);
    margin-top: 20px;
    margin-bottom: 24px;
    opacity: 0;
    animation: fadeIn 0.4s ease forwards 1.4s;
}

.pre-dots::after {
    content: '';
    animation: dots 1.2s steps(4, end) infinite 1.5s;
}

@keyframes dots {
    0%   { content: ''; }
    25%  { content: '.'; }
    50%  { content: '..'; }
    75%  { content: '...'; }
}

/* Dot row */
.pre-dot-row {
    display: flex;
    gap: 7px;
    align-items: flex-end;
    height: 28px;
    opacity: 0;
    animation: fadeIn 0.3s ease forwards 1.8s;
}

.pre-dot-row span {
    display: block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--celeste);
    box-shadow: 0 0 8px rgba(95,168,211,0.7);
}

.pre-dot-row span:nth-child(1) { animation: bounceDot 0.55s ease-in-out infinite 1.9s; }
.pre-dot-row span:nth-child(2) { animation: bounceDot 0.55s ease-in-out infinite 2.01s; }
.pre-dot-row span:nth-child(3) { animation: bounceDot 0.55s ease-in-out infinite 2.12s; }
.pre-dot-row span:nth-child(4) { animation: bounceDot 0.55s ease-in-out infinite 2.23s; }

@keyframes bounceDot {
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(-14px); }
}

/* Progress bar */
.pre-bar-track {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 2px;
    background: rgba(255,255,255,0.06);
}

.pre-bar-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #0a1a2b, #5fa8d3, #9dd4f0);
    animation: fillBar 3s ease-in-out forwards;
}

@keyframes fillBar { to { width: 100%; } }

/* Version label */
.pre-version {
    position: absolute;
    bottom: 14px;
    right: 20px;
    font-family: monospace;
    font-size: 9px;
    letter-spacing: 0.3em;
    color: rgba(255,255,255,0.12);
}

/* Preloader oculto */
#sysne-preloader.hidden {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.6s ease;
    /* display:none se aplica via JS después de la transición */
}

/* Fallback: si JS falla, ocultar preloader después de 8s via animation */
@keyframes autoHidePreloader {
    0%,87%   { opacity: 1; visibility: visible; }
    88%      { opacity: 0; }
    100%     { opacity: 0; visibility: hidden; pointer-events: none; }
}
#sysne-preloader {
    animation: autoHidePreloader 8s ease forwards;
}

/* =====================================================
   CURSOR PERSONALIZADO
===================================================== */
#cursor-wrap {
    position: fixed;
    top: 0; left: 0;
    z-index: 99998;
    pointer-events: none;
    will-change: transform;
    color: rgba(255,255,255,0.92);
    contain: layout style;
}

#custom-cursor {
    display: block;
    transition: color 0.2s ease, filter 0.2s ease;
    filter: drop-shadow(0 0 4px rgba(255,255,255,0.25));
}

#custom-cursor.hover {
    color: rgba(95,168,211,1);
    filter: drop-shadow(0 0 8px rgba(95,168,211,0.6)) drop-shadow(0 0 20px rgba(95,168,211,0.3));
}

#custom-cursor.light {
    color: rgba(10,26,43,0.9);
    filter: drop-shadow(0 0 4px rgba(10,26,43,0.3));
}

#custom-cursor.light.hover {
    color: rgba(10,82,140,1);
    filter: drop-shadow(0 0 8px rgba(10,82,140,0.5));
}

#custom-cursor.shoot #cur-dot {
    r: 4;
}

#cursor-label {
    position: absolute;
    bottom: -22px;
    left: 50%;
    transform: translateX(-50%);
    font-family: monospace;
    font-size: 8px;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.2s;
    color: currentColor;
}

#cursor-label.show { opacity: 1; }

#cursor-zoom {
    position: absolute;
    top: -18px;
    left: 50%;
    transform: translateX(-50%);
    font-family: monospace;
    font-size: 7px;
    letter-spacing: 0.2em;
    color: currentColor;
    opacity: 0.4;
}

/* Efectos de disparo */
.shot-ripple {
    position: fixed;
    pointer-events: none;
    z-index: 99997;
}

.shot-ring {
    position: absolute;
    border-radius: 50%;
    border: 2px solid rgba(95,168,211,0.9);
    transform: translate(-50%, -50%);
    animation: shotRing 0.7s ease-out forwards;
}

.shot-ring.r2 { animation-delay: 0.08s; border-color: rgba(95,168,211,0.5); }
.shot-ring.r3 { animation-delay: 0.05s; border-color: rgba(95,168,211,0.25); border-width: 1px; }

.shot-flash {
    position: absolute;
    border-radius: 50%;
    width: 10px; height: 10px;
    background: rgba(95,168,211,1);
    transform: translate(-50%, -50%);
    box-shadow: 0 0 14px rgba(95,168,211,0.8);
    animation: shotFlash 0.35s ease-out forwards;
}

.shot-cross-h, .shot-cross-v {
    position: absolute;
    background: rgba(95,168,211,0.7);
    animation: shotFlash 0.4s ease-out forwards;
}

.shot-cross-h {
    width: 20px; height: 1px;
    transform: translate(-50%, -50%);
}

.shot-cross-v {
    width: 1px; height: 20px;
    transform: translate(-50%, -50%);
}

@keyframes shotRing {
    from { width: 8px; height: 8px; opacity: 1; }
    to   { width: 70px; height: 70px; opacity: 0; }
}

@keyframes shotFlash {
    from { opacity: 1; transform: translate(-50%, -50%) scale(1); }
    to   { opacity: 0; transform: translate(-50%, -50%) scale(2.5); }
}



/* =====================================================
   ANIMACIONES DE ENTRADA GLOBALES
===================================================== */
[data-anim="fade-up"] {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

[data-anim="fade-up"].visible {
    opacity: 1;
    transform: translateY(0);
}

[data-anim="card"] {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-anim="card"].visible {
    opacity: 1;
    transform: translateY(0);
}

[data-anim="stat"] {
    opacity: 0;
    transform: translateY(20px) scale(0.95);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

[data-anim="stat"].visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* =====================================================
   HERO PRINCIPAL CON VIDEO
===================================================== */
.hero-principal {
    height: 75vh;
    position: relative;
    display: flex;
    align-items: center;
    padding-left: 10%;
    color: white;
    overflow: hidden;
}

/* VIDEO HERO - AJUSTADO PARA PANTALLA COMPLETA */
.hero-video {
    position: absolute;
    top: 50%; /* Centrado vertical */
    left: 50%; /* Centrado horizontal */
    width: 100%;
    height: 100%;
    transform: translate(-50%, -50%); /* Centrado exacto */
    object-fit: cover; /* Esto asegura que el video llene el área sin deformarse */
    z-index: 0;
}

/* OVERLAY OSCURO */
.hero-principal::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to right,
        rgba(10,26,43,0.7) 0%,
        rgba(10,26,43,0.3) 40%,
        rgba(10,26,43,0) 70%
    );
    z-index: 1;
}

/* CONTENIDO */
.hero-content {
    position: relative;
    z-index: 2;
}

/* TEXTO */
/* TEXTO PRINCIPAL */
.hero-principal h1 {
    font-size: clamp(26px, 5vw, 60px);
    font-weight: 800;
    line-height: 1.15;
    text-shadow:
        0 2px 8px rgba(0,0,0,0.55),
        0 0 20px rgba(0, 0, 0, 0.775);
}

/* SUBTÍTULO */
.hero-principal .hero-sub {
    font-size: 15px;
    font-weight: 800;
    letter-spacing: 0.4em;
    color:#abdbf5;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.141);
}

/* ===============================
   AJUSTE VIDEO HERO EN MÓVIL
================================ */
@media (max-width: 768px) {
    .hero-principal {
        height: 80vh; /* Aumentado un poco para que luzca más el video en vertical */
        padding-left: 8%;
        padding-right: 8%;
        display: flex;
        align-items: center; /* Centra el contenido verticalmente */
        justify-content: center; /* Centra el contenido horizontalmente si lo deseas */
        text-align: center;
    }

    .hero-video {
        top: 50%;
        left: 50%;
        width: 100%;
        height: 100%;
        /* Eliminamos el scale(0.75) para que cubra todo el fondo */
        transform: translate(-50%, -50%) scale(1.1); /* Un pequeño margen de 1.1 asegura que no queden bordes blancos al rotar el móvil */
        object-fit: cover; /* 🔑 ESTO es lo más importante para llenar todo el espacio */
    }

    .hero-principal h1 {
        font-size: clamp(24px, 8vw, 42px);
        line-height: 1.1;
        width: 100%;
    }

    .hero-principal .hero-sub {
        font-size: 12px;
        letter-spacing: 0.2em;
        margin-bottom: 10px;
        display: block;
    }
}
/* =====================================================
   SECCIÓN STATS CON VIDEO
===================================================== */

/* Título stats siempre visible */
.stats-title-visible {
    font-size: clamp(28px, 4vw, 52px);
    font-weight: 800;
    color: white;
    text-align: left;
    margin-left: 0;
    margin-bottom: 40px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.stats-video-section {
    position: relative;
    width: 100%;
    padding: 60px 0 0;
    overflow: hidden;
    background: #050f1e;
    min-height: 60vh;
}

.stats-video-section .bg-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.stats-video-section .video-overlay {
    position: absolute;
    inset: 0;
    background: rgba(5, 15, 30, 0.6);
    z-index: 2;
}

.stats-video-section .stats-content {
    position: relative;
    z-index: 3;
    width: 100%;
    max-width: 1400px;
    padding: 20px 8%;
    color: white;
}

.stats-content {
    padding-top: 80px;
}

.stats-content h1 {
    color: var(--celeste);
    font-size: clamp(36px, 4vw, 56px);
    font-weight: 800;
    margin-top: 5px;
    margin-bottom: 45px;
    letter-spacing: 1px;
}

.stats-layout {
    display: grid;
    grid-template-columns: 1.3fr 2.7fr;
    align-items: center;
    gap: 40px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 28px;
    justify-items: start;
    margin-left: -40px;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 8px;
}

.stat-icon {
    width: 64px;
    height: 64px;
    margin-bottom: 6px;
}

.stat-item h2 {
    color: var(--celeste);
    font-size: 40px;
    font-weight: 800;
    line-height: 1;
    margin: 0;
    min-width: 170px;
    display: inline-block;
    font-variant-numeric: tabular-nums;
}

.mapa-container svg {
  width: 100%;
  height: auto;
  transform: scale(1.20);
  transform-origin: center;
}

.stats-footer {
    position: relative;
    z-index: 4;
    width: 100%;
    background: linear-gradient(90deg, #3e3e3e, #1a1a1a);
    padding: 40px 8%;
    margin-top: 60px;
    display: flex;
    align-items: center;
    gap: 120px;
}

.stats-footer h3 {
    color: #ffffff;
    font-size: 32px;
    font-weight: 800;
    max-width: 65%;
    line-height: 1.2;
}

.stats-btn {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    padding: 18px 36px;
    background: #0b4f79;
    color: #fff;
    text-decoration: none;
    border-radius: 16px;
    font-size: 20px;
    font-weight: 700;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.stats-btn:hover {
    background: #0d6ea8;
    transform: translateY(-2px);
}

.stats-btn .btn-icon {
    width: 22px;
    height: 22px;
    object-fit: contain;
}
/* ==========================================
   HERO ESTILO PREMIUM CORCHETES ANIMADOS
========================================== */

.modulo-hero-modern {
    position: relative;
    height: 60vh;              /* 👈 más alto */
    min-height: 450px;
    background-size: cover;    /* 👈 que cubra todo */
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

/* Overlay elegante */
.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        rgba(5, 15, 25, 0.75),
        rgba(5, 15, 25, 0.75)
    );
}

/* Contenido */
.hero-content-modern {
    position: relative;
    z-index: 2;
    color: #fff;
}

/* Subtitulo */
.hero-subtitle {
    font-size: 14px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #ccc;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

/* Cuadrito tipo cursor */
.dot {
    width: 8px;
    height: 14px;
    background: #63bbeeb8;
    animation: blinkCursor 1s steps(2, start) infinite;
}

/* Parpadeo tipo cursor real */
@keyframes blinkCursor {
    to {
        visibility: hidden;
    }
}

/* ===============================
   TÍTULO CON MARCO LATERAL GRANDE
================================= */

.hero-bracket-title {
    position: relative;
    display: inline-block;
    padding: 0 60px;
}

/* Texto normal (NO parpadea) */
.hero-bracket-title h1 {
    font-size: 48px;
    font-weight: 800;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Corchetes grandes laterales */
.hero-bracket-title::before,
.hero-bracket-title::after {
    content: "";
    position: absolute;
    top: 50%;
    width: 30px;
    height: 70px;
    border: 3px solid #5fa8d3;
    transform: translateY(-50%);
    animation: blinkBrackets 1.2s infinite;
}

/* Lado izquierdo */
.hero-bracket-title::before {
    left: 0;
    border-right: none;
}

/* Lado derecho */
.hero-bracket-title::after {
    right: 0;
    border-left: none;
}

/* Parpadeo SOLO en los marcos */
@keyframes blinkBrackets {
    0%,100% { opacity: 1; }
    50% { opacity: 0.3; }
}

/* Responsive */
@media (max-width: 768px) {
    .hero-bracket-title h1 {
        font-size: 28px;
    }

    .hero-bracket-title {
        padding: 0 35px;
    }

    .hero-bracket-title::before,
    .hero-bracket-title::after {
        height: 50px;
        width: 20px;
    }
}
/* =====================================================
   SCP BANNER MODERNIZADO (manteniendo validación)
===================================================== */

.scp-banner {
    padding: 90px 6%;
    position: relative;
}

/* Solo SCP tendrá fondo oscuro estilo CCTV (color: 061321)*/
.scp-banner.es-scp {
    background: linear-gradient(135deg, #1d5088, #0b1f35);
}

/* Los módulos pueden quedarse claros si quieres */
.scp-banner.es-modulo {
   background: linear-gradient(135deg, #1d5088, #0b1f35);
}

.scp-modern-container {
    max-width: 1400px;
    margin: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 80px;
}

/* =====================================================
   FORMATO IMAGEN PARA MÓDULOS (NO SCP)
===================================================== */

.scp-banner.es-modulo .scp-modern-container {
    align-items: center;
}

/* Contenedor imagen centrado */
.scp-banner.es-modulo .scp-modern-img {
    justify-content: center;
    align-items: center;
}

/* Imagen tamaño más controlado y centrada */
.scp-banner.es-modulo .scp-modern-img img {
    max-width: 520px;
    width: 100%;
    margin: 0 auto;
    display: block;
}
/* IMAGEN */
.scp-modern-img {
    flex: 1.2;
    display: flex;
    justify-content: flex-start;
    align-items: flex-end; /* 👈 la baja hacia el fondo */
}

.scp-modern-img img {
    max-width: 750px; /* 👈 más grande (antes 750px) */
    width: 110%;      /* 👈 ligeramente más amplia */
    height: auto;
    display: block;
    margin-bottom: -90px; /* 👈 la pega visualmente al borde inferior */
}
/* TEXTO */
.scp-modern-text {
    flex: 1;
}

/* Texto blanco solo cuando es SCP */
.scp-banner.es-scp .scp-modern-text {
    color: #ffffff;
}

.scp-banner.es-scp .scp-modern-text p {
    color: #cfd8e3;
}

/* Texto oscuro cuando es módulo */
.scp-banner.es-modulo .scp-modern-text {
    color: #ffffff;
}
.scp-banner.es-modulo .scp-modern-text p {
    color: #cfd8e3;
}

/* TÍTULO */
.scp-modern-text h2 {
    font-family: 'Orbitron', sans-serif;
    font-size: 32px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 18px;
}

/* PÁRRAFO */
.scp-modern-text p {
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    font-weight: 300;
    line-height: 1.8;
    letter-spacing: 0.5px;
    text-align: justify;
}
/* =====================================================
   VENTAJAS - DISEÑO ACTUALIZADO
===================================================== */
.ventajas-section {
    padding: 80px 8%;
    background: #f5f5f5;
    text-align: left;
}

.ventajas-section h2 {
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 60px;
    color: #0a1a2b;
    text-align: center;
}

.ventajas-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    max-width: 1300px;
    margin: auto;
}

.ventaja-card {
    background: #1d5088;
    padding: 35px;
    border-radius: 0;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

/* Efecto diagonal en la esquina inferior derecha */
.ventaja-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 0 0 40px 40px;
    border-color: transparent transparent #f5f5f5;
    transition: all 0.3s ease;
}

.ventaja-card:hover::after {
    border-width: 0 0 50px 50px;
}

.ventaja-card i {
    font-size: 45px;
    color: #4b99f9;
    margin-bottom: 20px;
    display: block;
}

.ventaja-img-icono {
    width: 50px;
    height: 50px;
    object-fit: contain;
    margin-bottom: 20px;
    display: block;
}

.ventaja-card h4 {
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #fefefe;
}

.ventaja-card p {
    font-size: 13px;
    color: #cfd8e3;
    line-height: 1.5;
    margin: 0;
}

.ventaja-card:hover {
    transform: none;
    box-shadow: none;
    background: #4073b3;
}

/* Responsive - pasar a 2 columnas en tablets */
@media (max-width: 1024px) {
    .ventajas-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
}

/* Responsive - pasar a 1 columna en mobile */
@media (max-width: 640px) {
    .ventajas-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .ventajas-section {
        padding: 60px 5%;
    }

    .ventajas-section h2 {
        font-size: 28px;
        margin-bottom: 40px;
    }
}

/* =====================================================
   FRANJA FINAL
===================================================== */
.franja-final {
    position: relative;
    min-height: 280px;
    padding: 30px 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
    background-image: url("img/Back Scp cierra.png");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

.franja-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.10);
}

.franja-content {
    position: relative;
    z-index: 2;
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.franja-content h3 {
    margin: 0;
    font-size: 20px;
    line-height: 1.5;
    max-width: 900px;
}

.franja-header {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-bottom: 30px;
    text-align: center;
}

.franja-header i { font-size: 40px; color: var(--celeste); }

.franja-header h2 {
    font-size: 32px;
    font-weight: 600;
    margin: 0;
}

.franja-icono-unico { margin: 0; padding: 0; }

.franja-img-icono {
    width: 230px;
    height: auto;
    object-fit: contain;
}

/* =====================================================
   CONTACTO UNIFICADO
===================================================== */
.contacto-seccion {
  padding: 90px 6%;
  background: #f8fafc;
}

.contacto-card {
  max-width: 1200px;
  margin: 0 auto;
  background: #ffffff;
  border-radius: 28px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(15, 23, 42, 0.15);
}

/* FORMULARIO */
.contacto-form {
  padding: 60px 55px;
}

.contacto-form h2 {
  font-size: clamp(26px, 3vw, 38px);
  font-weight: 800;
  color: var(--azul-oscuro);
  margin-bottom: 10px;
}

.contacto-form p {
  color: #64748b;
  margin-bottom: 28px;
  line-height: 1.6;
}

/* GRID */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.contacto-form input,
.contacto-form select,
.contacto-form textarea {
  width: 100%;
  padding: 14px 16px;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  margin-bottom: 14px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.contacto-form textarea {
  min-height: 120px;
  resize: none;
}

.contacto-form input:focus,
.contacto-form select:focus,
.contacto-form textarea:focus {
  outline: none;
  border-color: var(--celeste);
  box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.25);
}

/* BOTÓN */
.btn-submit {
  width: 100%;
  padding: 16px;
  background: linear-gradient(135deg, #00d4ff, #0099cc);
  color: #fff;
  border: none;
  border-radius: 12px;
  font-weight: 800;
  font-size: 15px;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(0, 153, 204, 0.35);
}

/* MAPA */
/* CONTENEDOR DEL MAPA */
.contacto-mapa {
  padding: 18px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(10px);
  box-shadow:
    0 25px 60px rgba(15, 23, 42, 0.25);
}

/* MAPA */
.contacto-mapa iframe {
  width: 100%;
  height: 100%;
  border-radius: 18px;
  box-shadow:
    0 15px 35px rgba(0, 0, 0, 0.25);
}

/* RESPONSIVE */
@media (max-width: 900px) {
  .contacto-card {
    grid-template-columns: 1fr;
  }

  .contacto-mapa {
    height: 320px;
  }

  .contacto-form {
    padding: 45px 30px;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }
}

/* =====================================================
   FOOTER
===================================================== */
footer {
    background: var(--azul-oscuro);
    color: white;
    padding: 60px 10%;
}

.footer-container {
    display: flex;
    justify-content: space-between;
}

.footer-left {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transform: translateX(-20px);
}

.footer-logo {
    height: 100px;
    width: auto;
    margin-bottom: 10px;
}

.footer-right { text-align: right; padding-right: 60px; }
.footer-right h4 { margin-bottom: 12px; }

.footer-right .contact-item {
    margin-top: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-right .social-icons { justify-content: flex-start; margin-top: 16px; }

.social-icons {
    display: flex;
    gap: 15px;
    justify-content: flex-end;
    margin-top: 15px;
}

.social-icons a {
    color: white;
    font-size: 18px;
    transition: color 0.2s, transform 0.2s;
}

.social-icons a:hover {
    color: var(--celeste);
    transform: translateY(-2px);
}

.copyright-box p {
    font-size: 11px;
    line-height: 1.4;
    opacity: 0.8;
}

.footer-logo-wrapper {
    position: relative;
    display: inline-block;
}

.marca-registrada {
    position: absolute;
    bottom: 45px;     /* lo baja ligeramente del logo */
    right: 65px;      /* lo acerca al logo */
    font-size: 16px;  /* más visible pero elegante */
    font-weight: 600;
    color: #cbd5e1;
    line-height: 1;
    pointer-events: none;
}

/* =====================================================
   GRID EQUIPOS TÁCTICOS
===================================================== */
.tacticos-grid {
    width: 100%;
    max-width: 1400px;
    margin: 50px auto 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.tactico-card {
    position: relative;
    background: #ffffff;
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 18px 45px rgba(0,0,0,0.12);
    transition: all 0.4s ease;
    cursor: pointer;
}

.tactico-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.tactico-card h4 {
    font-size: 18px;
    font-weight: 800;
    color: var(--azul-oscuro);
    margin: 18px 0 8px;
}

.tactico-card p {
    font-size: 14px;
    color: #666;
    padding: 0 20px 25px;
}

.tactico-hover {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(10,26,43,0.95), rgba(5,15,30,0.95));
    color: white;
    padding: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    transform: translateY(100%);
    transition: transform 0.4s ease;
    font-size: 14px;
    line-height: 1.6;
}

.tactico-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 28px 60px rgba(0,0,0,0.25);
}

.tactico-card:hover img { transform: scale(1.08); }

.tactico-card:hover .tactico-hover { transform: translateY(0); }

/* =====================================================
   PERFILES — EQUIPOS DE PROTECCIÓN
===================================================== */
.perfiles-section-custom {
    padding: 60px 8% 30px;
    background: #fdfdfd;
}

.perfiles-titulo-main {
    font-size: 48px;
    font-weight: 800;
    color: var(--azul-oscuro);
    text-align: center;
    margin-bottom: 60px;
}

.perfiles-grid-custom {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    max-width: 1300px;
    margin: 0 auto;
}

.perfil-card-item {
    background: #f1f1f1;
    min-width: 140px;
    max-width: 160px;
    padding: 24px 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border-radius: 14px;
    border: 1.5px solid rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    animation: slideInMenu 0.4s ease-out both;
}

.perfil-card-item:nth-child(1) { animation-delay: 0.05s; }
.perfil-card-item:nth-child(2) { animation-delay: 0.10s; }
.perfil-card-item:nth-child(3) { animation-delay: 0.15s; }
.perfil-card-item:nth-child(4) { animation-delay: 0.20s; }
.perfil-card-item:nth-child(5) { animation-delay: 0.25s; }

@keyframes slideInMenu {
    from { opacity: 0; transform: translateY(12px); }
    to   { opacity: 1; transform: translateY(0); }
}

.perfil-card-item:hover {
    transform: translateY(-4px);
}

.perfil-card-item:hover .perfil-bg { opacity: 1 !important; }

.perfil-card-item:hover .perfil-icon-box {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0,0,0,0.2) !important;
}

.perfil-card-item:hover h3 { transform: scale(1.05); }

.perfil-card-item:nth-child(1):hover { background: linear-gradient(135deg, rgba(30,64,175,0.15), rgba(30,64,175,0.08)) !important; box-shadow: 0 8px 24px rgba(30,64,175,0.15); }
.perfil-card-item:nth-child(2):hover { background: linear-gradient(135deg, rgba(22,163,74,0.15), rgba(22,163,74,0.08)) !important; box-shadow: 0 8px 24px rgba(22,163,74,0.15); }
.perfil-card-item:nth-child(3):hover { background: linear-gradient(135deg, rgba(220,38,38,0.15), rgba(220,38,38,0.08)) !important; box-shadow: 0 8px 24px rgba(220,38,38,0.15); }
.perfil-card-item:nth-child(4):hover { background: linear-gradient(135deg, rgba(139,92,246,0.15), rgba(139,92,246,0.08)) !important; box-shadow: 0 8px 24px rgba(139,92,246,0.15); }
.perfil-card-item:nth-child(5):hover { background: linear-gradient(135deg, rgba(234,88,12,0.15), rgba(234,88,12,0.08)) !important; box-shadow: 0 8px 24px rgba(234,88,12,0.15); }

/* =====================================================
   LAYOUT SIDEBAR + VISOR
===================================================== */
.proteccion-wrapper {
    display: flex;
    min-height: 100vh;
}

.sidebar-perfil {
    width: 280px;
    min-width: 280px;
    background: var(--azul-oscuro);
    padding: 40px 24px;
    color: white;
    position: sticky;
    top: 80px;
    height: calc(100vh - 80px);
    overflow-y: auto;
}

.sidebar-nav {
    list-style: none;
    margin-top: 30px;
}

.sidebar-nav li {
    padding: 16px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    cursor: pointer;
    display: flex;
    align-items: center;
    transition: all 0.3s;
    opacity: 1;
    border-radius: 6px;
}

.sidebar-nav li:hover {
    background: rgba(95, 168, 211, 0.2);
    padding-left: 24px;
    color: var(--celeste);
}

.sidebar-nav li.active {
    background: rgba(95, 168, 211, 0.15);
    border-left: 3px solid var(--celeste);
    color: var(--celeste);
}

.sidebar-title small {
    display: block;
    color: var(--celeste);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 4px;
}

.sidebar-title h3 {
    font-size: 22px;
    font-weight: 800;
}

.num-indice {
    font-weight: 800;
    margin-right: 12px;
    color: var(--celeste);
    font-size: 14px;
}

.visor-variantes {
    flex: 1;
    padding: 50px 5%;
    background: white;
    overflow-x: hidden;
}

.btn-back-perfiles {
    background: transparent;
    border: 1px solid var(--celeste);
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 700;
    margin-bottom: 24px;
    transition: background 0.2s;
    font-family: 'Inter', sans-serif;
}

.btn-back-perfiles:hover {
    background: rgba(95,168,211,0.15);
}

.linea-celeste {
    width: 60px;
    height: 4px;
    background: var(--celeste);
    margin-top: 10px;
    border-radius: 2px;
}

.empty-state-msg {
    text-align: center;
    padding: 80px 20px;
    color: #aaa;
}

.empty-state-msg i {
    font-size: 3rem;
    margin-bottom: 20px;
    display: block;
}

/* =====================================================
   PROD HERO DINÁMICO
===================================================== */
.prod-hero {
    height: 55vh;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    padding: 0 10%;
    position: relative;
    color: white;
}

.prod-hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(90deg, rgba(10,26,43,0.7) 0%, rgba(10,26,43,0.1) 100%);
    z-index: 1;
}

.prod-hero-content { position: relative; z-index: 2; }

.prod-content-dual {
    padding: 100px 10%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: flex-start;
}

.box-detalle {
    background: #f9f9f9;
    padding: 30px;
    border-left: 5px solid var(--celeste);
    margin-top: 25px;
    border-radius: 8px;
    color: #333;
}

.img-rectangular { width: 100%; max-width: 520px; }

.img-circular {
    display: flex;
    justify-content: center;
    align-items: center;
    flex: 2;
}

.img-circular img {
    max-width: 500px !important;
    width: 100%;
    height: auto;
    border-radius: 50%;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
    transform: none !important;
    object-fit: cover;
}

/* =====================================================
   PRODUCTOS ESTRELLA
===================================================== */
.estrella-section { width: 100%; }

.estrella-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    max-width: 1400px;
    margin: 0 auto;
}

.estrella-card {
    position: relative;
    background: #ffffff;
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 18px 45px rgba(0,0,0,0.12);
    transition: all 0.4s ease;
    cursor: pointer;
    padding: 35px 30px 40px;
    text-align: center;
}

.estrella-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 28px 60px rgba(0,0,0,0.25);
}

.estrella-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 18px auto;
    border-radius: 50%;
    background: rgba(95, 168, 211, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
}

.estrella-icon i { font-size: 32px; color: var(--celeste); }

.estrella-card h4 {
    font-size: 18px;
    font-weight: 800;
    color: var(--azul-oscuro);
    margin-bottom: 10px;
}

.estrella-card p {
    font-size: 14px;
    line-height: 1.6;
    color: #555;
    margin-bottom: 20px;
}

.estrella-link {
    display: inline-block;
    font-size: 13px;
    font-weight: 800;
    color: var(--celeste);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.prod-img-col {
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

/* =====================================================
   PRODUCTOS DESTACADOS — HEADER SECTION
===================================================== */
.perfiles-section-custom {
    margin-bottom: 0;
    padding-bottom: 20px;
}

.productos-destacados-section {
    margin-top: 0;
    padding-top: 40px;
    position: relative;
    background: #fff;
}

.perfiles-grid-custom { margin-bottom: 40px; }

/* =====================================================
   FADEUP PARA VISTAS DINÁMICAS
===================================================== */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(28px); }
    to   { opacity: 1; transform: translateY(0); }
}

.anim-fadeinup {
    animation: fadeInUp 0.6s ease both;
}

.anim-delay-1 { animation-delay: 0.08s; }
.anim-delay-2 { animation-delay: 0.16s; }
.anim-delay-3 { animation-delay: 0.24s; }
.anim-delay-4 { animation-delay: 0.32s; }

/* =====================================================
   UTILIDADES
===================================================== */
@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

/* =====================================================
   RESPONSIVE — Tablets
===================================================== */
@media (max-width: 1100px) {
    .cards-container {
        grid-template-columns: repeat(2, 1fr);
    }
    .cards-container .card:last-child {
        grid-column: 1 / -1;
        max-width: 420px;
        margin: 0 auto;
    }
    .estrella-grid { grid-template-columns: repeat(2, 1fr); }
    .tacticos-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
    .stats-layout  { grid-template-columns: 1fr; text-align: center; }
    .stats-grid    { grid-template-columns: repeat(2, 1fr); }
    .stat-item h2  { min-width: auto; }
}

  /* =====================================================
   MOBILE MENU — DISEÑO ACORDEÓN LIMPIO
===================================================== */
@media (max-width: 900px) {

  .mega-dropdown:hover .mega-panel {
    display: none;
  }

  .mega-panel {
    position: static;
    width: 100%;
    border: none;
    border-left: 4px solid var(--celeste);
    background: rgba(0, 212, 255, 0.05);
    margin: 8px 0 8px 24px;
    box-shadow: none;
    transform: none;
  }

  .dropdown.open > .mega-panel {
    display: block;
  }

  .mega-visual {
    display: none;
  }
}
 @media (max-width: 900px) {

  .dropdown-menu {
    position: static;
    border-left: 4px solid var(--celeste);
    background: rgba(255, 255, 255, 0.03);
    margin-left: 24px;
    display: none;
  }

  .dropdown.open .dropdown-menu {
    display: block;
    animation: slideInLeft 0.25s ease both;
  }
}


/* =====================================================
   ANIMACIONES DE SCROLL MASIVAS
===================================================== */

/* Reveal desde abajo */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.7s cubic-bezier(0.16,1,0.3,1), transform 0.7s cubic-bezier(0.16,1,0.3,1);
}
.reveal.revealed { opacity: 1; transform: translateY(0); }

/* Reveal desde izquierda */
.reveal-left {
    opacity: 0;
    transform: translateX(-40px);
    transition: opacity 0.7s cubic-bezier(0.16,1,0.3,1), transform 0.7s cubic-bezier(0.16,1,0.3,1);
}
.reveal-left.revealed { opacity: 1; transform: translateX(0); }

/* Reveal desde derecha */
.reveal-right {
    opacity: 0;
    transform: translateX(40px);
    transition: opacity 0.7s cubic-bezier(0.16,1,0.3,1), transform 0.7s cubic-bezier(0.16,1,0.3,1);
}
.reveal-right.revealed { opacity: 1; transform: translateX(0); }

/* Zoom in */
.reveal-zoom {
    opacity: 0;
    transform: scale(0.88);
    transition: opacity 0.6s cubic-bezier(0.16,1,0.3,1), transform 0.6s cubic-bezier(0.16,1,0.3,1);
}
.reveal-zoom.revealed { opacity: 1; transform: scale(1); }

/* Stagger delays */
.delay-1 { transition-delay: 0.08s; }
.delay-2 { transition-delay: 0.16s; }
.delay-3 { transition-delay: 0.24s; }
.delay-4 { transition-delay: 0.32s; }
.delay-5 { transition-delay: 0.40s; }
.delay-6 { transition-delay: 0.48s; }
.delay-7 { transition-delay: 0.56s; }

/* ── Card hover elevado ── */
.card {
    transition: transform 0.3s cubic-bezier(0.34,1.56,0.64,1), box-shadow 0.3s ease !important;
}
.card:hover {
    transform: translateY(-8px) scale(1.02) !important;
    box-shadow: 0 24px 50px rgba(0,0,0,0.18) !important;
}

/* ── Tactico card hover ── */
.tactico-card {
    transition: transform 0.3s cubic-bezier(0.34,1.56,0.64,1), box-shadow 0.3s ease !important;
    overflow: hidden;
}
.tactico-card:hover {
    transform: translateY(-6px) !important;
    box-shadow: 0 20px 40px rgba(0,0,0,0.15) !important;
}
.tactico-card:hover img {
    transform: scale(1.06) !important;
}

/* ── Ventaja card hover ── */
.ventaja-card {
    transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}
.ventaja-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 16px 40px rgba(0,212,255,0.12);
    border-color: var(--celeste) !important;
}

/* ── Stat item counter ── */
.stat-item {
    transition: transform 0.3s ease;
}
.stat-item:hover { transform: scale(1.04); }

/* ── Estrella item hover ── */
.estrella-item {
    transition: transform 0.28s ease, background 0.28s ease;
}
.estrella-item:hover {
    transform: translateY(-4px);
    background: rgba(0,212,255,0.08) !important;
}

/* ── Hero parallax text ── */
.hero-content {
    transition: transform 0.1s linear;
}

/* ── Barra de progreso animada ── */
.skill-bar-fill {
    animation: skillFill 1.5s cubic-bezier(0.16,1,0.3,1) both;
}
@keyframes skillFill {
    from { width: 0 !important; }
}

/* ── Cursor dron mejorado ── */
#cursor-wrap {
    transition: none !important; /* sin lag */
}

#custom-cursor.hover polygon,
#custom-cursor.hover rect {
    filter: drop-shadow(0 0 6px #00d4ff);
}
#custom-cursor.hover {
    filter: drop-shadow(0 0 10px rgba(0,212,255,0.6));
}

/* ── Línea divisora animada ── */
.animated-line {
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--celeste), transparent);
    background-size: 200% 100%;
    animation: lineMove 3s ease-in-out infinite;
}
@keyframes lineMove {
    0%   { background-position: -100% 0; }
    100% { background-position: 200% 0; }
}

/* ── Número counter glow ── */
.stat-item h2 {
    text-shadow: 0 0 30px rgba(0,212,255,0.3);
}

/* ── Mega panel scroll fix ── */
.mega-links::-webkit-scrollbar { width: 4px; }
.mega-links::-webkit-scrollbar-track { background: transparent; }
.mega-links::-webkit-scrollbar-thumb { background: rgba(0,212,255,0.2); border-radius: 2px; }











@media (max-width: 1200px) {
  .stats-layout {
    grid-template-columns: 1fr;
    gap: 50px;
  }

  .stats-grid {
    justify-items: center;
  }

  .mapa-container {
    max-width: 700px;
  }

  .mapa-container svg {
    transform: scale(0.95);
  }
}

/* =====================================================
   MEJORAS DE RESPONSIVIDAD — MAPA
===================================================== */

.mapa-container {
  width: 150%;
  max-width: 900px;
  margin: 0 auto;
  position: relative;
  padding: 20px;
}

.mapa-container svg {
  width: 100%;
  height: auto;
  display: block;
  transform-origin: center;
}

/* Responsividad del mapa por tamaño de pantalla */
@media (min-width: 1900px) {
  .mapa-container {
    max-width: 1500px;
  }

  .mapa-container svg {
    transform: scale(1.12) translateX(6%);
  }
}

@media (max-width: 1200px) {
  .mapa-container {
    max-width: 700px;
    padding: 30px;
  }
}

@media (max-width: 900px) {
  .mapa-container {
    max-width: 600px;
    padding: 20px;
  }
}

@media (max-width: 500px) {
  .mapa-container {
    max-width: 90%;
    padding: 12px;
  }
  
  .mapa-container svg {
    width: 100%;
    height: auto;
  }
}
@media (max-width: 768px) {
  .mapa-container {
    max-width: 100%;
    padding: 0;
    margin-top: 20px;
  }

  .mapa-container svg {
    width: 100%;
    transform: scale(0.9);
  }
}

@media (max-width: 768px) {
  .stat-item {
    width: 120px;
    height: 135px;
  }

  .stat-item h2 {
    font-size: 20px;
  }

  .stat-item p {
    font-size: 10px;
    max-width: 100px;
  }

  .stat-icon {
    width: 36px;
    height: 36px;
  }
}


/* =====================================================
   MEJORAS DE MENÚ RESPONSIVE
===================================================== */


.nav-links a {
  color: white;
  text-decoration: none;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
  padding: 8px 12px;
  border-radius: 6px;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--celeste);
  transition: width 0.3s ease;
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-links a:hover {
  background: rgba(95, 168, 211, 0.15);
  color: var(--celeste);
}

/* ── Menú hamburger mejorado ── */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px 4px;
  z-index: 200;
}

.nav-hamburger span {
  display: block;
  width: 26px;
  height: 2.5px;
  background: white;
  border-radius: 3px;
  transition: all 0.35s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  transform-origin: center;
}

/* Animación X cuando está abierto */
.nav-hamburger.open span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
  background: var(--celeste);
}

.nav-hamburger.open span:nth-child(2) {
  opacity: 0;
  transform: translateX(-20px);
}

.nav-hamburger.open span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
  background: var(--celeste);
}

/* ── Mobile menu con animación suave ── */
@media (max-width: 900px) {
  .nav-hamburger {
    display: flex;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    gap: 0;
    width: 100%;
    background: linear-gradient(180deg, var(--azul-oscuro), #0a1520);
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    padding: 20px 0;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
    border-radius: 0 0 12px 12px;
    z-index: 500;
    animation: slideDown 0.35s cubic-bezier(0.34, 1.56, 0.64, 1) both;
  }

  @keyframes slideDown {
    from {
      opacity: 0;
      transform: translateY(-15px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links > li {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    width: 100%;
  }

  .nav-links > li > a {
    display: block;
    padding: 14px 24px;
    border-radius: 0;
    font-size: 12px;
    width: 100%;
  }

  .nav-links > li > a::after {
    display: none;
  }

  .nav-links > li > a:hover {
    background: rgba(95, 168, 211, 0.2);
    padding-left: 30px;
  }

  /* Dropdown mobile mejorado */
  .dropdown-menu {
    position: static;
    box-shadow: none;
    border-top: none;
    border-left: 4px solid var(--celeste);
    background: rgba(255, 255, 255, 0.03);
    display: none;
    animation: none;
    margin-left: 24px;
    min-width: unset;
  }

  .dropdown.open .dropdown-menu {
    display: block;
    animation: slideInLeft 0.3s ease both;
  }

  @keyframes slideInLeft {
    from {
      opacity: 0;
      transform: translateX(-10px);
    }
    to {
      opacity: 1;
      transform: translateX(0);
    }
  }

  .dropdown-menu li a {
    color: rgba(255, 255, 255, 0.7);
    border-color: rgba(255, 255, 255, 0.08);
    font-size: 11px;
  }

  .dropdown-menu li a:hover {
    background: rgba(95, 168, 211, 0.15);
    color: white;
    padding-left: 32px;
  }
}

/* ── Mega dropdown responsive ── */
.mega-panel {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  width: 620px;
  background: #06101e;
  border: 1px solid rgba(0, 212, 255, 0.18);
  border-top: 3px solid var(--celeste);
  border-radius: 0 0 16px 16px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6), 0 0 40px rgba(0, 212, 255, 0.06);
  z-index: 9999;
  overflow: hidden;
  animation: megaDrop 0.22s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes megaDrop {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(-10px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0) scale(1);
  }
}

.mega-dropdown:hover .mega-panel {
  display: flex;
}

@media (max-width: 900px) {
  .mega-dropdown:hover .mega-panel {
    display: none;
  }

  .mega-panel {
    position: static;
    width: 100%;
    border: none;
    border-left: 4px solid var(--celeste);
    border-radius: 0;
    box-shadow: none;
    background: rgba(0, 212, 255, 0.05);
    margin: 8px 0 8px 24px;
    animation: none;
    transform: none;
  }

  .mega-visual {
    display: none;
  }

  .mega-links {
    padding: 12px 16px;
    max-height: none;
    overflow: visible;
  }
}
/*SECCION DE CARDS*/

.cards-section-modern {
  padding: 80px 5%;
  display: flex;
  justify-content: center;
}

.card-modern {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  max-width: none;
  width: 100%;
  margin: 5 5%;
  background: linear-gradient(135deg, #0a1a2b, #131b23);
  border-radius: 32px;
  overflow: hidden;
  box-shadow: 0 30px 70px rgba(0,0,0,0.45);
}

/* IMAGEN */
.card-modern-image {
  width: 100%;
  height: 100%;           /* Desktop */
  min-height: 520px;      /* 🔑 MISMO ALTO PARA TODAS */
  position: relative;
  overflow: hidden;
}

.card-modern-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;     /* 🔑 recorta sin deformar */
  object-position: center;
  transition: opacity 0.35s ease, transform 0.5s ease;
}
.card-modern-image img {
  transform: scale(1);
}

.card-option.active ~ .card-modern-image img {
  transform: scale(1.03);
}

/* CONTENIDO */
.card-modern-content {
  padding: 50px;
  color: #fff;
}

.card-modern-content h2 {
  font-size: 32px;
  margin-bottom: 30px;
}

/* OPCIONES */
.card-option {
  display: flex;
  gap: 16px;
  padding: 18px;
  border-radius: 16px;
  cursor: pointer;
  transition: all 0.35s ease;
  opacity: 0.6;
}

.card-option i {
  font-size: 22px;
  color: var(--celeste);
  margin-top: 6px;
}

.card-option h3 {
  margin: 0;
  font-size: 18px;
}

.card-option p {
  margin: 4px 0 0;
  font-size: 15px;
  color: #d0d0d0;
}

/* ACTIVA */
.card-option.active {
  background: rgba(95,168,211,0.15);
  opacity: 1;
  transform: translateX(10px);
}

.card-option.active h3 {
  color: var(--celeste);
}
@media (max-width: 900px) {
  .card-modern {
    grid-template-columns: 1fr;
  }

  .card-modern-image {
    height: 280px;
  }
}
@media (max-width: 900px) {
  .card-modern-image {
    min-height: 260px;
  }
}

@media (max-width: 600px) {
  .card-modern-image {
    min-height: 220px;
  }
}
/* =====================================================
   PERFIL CARDS ANIMADAS
===================================================== */

.perfil-card-item {
  background: #f1f1f1;
  padding: 24px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border-radius: 14px;
  border: 1.5px solid rgba(0, 0, 0, 0.08);
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  overflow: hidden;
  animation: profileSlideIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

@keyframes profileSlideIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.perfil-card-item:nth-child(1) {
  animation-delay: 0.05s;
}
.perfil-card-item:nth-child(2) {
  animation-delay: 0.1s;
}
.perfil-card-item:nth-child(3) {
  animation-delay: 0.15s;
}
.perfil-card-item:nth-child(4) {
  animation-delay: 0.2s;
}
.perfil-card-item:nth-child(5) {
  animation-delay: 0.25s;
}

.perfil-card-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.3),
    transparent
  );
  transition: left 0.6s ease;
}

.perfil-card-item:hover::before {
  left: 100%;
}

.perfil-card-item:hover {
  transform: translateY(-8px) scale(1.05);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

.perfil-icon-box {
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.perfil-card-item:hover .perfil-icon-box {
  transform: scale(1.15) rotate(5deg);
}

.perfil-card-item h3 {
  transition: all 0.3s ease;
}

.perfil-card-item:hover h3 {
  transform: scale(1.08);
  letter-spacing: 0.1em;
}

/* =====================================================
   STAT ITEMS ANIMADOS
===================================================== */

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
  animation: statPop 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}
.stat-item::before {
    background: linear-gradient(
        135deg,
        rgba(95, 168, 211, 0.35),
        rgba(95, 168, 211, 0.25)
    );
    border: 2px solid rgba(95, 168, 211, 0.75);
}

.stat-item:nth-child(1) {
  animation-delay: 0s;
}
.stat-item:nth-child(2) {
  animation-delay: 0.15s;
}
.stat-item:nth-child(3) {
  animation-delay: 0.3s;
}
.stat-item:nth-child(4) {
  animation-delay: 0.45s;
}

@keyframes statPop {
  from {
    opacity: 0;
    transform: scale(0.8) translateY(20px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.stat-icon {
  width: 64px;
  height: 64px;
  margin-bottom: 6px;
  animation: iconRotate 0.8s ease-in-out;
}

@keyframes iconRotate {
  0% {
    transform: rotate(-15deg);
  }
  50% {
    transform: rotate(5deg);
  }
  100% {
    transform: rotate(0);
  }
}

.stat-item:hover {
  transform: scale(1.08);
}


.stat-item h2 {
  color: var(--celeste);
  font-size: 40px;
  font-weight: 800;
  line-height: 1;
  margin: 0;
  text-shadow: 0 0 20px rgba(95, 168, 211, 0.3);
  transition: all 0.3s ease;
}

.stat-item:hover h2 {
  text-shadow: 0 0 30px rgba(95, 168, 211, 0.6);
  transform: scale(1.1);
}

/* =====================================================
   RESPONSIVE STAT ITEMS
===================================================== */

@media (max-width: 1200px) {
  .stat-item {
    flex-basis: calc(50% - 14px);
  }
}

@media (max-width: 600px) {
  .stat-item {
    flex-basis: 100%;
  }

  .stat-item h2 {
    font-size: clamp(28px, 8vw, 40px);
  }

  .stat-item p {
    font-size: 11px;
  }

  .stat-icon {
    width: 48px;
    height: 48px;
  }

}

/* =====================================================
   HEXAGON STATS — Diseño Hexagonal
===================================================== */

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 28px;
    justify-items: center;
    margin-bottom: 50px;
}

.stat-item {
    position: relative;
    width: 180px;
    height: 200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

/* Hexágono base usando clip-path */
.stat-item::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(95, 168, 211, 0.497), rgba(95, 168, 211, 0.05));
    border: 2px solid rgba(95, 168, 211, 0.35);
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    z-index: -1;
}

.stat-item {
    animation: statHexPopIn 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

.stat-item:nth-child(1) { animation-delay: 0s; }
.stat-item:nth-child(2) { animation-delay: 0.12s; }
.stat-item:nth-child(3) { animation-delay: 0.24s; }
.stat-item:nth-child(4) { animation-delay: 0.36s; }

@keyframes statHexPopIn {
    from {
        opacity: 0;
        transform: scale(0.7) translateY(20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.stat-item:hover::before {
    background: linear-gradient(135deg, rgba(95, 168, 211, 0.516), rgba(95, 168, 211, 0.582));
    border-color: rgba(95, 168, 211, 0.827);
    box-shadow: 0 0 30px rgba(95, 168, 211, 0.3), inset 0 0 30px rgba(95, 168, 211, 0.716);
}

.stat-item:hover {
    transform: scale(1.08);
}

.stat-icon {
    width: 50px;
    height: 50px;
    margin-bottom: 8px;
    object-fit: contain;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    filter: brightness(1.1) drop-shadow(0 0 8px rgba(95, 168, 211, 0.5));
}

.stat-item:hover .stat-icon {
    transform: scale(1.2) rotate(10deg);
    filter: brightness(1.3) drop-shadow(0 0 15px rgba(95, 168, 211, 0.8));
}

.stat-item h2 {
    color: var(--celeste);
    font-size: 35px;
    font-weight: 800;
    line-height: 1;
    margin: 8px 0 6px;
    text-shadow: 0 0 15px rgba(95, 168, 211, 0.4);
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

.stat-item:hover h2 {
    font-size: 40px;
    text-shadow: 0 0 25px rgba(95, 168, 211, 0.8);
    transform: scale(1.1);
}

.stat-item p {
    color: rgba(255, 255, 255, 0.75);
    font-size: 11px;
    max-width: 140px;
    line-height: 1.3;
    text-align: center;
    font-weight: 600;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    margin: 0;
    transition: color 0.3s ease;
    position: relative;
    z-index: 1;
}

.stat-item:hover p {
    color: white;
}

/* =====================================================
   PLATAFORMA SCP STATS — Hexágonos
===================================================== */

.scp-stats-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto 60px;
    padding: 0 5%;
}

.scp-stat-hexagon {
    position: relative;
    width: 160px;
    height: 180px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.scp-stat-hexagon::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(95, 168, 211, 0.15), rgba(95, 168, 211, 0.08));
    border: 2px solid rgba(95, 168, 211, 0.4);
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    z-index: -1;
}

.scp-stat-hexagon {
    animation: scpHexSlideUp 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

.scp-stat-hexagon:nth-child(1) { animation-delay: 0.05s; }
.scp-stat-hexagon:nth-child(2) { animation-delay: 0.1s; }
.scp-stat-hexagon:nth-child(3) { animation-delay: 0.15s; }
.scp-stat-hexagon:nth-child(4) { animation-delay: 0.2s; }

@keyframes scpHexSlideUp {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.85);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.scp-stat-hexagon:hover::before {
    background: linear-gradient(135deg, rgba(95, 168, 211, 0.3), rgba(95, 168, 211, 0.18));
    border-color: rgba(95, 168, 211, 0.7);
    box-shadow: 0 0 35px rgba(95, 168, 211, 0.4), inset 0 0 20px rgba(95, 168, 211, 0.12);
}

.scp-stat-hexagon:hover {
    transform: scale(1.1) translateY(-5px);
}

.scp-stat-number {
    color: var(--celeste);
    font-size: 25px;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 4px;
    text-shadow: 0 0 12px rgba(95, 168, 211, 0.4);
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

.scp-stat-hexagon:hover .scp-stat-number {
    font-size: 30px;
    text-shadow: 0 0 20px rgba(90, 179, 231, 0.919);
}

.scp-stat-label {
    color: rgba(255, 255, 255, 0.8);
    font-size: 5px;
    font-weight: 700;
    letter-spacing: 0.25px;
    text-transform: uppercase;
    margin: 0;
    line-height: 1.3;
    transition: color 0.3s ease;
    position: relative;
    z-index: 1;
}

.scp-stat-hexagon:hover .scp-stat-label {
    color: rgb(1, 45, 88);
}

/* =====================================================
   RESPONSIVE HEXAGON STATS
===================================================== */

@media (max-width: 1200px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }
    
    .scp-stats-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }
}

@media (max-width: 800px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    
    .stat-item {
        width: 140px;
        height: 160px;
    }
    
    .stat-item h2 {
        font-size: 28px;
    }
    
    .stat-item p {
        font-size: 11px;
    }
    
    .scp-stats-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    
    .scp-stat-hexagon {
        width: 130px;
        height: 145px;
    }
    
    .scp-stat-number {
        font-size: 26px;
    }
    
    .scp-stat-label {
        font-size: 10px;
    }
}

@media (max-width: 600px) {
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .stat-item {
        width: 120px;
        height: 140px;
    }
    
    .stat-item h2 {
        font-size: 24px;
    }
    
    .stat-icon {
        width: 40px;
        height: 40px;
    }
    
    .scp-stats-container {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
        padding: 0 3%;
    }
    
    .scp-stat-hexagon {
        width: 100px;
        height: 115px;
    }
    
    .scp-stat-number {
        font-size: 2px;
    }
    
    .scp-stat-label {
        font-size: 5px;
    }
}
/*Mapa bonito*/
:root {
  --fondo-claro: #eaf3fb;        /* fondo sección */
  --card-bg: #ffffff;
  --primario: #0a1a2b;           /* tu azul */
  --boton: #1e6cff;
  --texto: #1c2430;
  --input-bg: #f6f8fb;
  --radio: 22px;
}

.contacto-seccion {
  background: var(--fondo-claro);
  padding: 80px 5%;
}

.contacto-card {
  max-width: 1200px;
  margin: auto;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  background: var(--card-bg);
  border-radius: var(--radio);
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0,0,0,0.15);
}

.contacto-form {
  padding: 60px;
}

.contacto-form h2 {
  color: var(--primario);
  font-size: 32px;
  margin-bottom: 10px;
}

.contacto-form p {
  color: #555;
  margin-bottom: 30px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.contacto-form input,
.contacto-form textarea {
  width: 100%;
  padding: 14px 18px;
  border-radius: 14px;
  border: none;
  background: var(--input-bg);
  font-size: 15px;
  margin-bottom: 18px;
}

.contacto-form textarea {
  resize: none;
  height: 120px;
}

.contacto-form button {
  background: var(--boton);
  color: white;
  border: none;
  padding: 14px 32px;
  border-radius: 40px;
  font-size: 15px;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease;
}

.contacto-form button:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.25);
}

.contacto-mapa iframe {
  width: 100%;
  height: 100%;
  border: none;
}


@media (max-width: 900px) {
  .contacto-card {
    grid-template-columns: 1fr;
  }

  .contacto-form {
    padding: 40px 30px;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .contacto-mapa {
    height: 300px;
  }
}

#contact-form select {
  width: 100%;
  padding: 16px 18px;
  border-radius: 14px;
  border: none;
  font-size: 15px;
  background: #fff;
  box-shadow: 0 15px 30px rgba(0,0,0,0.08);
  appearance: none;
  cursor: pointer;
}
#contact-form select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14'%3E%3Cpath d='M2 5l5 5 5-5' fill='none' stroke='%230056b3' stroke-width='2'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 18px center;
}



/* =====================================================
   HEADER Y NAVEGACIÓN (SIN REPETICIONES)
===================================================== */
header {
    background: var(--azul-oscuro);
    padding: 20px 5%;
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: box-shadow 0.3s, padding 0.3s;
}

header.scrolled {
    padding: 14px 5%;
    box-shadow: 0 4px 30px rgba(0,0,0,0.4);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
}

.logo img { 
    height: 45px; 
    cursor: pointer; 
    transition: opacity 0.2s; 
}

.logo img:hover { opacity: 0.85; }

/* ─── Menú Links Base ─── */
.nav-links {
    display: flex;
    list-style: none;
    gap: 0;
    align-items: center;
}

.nav-links > li {
    position: relative;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 8px 12px;
    border-radius: 6px;
    display: block;
    transition: all 0.3s ease;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--celeste);
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-links a:hover {
    background: rgba(95, 168, 211, 0.15);
    color: var(--celeste);
}

/* ─── Hamburger Menu ─── */
.nav-hamburger {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px 4px;
    z-index: 200;
}

.nav-hamburger span {
    display: block;
    width: 26px;
    height: 2.5px;
    background: white;
    border-radius: 3px;
    transition: all 0.35s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    transform-origin: center;
}

.nav-hamburger.open span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
    background: var(--celeste);
}

.nav-hamburger.open span:nth-child(2) {
    opacity: 0;
    transform: translateX(-20px);
}

.nav-hamburger.open span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
    background: var(--celeste);
}

/* =====================================================
   MEGA DROPDOWN (OPTIMIZADO)
===================================================== */
.mega-panel {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    width: 620px;
    background: #06101e;
    border: 1px solid rgba(0, 212, 255, 0.18);
    border-top: 3px solid var(--celeste);
    border-radius: 0 0 16px 16px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6), 0 0 40px rgba(0, 212, 255, 0.06);
    z-index: 9999;
    overflow: hidden;
    animation: megaDrop 0.22s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes megaDrop {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(-10px) scale(0.97);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0) scale(1);
    }
}

.mega-dropdown:hover .mega-panel {
    display: flex;
}

.mega-visual {
    width: 200px;
    min-width: 200px;
    background: linear-gradient(160deg, #0a1a2b 0%, #040d18 100%);
    border-right: 1px solid rgba(0,212,255,0.12);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 28px 16px 20px;
    gap: 10px;
}

.mega-svg {
    width: 160px;
    height: 130px;
    overflow: visible;
}

.mega-label {
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #00d4ff;
    text-align: center;
}

.mega-sublabel {
    font-size: 9px;
    color: rgba(255,255,255,0.4);
    text-align: center;
    letter-spacing: 0.05em;
}

.mega-links {
    flex: 1;
    padding: 20px 16px;
    display: flex;
    flex-direction: column;
    gap: 2px;
    overflow-y: auto;
    max-height: 380px;
}

.mega-section-title {
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.25em;
    color: var(--celeste);
    text-transform: uppercase;
    margin-bottom: 8px;
    padding-bottom: 6px;
    border-bottom: 1px solid rgba(0,212,255,0.12);
}

.mega-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 9px 10px;
    border-radius: 8px;
    text-decoration: none;
    transition: background 0.18s ease, transform 0.18s ease;
    cursor: pointer;
}

.mega-item:hover {
    background: rgba(0,212,255,0.07);
    transform: translateX(4px);
}

.mega-item i {
    font-size: 15px;
    color: var(--celeste);
    width: 20px;
    text-align: center;
    flex-shrink: 0;
}

.mega-item strong {
    display: block;
    font-size: 11.5px;
    font-weight: 700;
    color: rgba(255,255,255,0.92);
    line-height: 1.2;
}

.mega-item small {
    display: block;
    font-size: 9.5px;
    color: rgba(255,255,255,0.38);
    margin-top: 1px;
}

/* ──── Mega SVG Animations ──── */
@keyframes megaFloat {
    0%,100% { transform: translateY(0); }
    50%      { transform: translateY(-5px); }
}

@keyframes megaPulse {
    0%,100% { opacity: 0.3; }
    50%      { opacity: 0.6; }
}

@keyframes megaBlink {
    0%,100% { opacity: 1; }
    50%      { opacity: 0.2; }
}

@keyframes spinCW  { to { transform: rotate(360deg); } }
@keyframes spinCCW { to { transform: rotate(-360deg); } }

@keyframes megaScan {
    0%   { transform: translateY(0); opacity: 0.8; }
    100% { transform: translateY(-22px); opacity: 0; }
}

.mega-float { animation: megaFloat 3s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
.mega-pulse { animation: megaPulse 2.5s ease-in-out infinite; }
.mega-blink { animation: megaBlink 1.4s ease-in-out infinite; }
.spin-cw    { animation: spinCW  1.5s linear infinite; transform-box: fill-box; transform-origin: center; }
.spin-ccw   { animation: spinCCW 1.5s linear infinite; transform-box: fill-box; transform-origin: center; }
.mega-scan  { animation: megaScan 1.8s ease-in-out infinite; }

/* ─── Dropdown Regular ─── */
.dropdown-menu {
    position: static;
    box-shadow: none;
    border-top: none;
    border-left: 4px solid var(--celeste);
    background: rgba(255, 255, 255, 0.03);
    display: none;
    animation: none;
    margin-left: 24px;
    min-width: unset;
    list-style: none;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.4s ease;
    opacity: 0;
}

.dropdown-menu li {
    list-style: none;
}

.dropdown-menu li a {
    color: rgba(255, 255, 255, 0.7);
    padding: 10px 20px;
    display: block;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.2s ease;
}

.dropdown-menu li a:hover {
    background: rgba(95, 168, 211, 0.15);
    color: white;
    padding-left: 26px;
}

.dropdown.open .dropdown-menu {
    display: block;
    max-height: 500px;
    opacity: 1;
    animation: slideInLeft 0.4s ease both;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-10px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* =====================================================
   MOBILE MENU (FIX PARA TEMBLOR)
===================================================== */
@media (max-width: 900px) {
    
    /* ─── Fix principal: ancho fijo para evitar temblor ─── */
    body {
        overflow-x: hidden;
        width: 100vw;
    }
    
    .nav-hamburger {
        display: flex;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        gap: 0;
        width: 100%;
        background: linear-gradient(180deg, var(--azul-oscuro), #0a1520);
        position: absolute;
        top: calc(100% + 10px);
        left: 0;
        right: 0;
        padding: 20px 0;
        box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
        border-radius: 0 0 12px 12px;
        z-index: 500;
        animation: slideDown 0.35s cubic-bezier(0.34, 1.56, 0.64, 1) both;
        max-height: calc(100vh - 80px);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    @keyframes slideDown {
        from {
            opacity: 0;
            transform: translateY(-15px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    .nav-links.open {
        display: flex;
    }

    .nav-links > li {
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
        width: 100%;
    }

    .nav-links > li > a {
        display: block;
        padding: 14px 24px;
        border-radius: 0;
        font-size: 12px;
        width: 100%;
        margin: 0;
    }

    .nav-links > li > a::after {
        display: none;
    }

    .nav-links > li > a:hover {
        background: rgba(95, 168, 211, 0.2);
        padding-left: 30px;
    }

    /* ─── Mega dropdown mobile ─── */
    .mega-dropdown:hover .mega-panel {
        display: none;
    }

    .mega-panel {
        position: static;
        width: 100%;
        border: none;
        border-left: 4px solid var(--celeste);
        border-radius: 0;
        box-shadow: none;
        background: rgba(0, 212, 255, 0.05);
        margin: 8px 0 8px 24px;
        animation: none;
        transform: none;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.4s ease;
        opacity: 0;
    }

    .dropdown.open .mega-panel {
        display: flex;
        max-height: 600px;
        opacity: 1;
    }

    .mega-visual {
        display: none;
    }

    .mega-links {
        padding: 12px 16px;
        max-height: none;
        overflow: visible;
    }
}

/* =====================================================
   ANIMACIONES GLOBALES
===================================================== */
.anim-ready {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.55s ease, transform 0.55s ease;
}

.anim-ready.anim-in {
    opacity: 1;
    transform: translateY(0);
}

[data-anim="fade-up"] {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

[data-anim="fade-up"].visible {
    opacity: 1;
    transform: translateY(0);
}

/* ─── Reveal animations ─── */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.7s cubic-bezier(0.16,1,0.3,1), transform 0.7s cubic-bezier(0.16,1,0.3,1);
}

.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

.reveal-left {
    opacity: 0;
    transform: translateX(-40px);
    transition: opacity 0.7s cubic-bezier(0.16,1,0.3,1), transform 0.7s cubic-bezier(0.16,1,0.3,1);
}

.reveal-left.revealed {
    opacity: 1;
    transform: translateX(0);
}

.reveal-right {
    opacity: 0;
    transform: translateX(40px);
    transition: opacity 0.7s cubic-bezier(0.16,1,0.3,1), transform 0.7s cubic-bezier(0.16,1,0.3,1);
}

.reveal-right.revealed {
    opacity: 1;
    transform: translateX(0);
}

.reveal-zoom {
    opacity: 0;
    transform: scale(0.88);
    transition: opacity 0.6s cubic-bezier(0.16,1,0.3,1), transform 0.6s cubic-bezier(0.16,1,0.3,1);
}

.reveal-zoom.revealed {
    opacity: 1;
    transform: scale(1);
}

/* ─── Stagger delays ─── */
.delay-1 { transition-delay: 0.08s; }
.delay-2 { transition-delay: 0.16s; }
.delay-3 { transition-delay: 0.24s; }
.delay-4 { transition-delay: 0.32s; }
.delay-5 { transition-delay: 0.40s; }
.delay-6 { transition-delay: 0.48s; }
.delay-7 { transition-delay: 0.56s; }

/* ─── Cursor wrapping ─── */
#cursor-wrap {
    will-change: transform;
    pointer-events: none;
}

/* =====================================================
   PERFILES SECTION
===================================================== */
.perfiles-section-custom {
    background: #f8fafc;
    padding: 60px 8% 30px;
}

.perfiles-titulo-main {
    font-size: 48px;
    font-weight: 800;
    color: var(--azul-oscuro);
    text-align: center;
    margin-bottom: 60px;
}

.perfiles-grid-custom {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 5%;
}

.perfil-card-item {
    background: #f1f1f1;
    min-width: 140px;
    max-width: 160px;
    padding: 24px 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border-radius: 14px;
    border: 1.5px solid rgba(0,0,0,0.08);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    overflow: hidden;
    animation: slideInMenu 0.4s ease-out both;
}

.perfil-card-item:nth-child(1) { animation-delay: 0.05s; }
.perfil-card-item:nth-child(2) { animation-delay: 0.10s; }
.perfil-card-item:nth-child(3) { animation-delay: 0.15s; }
.perfil-card-item:nth-child(4) { animation-delay: 0.20s; }
.perfil-card-item:nth-child(5) { animation-delay: 0.25s; }

@keyframes slideInMenu {
    from { opacity: 0; transform: translateY(12px); }
    to   { opacity: 1; transform: translateY(0); }
}

.perfil-card-item:hover {
    transform: translateY(-4px);
}

.pci-policias  { border-top: 3px solid #1e40af; }
.pci-ambulancia { border-top: 3px solid #16a34a; }
.pci-bomberos  { border-top: 3px solid #dc2626; }
.pci-forenses  { border-top: 3px solid #8b5cf6; }
.pci-drogas    { border-top: 3px solid #ea580c; }

.perfil-icon-box {
    width: 60px;
    height: 60px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
    font-size: 1.9rem;
    color: #fff;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.perfil-card-item:hover .perfil-icon-box {
    transform: scale(1.1);
}

.perfil-card-item h3 {
    margin: 0;
    font-size: 0.88rem;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: 0.04em;
    transition: all 0.3s ease;
}

.perfil-card-item:hover h3 {
    transform: scale(1.05);
}

/* ─── Hover effects por tipo ─── */
.perfil-card-item:nth-child(1):hover { background: linear-gradient(135deg, rgba(30,64,175,0.15), rgba(30,64,175,0.08)); box-shadow: 0 8px 24px rgba(30,64,175,0.15); }
.perfil-card-item:nth-child(2):hover { background: linear-gradient(135deg, rgba(22,163,74,0.15), rgba(22,163,74,0.08)); box-shadow: 0 8px 24px rgba(22,163,74,0.15); }
.perfil-card-item:nth-child(3):hover { background: linear-gradient(135deg, rgba(220,38,38,0.15), rgba(220,38,38,0.08)); box-shadow: 0 8px 24px rgba(220,38,38,0.15); }
.perfil-card-item:nth-child(4):hover { background: linear-gradient(135deg, rgba(139,92,246,0.15), rgba(139,92,246,0.08)); box-shadow: 0 8px 24px rgba(139,92,246,0.15); }
.perfil-card-item:nth-child(5):hover { background: linear-gradient(135deg, rgba(234,88,12,0.15), rgba(234,88,12,0.08)); box-shadow: 0 8px 24px rgba(234,88,12,0.15); }

@media (max-width: 600px) {
    .perfiles-grid-custom { gap: 10px; }
    .perfil-card-item { 
        width: 130px; 
        padding: 20px 10px 16px; 
    }
    .perfil-icon-box { 
        width: 48px; 
        height: 48px; 
        font-size: 1.5rem; 
    }
    .perfil-card-item h3 { font-size: 0.75rem; }
}

/* =====================================================
   FOOTER
===================================================== */
footer {
    background: var(--azul-oscuro);
    color: white;
    padding: 60px 10%;
}

.footer-container {
    display: flex;
    justify-content: space-between;
}

.footer-left {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transform: translateX(-20px);
}

.footer-logo {
    height: 100px;
    width: auto;
    margin-bottom: 10px;
}

.footer-right { 
    text-align: right; 
    padding-right: 60px; 
}

.footer-right h4 { margin-bottom: 12px; }

.footer-right .contact-item {
    margin-top: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.social-icons {
    display: flex;
    gap: 15px;
    justify-content: flex-end;
    margin-top: 15px;
}

.social-icons a {
    color: white;
    font-size: 18px;
    transition: color 0.2s, transform 0.2s;
}

.social-icons a:hover {
    color: var(--celeste);
    transform: translateY(-2px);
}

.copyright-box p {
    font-size: 11px;
    line-height: 1.4;
    opacity: 0.8;
}

/* =====================================================
   UTILIDADES
===================================================== */
@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}
/* =====================================================
   FIX MEGA MENÚ DESKTOP — eliminar gap que rompe hover
   Se mueve top a 100% y se compensa con padding interno
===================================================== */
@media (min-width: 901px) {
    .mega-panel {
        top: 100% !important;
        padding-top: 8px;
    }
}

/* =====================================================
   RESPONSIVE — secciones sin cobertura mobile
===================================================== */

/* Footer */
@media (max-width: 768px) {
    footer { padding: 40px 5%; }
    .footer-container { flex-direction: column; align-items: center; gap: 28px; text-align: center; }
    .footer-left { transform: none; }
    .footer-right { text-align: center; padding-right: 0; }
    .footer-right .contact-item { justify-content: center; }
    .social-icons { justify-content: center; }
}

/* SCP Banner */
@media (max-width: 900px) {
    .scp-banner { padding: 50px 5%; }
    .scp-modern-container { flex-direction: column; gap: 32px; text-align: center; }
    .scp-modern-img { justify-content: center; overflow: hidden; }
    .scp-modern-img img { width: 90%; max-width: 100%; margin-bottom: 0 !important; }
}

/* Stats footer CTA */
@media (max-width: 768px) {
    .stats-footer { flex-direction: column; gap: 20px; text-align: center; padding: 28px 5%; }
    .stats-footer h3 { font-size: 20px; max-width: 100%; }
}

/* Stats layout */
@media (max-width: 768px) {
    .stats-layout { grid-template-columns: 1fr; gap: 32px; }
    .stats-grid { margin-left: 0; justify-items: center; }
    .stats-title-visible { text-align: center; }
}

/* Prod content dual */
@media (max-width: 900px) {
    .prod-content-dual { grid-template-columns: 1fr; padding: 50px 5%; gap: 36px; }
}

/* Proteccion wrapper sidebar */
@media (max-width: 900px) {
    .proteccion-wrapper { flex-direction: column; }
    .sidebar-perfil { width: 100%; min-width: unset; height: auto; position: static; padding: 20px 16px; }
    .sidebar-nav { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
    .sidebar-nav li { border-bottom: none; flex: 1 1 auto; min-width: 100px; justify-content: center; padding: 10px 8px; font-size: 12px; }
    .visor-variantes { padding: 28px 4%; }
}

/* background-attachment fixed rompe en iOS Safari */
@media (max-width: 768px) {
    .franja-final { background-attachment: scroll; }
}

/* Evitar overflow horizontal global */
body { overflow-x: hidden; }
img, video { max-width: 100%; }


.constelacion {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
}

.scp-modern-container {
    position: relative;
    z-index: 2;
}
.ventaja-card {
    opacity: 0;
    transform: translateY(70px);
    filter: blur(6px);
    transition: all 0.8s cubic-bezier(0.16,1,0.3,1);
}