/* ============================================================
           ESTILOS COMPACTOS
           ============================================================ */
        :root {
            --primary-black: #030014;
            --neon-purple: #a855f7;
            --neon-orange: #ff6b35;
            --pure-white: #f0f0f0;
            --gray-sub: #8b8b9e;
            --glass-border: rgba(255, 255, 255, 0.12);
            --glass-blur: blur(25px) saturate(200%);
            --transition: all 0.6s cubic-bezier(0.25, 1, 0.5, 1);
            --success-green: #00c853;
        }

        * { margin: 0; padding: 0; box-sizing: border-box; }
        html { scroll-behavior: smooth; }

        body {
            background-color: var(--primary-black);
            color: var(--pure-white);
            font-family: 'Inter', sans-serif;
            overflow-x: hidden;
            line-height: 1.6;
        }

        /* FONDO */
        .liquid-ambient {
            position: fixed;
            top: 0; left: 0;
            width: 100vw; height: 100vh;
            z-index: -1;
            pointer-events: none;
            overflow: hidden;
        }
        .orb {
            position: absolute;
            border-radius: 50%;
            filter: blur(80px);
            opacity: 0.3;
        }
        .orb-1 { width: 600px; height: 600px; top: -10%; left: -5%; background: radial-gradient(circle, #a855f7 0%, transparent 70%); animation: floatOrb1 20s ease-in-out infinite; }
        .orb-2 { width: 500px; height: 500px; bottom: -10%; right: -5%; background: radial-gradient(circle, #ff6b35 0%, transparent 70%); animation: floatOrb2 25s ease-in-out infinite; }
        .orb-3 { width: 400px; height: 400px; top: 50%; left: 40%; background: radial-gradient(circle, #7c3aed 0%, transparent 70%); animation: floatOrb3 18s ease-in-out infinite; opacity: 0.15; }
        @keyframes floatOrb1 { 0%,100%{transform:translate(0,0)} 33%{transform:translate(80px,60px)} 66%{transform:translate(-40px,30px)} }
        @keyframes floatOrb2 { 0%,100%{transform:translate(0,0)} 33%{transform:translate(-60px,-80px)} 66%{transform:translate(50px,-30px)} }
        @keyframes floatOrb3 { 0%,100%{transform:translate(0,0)} 50%{transform:translate(100px,-60px)} }

        /* NAVEGACIÓN */
        .glass-nav {
            position: fixed;
            top: 20px; left: 50%;
            transform: translateX(-50%);
            width: 92%; max-width: 1400px;
            z-index: 1000;
            background: rgba(255, 255, 255, 0.03);
            backdrop-filter: var(--glass-blur);
            border: 1px solid var(--glass-border);
            border-radius: 24px;
            padding: 14px 40px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            box-shadow: 0 15px 35px rgba(0,0,0,0.5);
            transition: var(--transition);
        }
        .glass-nav.scrolled { background: rgba(3,0,20,0.85); }
        .nav-logo img { height: 40px; }
        .nav-links { display: flex; gap: 30px; align-items: center; }
        .nav-links a {
            color: rgba(255, 255, 255, 0.6);
            text-decoration: none;
            font-weight: 500;
            letter-spacing: 1px;
            font-size: 0.8rem;
            transition: var(--transition);
            text-transform: uppercase;
            font-family: 'Space Grotesk', monospace;
        }
        .nav-links a:hover, .nav-links a.active { color: var(--neon-purple); }
        .hamburger-menu { display: none; color: var(--neon-purple); font-size: 1.5rem; cursor: pointer; }

        /* HERO */
        .hero-venezuela {
            min-height: 30vh;
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            text-align: center;
            padding: 120px 20px 30px;
            border-bottom: 1px solid var(--glass-border);
        }
        .hero-venezuela .flag-icon { font-size: 3.5rem; margin-bottom: 10px; }
        .hero-venezuela h1 {
            font-family: 'Space Grotesk', monospace;
            font-size: 3.5rem;
            letter-spacing: 6px;
            text-transform: uppercase;
            font-weight: 700;
            background: linear-gradient(135deg, #fff 0%, #a855f7 50%, #ff6b35 100%);
            background-size: 200% 200%;
            animation: gradientShift 6s ease infinite;
            -webkit-background-clip: text;
            color: transparent;
        }
        @keyframes gradientShift { 0%,100%{background-position:0% 50%} 50%{background-position:100% 50%} }
        .hero-venezuela .subtitle {
            color: var(--neon-purple);
            letter-spacing: 8px;
            font-size: 0.8rem;
            font-weight: 500;
            text-transform: uppercase;
            font-family: 'Space Grotesk', monospace;
        }
        .hero-venezuela .hero-desc {
            margin-top: 15px;
            color: var(--gray-sub);
            font-size: 0.9rem;
        }
        .api-badge {
            display: inline-block;
            background: rgba(0,255,136,0.1);
            border: 1px solid #00ff88;
            border-radius: 30px;
            padding: 4px 16px;
            font-size: 0.6rem;
            color: #00ff88;
            font-family: 'Space Grotesk', monospace;
            letter-spacing: 1px;
            margin-top: 10px;
        }
        .notif-badge {
            display: inline-block;
            background: rgba(255,107,53,0.15);
            border: 1px solid var(--neon-orange);
            border-radius: 30px;
            padding: 4px 16px;
            font-size: 0.65rem;
            color: var(--neon-orange);
            font-family: 'Space Grotesk', monospace;
            letter-spacing: 1px;
            margin-top: 8px;
            animation: pulseBadge 2s infinite;
        }
        @keyframes pulseBadge {
            0%, 100% { opacity: 1; }
            50% { opacity: 0.6; }
        }

        /* ESTADÍSTICAS */
        .stats-bar {
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: 15px;
            max-width: 1400px;
            margin: 20px auto 40px;
            padding: 0 5%;
        }
        .stat-card {
            background: rgba(255,255,255,0.03);
            backdrop-filter: var(--glass-blur);
            border: 1px solid var(--glass-border);
            border-radius: 20px;
            padding: 18px 15px;
            text-align: center;
            transition: var(--transition);
        }
        .stat-card:hover { border-color: var(--neon-purple); transform: translateY(-5px); }
        .stat-card .stat-number {
            font-family: 'Space Grotesk', monospace;
            font-size: 1.8rem;
            font-weight: 700;
            background: linear-gradient(135deg, var(--neon-purple), var(--neon-orange));
            -webkit-background-clip: text;
            color: transparent;
        }
        .stat-card .stat-label {
            font-size: 0.65rem;
            text-transform: uppercase;
            letter-spacing: 2px;
            color: var(--gray-sub);
            margin-top: 4px;
            font-family: 'Space Grotesk', monospace;
        }

        /* SECCIÓN PRINCIPAL */
        .sismo-section {
            padding: 20px 5% 60px;
            max-width: 1400px;
            margin: 0 auto;
        }
        .sismo-section h2 {
            font-family: 'Space Grotesk', monospace;
            font-size: 1.8rem;
            text-transform: uppercase;
            border-left: 4px solid var(--neon-purple);
            padding-left: 20px;
            margin-bottom: 30px;
            font-weight: 600;
        }
        .sismo-main-grid {
            display: grid;
            grid-template-columns: 1.2fr 0.8fr;
            gap: 30px;
        }

        /* MAPA */
        .map-container {
            background: rgba(255,255,255,0.03);
            backdrop-filter: var(--glass-blur);
            border-radius: 28px;
            border: 1px solid var(--glass-border);
            overflow: hidden;
            height: 500px;
            position: relative;
        }
        #sismoMap {
            width: 100%;
            height: 100%;
            background: #0a0a1a;
        }
        .map-overlay-info {
            position: absolute;
            bottom: 20px;
            left: 20px;
            background: rgba(3,0,20,0.85);
            backdrop-filter: var(--glass-blur);
            padding: 8px 16px;
            border-radius: 12px;
            font-size: 0.7rem;
            color: var(--gray-sub);
            border: 1px solid var(--glass-border);
            pointer-events: none;
            z-index: 400;
        }

        /* LEYENDA DEL MAPA */
        .map-legend {
            position: absolute;
            top: 20px;
            right: 20px;
            background: rgba(3,0,20,0.88);
            backdrop-filter: var(--glass-blur);
            padding: 16px 18px;
            border-radius: 16px;
            border: 1px solid var(--glass-border);
            z-index: 400;
            min-width: 140px;
            pointer-events: none;
        }
        .map-legend .legend-title {
            font-size: 0.65rem;
            text-transform: uppercase;
            letter-spacing: 2px;
            color: var(--gray-sub);
            margin-bottom: 10px;
            font-family: 'Space Grotesk', monospace;
        }
        .map-legend .legend-item {
            display: flex;
            align-items: center;
            gap: 10px;
            margin-bottom: 6px;
            font-size: 0.75rem;
            color: var(--pure-white);
        }
        .map-legend .legend-item:last-child { margin-bottom: 0; }
        .map-legend .legend-dot {
            width: 14px;
            height: 14px;
            border-radius: 50%;
            flex-shrink: 0;
        }
        .map-legend .legend-dot.alta { background: #ff1744; }
        .map-legend .legend-dot.media { background: #ffab00; }
        .map-legend .legend-dot.baja { background: #ff6b35; }
        .map-legend .legend-dot.muy-baja { background: #00e676; }
        .map-legend .legend-dot.cercano { background: var(--neon-orange); border: 2px solid #fff; }

        /* LISTA DE SISMOS */
        .sismo-list-container {
            background: rgba(255,255,255,0.03);
            backdrop-filter: var(--glass-blur);
            border-radius: 28px;
            padding: 25px;
            border: 1px solid var(--glass-border);
            max-height: 500px;
            overflow-y: auto;
        }
        .sismo-list-container::-webkit-scrollbar { width: 5px; }
        .sismo-list-container::-webkit-scrollbar-track { background: transparent; }
        .sismo-list-container::-webkit-scrollbar-thumb {
            background: var(--neon-purple);
            border-radius: 10px;
        }

        .sismo-status {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 18px;
            padding-bottom: 12px;
            border-bottom: 1px solid var(--glass-border);
            flex-wrap: wrap;
            gap: 8px;
        }
        .sismo-status-left { display: flex; align-items: center; gap: 12px; }
        .sismo-pulse {
            width: 10px; height: 10px;
            border-radius: 50%;
            background: #00ff88;
            animation: sismoPulse 2s infinite;
        }
        @keyframes sismoPulse {
            0% { transform: scale(1); opacity: 1; }
            50% { transform: scale(1.5); opacity: 0.5; }
            100% { transform: scale(1); opacity: 1; }
        }
        .sismo-status-text {
            font-size: 0.8rem;
            color: var(--gray-sub);
            font-family: 'Space Grotesk', monospace;
            letter-spacing: 1px;
        }
        .sismo-badge-count {
            background: var(--neon-purple);
            padding: 3px 16px;
            border-radius: 30px;
            font-size: 0.8rem;
            font-weight: 700;
            color: #fff;
            font-family: 'Space Grotesk', monospace;
        }

        /* LEYENDA DE LA LISTA */
        .lista-leyenda {
            display: flex;
            flex-wrap: wrap;
            gap: 8px 16px;
            margin-bottom: 15px;
            padding: 10px 14px;
            background: rgba(255,255,255,0.03);
            border-radius: 12px;
            border: 1px solid var(--glass-border);
        }
        .lista-leyenda .leyenda-item {
            display: flex;
            align-items: center;
            gap: 6px;
            font-size: 0.65rem;
            color: var(--gray-sub);
        }
        .lista-leyenda .leyenda-barra {
            width: 20px;
            height: 4px;
            border-radius: 4px;
        }
        .lista-leyenda .leyenda-barra.alta { background: #ff1744; }
        .lista-leyenda .leyenda-barra.media { background: #ffab00; }
        .lista-leyenda .leyenda-barra.baja { background: #ff6b35; }
        .lista-leyenda .leyenda-barra.muy-baja { background: #00e676; }
        .lista-leyenda .leyenda-barra.cercano { background: var(--neon-orange); }

        /* ITEMS DE SISMOS */
        .sismo-item {
            background: rgba(255,255,255,0.03);
            margin-bottom: 10px;
            padding: 14px 18px;
            border-radius: 16px;
            border-left: 4px solid #00e676;
            transition: var(--transition);
            animation: sismoSlideIn 0.4s ease;
        }
        .sismo-item.cercano {
            border-left-color: var(--neon-orange);
            background: rgba(255,107,53,0.1);
        }
        .sismo-item.cercano .sismo-ubicacion::after {
            content: '📍 Cerca de ti';
            font-size: 0.65rem;
            color: var(--neon-orange);
            margin-left: 8px;
            background: rgba(255,107,53,0.15);
            padding: 2px 10px;
            border-radius: 12px;
        }
        @keyframes sismoSlideIn {
            from { opacity: 0; transform: translateX(-15px); }
            to { opacity: 1; transform: translateX(0); }
        }
        .sismo-item.new {
            border-left-color: var(--neon-orange);
            background: rgba(255,107,53,0.08);
            animation: sismoNewPulse 0.6s ease;
        }
        @keyframes sismoNewPulse {
            0% { transform: scale(1); }
            50% { transform: scale(1.02); background: rgba(255,107,53,0.15); }
            100% { transform: scale(1); }
        }
        .sismo-item.magnitud-alta { border-left-color: #ff1744; background: rgba(255,23,68,0.08); }
        .sismo-item.magnitud-media { border-left-color: #ffab00; background: rgba(255,171,0,0.06); }
        .sismo-item.magnitud-baja { border-left-color: #00e676; }

        .sismo-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            flex-wrap: wrap;
            gap: 6px;
            margin-bottom: 4px;
        }
        .sismo-ubicacion {
            font-weight: 500;
            font-size: 0.9rem;
            display: flex;
            align-items: center;
            gap: 8px;
            flex-wrap: wrap;
        }
        .sismo-magnitud {
            font-weight: 700;
            font-size: 1.1rem;
            font-family: 'Space Grotesk', monospace;
            padding: 1px 12px;
            border-radius: 20px;
            background: rgba(255,255,255,0.05);
        }
        .magnitud-alta .sismo-magnitud { color: #ff1744; }
        .magnitud-media .sismo-magnitud { color: #ffab00; }
        .magnitud-baja .sismo-magnitud { color: #00e676; }

        .sismo-detalles {
            display: flex;
            gap: 18px;
            flex-wrap: wrap;
            font-size: 0.75rem;
            color: var(--gray-sub);
        }
        .sismo-detalles span { display: flex; align-items: center; gap: 4px; }
        .sismo-tiempo { color: #00ff88; }
        .sismo-distancia { color: var(--neon-orange); }

        .sismo-empty {
            text-align: center;
            padding: 40px 20px;
            color: var(--gray-sub);
        }
        .sismo-empty .icon-big { font-size: 3rem; margin-bottom: 15px; display: block; }

        /* BOTÓN DE NOTIFICACIONES */
        .notif-control {
            margin-top: 30px;
            display: flex;
            flex-wrap: wrap;
            gap: 15px;
            justify-content: center;
            align-items: center;
        }
        .sismo-notif-btn {
            padding: 16px 40px;
            border: 1px solid var(--neon-purple);
            background: rgba(168,85,247,0.08);
            color: var(--pure-white);
            border-radius: 16px;
            font-family: 'Space Grotesk', monospace;
            font-size: 0.95rem;
            cursor: pointer;
            transition: var(--transition);
            display: flex;
            align-items: center;
            gap: 12px;
        }
        .sismo-notif-btn:hover {
            background: var(--neon-purple);
            box-shadow: 0 0 40px rgba(168,85,247,0.3);
            transform: scale(1.02);
        }
        .sismo-notif-btn.active {
            background: var(--success-green);
            border-color: var(--success-green);
        }
        .sismo-notif-btn .status-dot {
            width: 10px;
            height: 10px;
            border-radius: 50%;
            display: inline-block;
        }
        .sismo-notif-btn .status-dot.inactive { background: #ff1744; }
        .sismo-notif-btn .status-dot.active {
            background: #00e676;
            animation: sismoPulse 2s infinite;
        }

        .ubicacion-status {
            font-size: 0.8rem;
            color: var(--gray-sub);
            font-family: 'Space Grotesk', monospace;
            padding: 12px 20px;
            background: rgba(255,255,255,0.03);
            border-radius: 12px;
            border: 1px solid var(--glass-border);
        }

        /* ENLACES DE AYUDA */
        .help-section {
            margin-top: 30px;
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: 20px;
        }
        .help-card {
            background: rgba(255,255,255,0.03);
            backdrop-filter: var(--glass-blur);
            border-radius: 28px;
            padding: 25px 20px;
            border: 1px solid var(--glass-border);
            transition: var(--transition);
            cursor: pointer;
            text-align: center;
        }
        .help-card:hover {
            transform: translateY(-6px);
            border-color: var(--neon-purple);
        }
        .help-card a {
            color: var(--pure-white);
            text-decoration: none;
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 12px;
        }
        .help-card .help-icon { font-size: 3rem; line-height: 1; }
        .help-card .help-title {
            font-family: 'Space Grotesk', monospace;
            font-size: 1.1rem;
            font-weight: 600;
        }
        .help-card .help-desc {
            font-size: 0.8rem;
            color: var(--gray-sub);
        }
        .help-card .help-arrow {
            color: var(--neon-purple);
            font-size: 1.2rem;
            transition: var(--transition);
        }
        .help-card:hover .help-arrow { transform: translateX(8px); }

        /* TOAST */
        .sismo-toast {
            position: fixed;
            bottom: 30px;
            right: 30px;
            background: rgba(3,0,20,0.96);
            backdrop-filter: var(--glass-blur);
            border: 1px solid var(--neon-orange);
            border-radius: 20px;
            padding: 18px 24px;
            max-width: 380px;
            transform: translateX(120%);
            transition: transform 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
            z-index: 9998;
            box-shadow: 0 20px 60px rgba(0,0,0,0.8);
        }
        .sismo-toast.show { transform: translateX(0); }
        .sismo-toast .toast-title {
            font-weight: 700;
            color: var(--neon-orange);
            font-family: 'Space Grotesk', monospace;
        }
        .sismo-toast .toast-body {
            font-size: 0.9rem;
            margin-top: 5px;
            color: var(--gray-sub);
        }
        .sismo-toast .toast-time {
            font-size: 0.75rem;
            color: rgba(255,255,255,0.25);
            margin-top: 5px;
        }

        /* FOOTER */
        .footer-separator {
            width: 200px;
            height: 2px;
            margin: 60px auto 50px;
            background: linear-gradient(90deg, transparent, var(--neon-purple), var(--neon-orange), transparent);
        }
        footer {
            padding: 60px 5% 50px;
            text-align: center;
            color: var(--gray-sub);
        }
        .social {
            margin-bottom: 35px;
            display: flex;
            justify-content: center;
            gap: 30px;
        }
        .social a {
            color: var(--pure-white);
            text-decoration: none;
            font-size: 1.6rem;
            transition: var(--transition);
            width: 52px; height: 52px;
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: 16px;
            background: rgba(255,255,255,0.05);
            border: 1px solid var(--glass-border);
        }
        .social a:hover { color: var(--neon-purple); transform: translateY(-5px); }
        .footer-nav {
            margin-bottom: 25px;
            display: flex;
            justify-content: center;
            gap: 18px;
            flex-wrap: wrap;
        }
        .footer-nav a {
            color: var(--gray-sub);
            text-decoration: none;
            font-size: 0.85rem;
            transition: var(--transition);
            text-transform: uppercase;
            font-family: 'Space Grotesk', monospace;
            letter-spacing: 1px;
        }
        .footer-nav a:hover { color: var(--neon-orange); }
        footer p { font-size: 0.8rem; opacity: 0.5; }

        /* RESPONSIVE */
        @media (max-width: 900px) {
            .glass-nav { width: 95%; padding: 14px 22px; }
            .hamburger-menu { display: block; }
            .nav-links {
                position: absolute;
                top: calc(100% + 10px);
                left: 0;
                width: 100%;
                background: rgba(10, 10, 10, 0.92);
                backdrop-filter: var(--glass-blur);
                border-radius: 18px;
                flex-direction: column;
                padding: 25px 0;
                gap: 20px;
                border: 1px solid var(--glass-border);
                transform: translateY(-20px);
                opacity: 0;
                visibility: hidden;
                transition: var(--transition);
            }
            .nav-links.active {
                transform: translateY(0);
                opacity: 1;
                visibility: visible;
            }
            .sismo-main-grid { grid-template-columns: 1fr; }
            .stats-bar { grid-template-columns: repeat(2, 1fr); }
            .help-section { grid-template-columns: repeat(2, 1fr); }
            .map-container { height: 350px; }
        }
        @media (max-width: 600px) {
            .hero-venezuela h1 { font-size: 2rem; letter-spacing: 2px; }
            .sismo-list-container { max-height: 350px; padding: 14px; }
            .help-section { grid-template-columns: 1fr; }
            .map-container { height: 280px; }
            .stats-bar { grid-template-columns: 1fr 1fr; gap: 10px; }
            .stat-card .stat-number { font-size: 1.3rem; }
            .notif-control { flex-direction: column; width: 100%; }
            .sismo-notif-btn { width: 100%; justify-content: center; }
            .sismo-toast { left: 20px; right: 20px; max-width: none; bottom: 20px; }
        }
