/* ===== RESET & BASE ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
:root {
    --primary: #228ECC;
    --primary-dark: #1a6fa0;
    --primary-light: #4db0e6;
    --primary-ultra-light: #e8f4fc;
    --accent: #f59e0b;
    --accent-dark: #d97706;
    --white: #ffffff;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -2px rgba(0,0,0,0.1);
    --shadow-md: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -4px rgba(0,0,0,0.1);
    --shadow-lg: 0 20px 25px -5px rgba(0,0,0,0.1), 0 8px 10px -6px rgba(0,0,0,0.1);
    --shadow-xl: 0 25px 50px -12px rgba(0,0,0,0.25);
    --radius: 16px;
    --radius-sm: 10px;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
html { scroll-behavior: smooth; font-size: 16px; overflow-x: hidden; }
body {
    font-family: 'Inter', sans-serif;
    background: var(--white);
    color: var(--gray-800);
    overflow-x: hidden;
    line-height: 1.6;
}

/* ===== PRELOADER ===== */
.preloader {
    position: fixed; inset: 0; z-index: 99999;
    background: var(--white);
    display: flex; align-items: center; justify-content: center;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}
.preloader.hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.preloader-logo {
    width: 100px; height: 100px;
    animation: preloaderPulse 1.2s ease-in-out infinite;
}
@keyframes preloaderPulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.15); opacity: 0.7; }
}

/* ===== PARTICLES BACKGROUND ===== */
.particles-container {
    position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden;
}
.particle {
    position: absolute;
    border-radius: 50%;
    background: var(--primary);
    opacity: 0.06;
    animation: floatParticle linear infinite;
}
@keyframes floatParticle {
    0% { transform: translateY(100vh) rotate(0deg); opacity: 0; }
    10% { opacity: 0.06; }
    90% { opacity: 0.06; }
    100% { transform: translateY(-100px) rotate(720deg); opacity: 0; }
}

/* ===== NAVBAR ===== */
.navbar {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
    background: rgba(255,255,255,0.85);
    backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(34,142,204,0.08);
    transition: var(--transition);
    padding: 0;
}
.navbar.scrolled {
    background: rgba(255,255,255,0.95);
    box-shadow: 0 4px 30px rgba(34,142,204,0.1);
}
.nav-inner {
    max-width: 1280px; margin: 0 auto;
    display: flex; align-items: center; justify-content: space-between;
    padding: 12px 24px;
}
.nav-brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.nav-brand img { height: 44px; transition: var(--transition); }
.nav-brand:hover img { transform: scale(1.05); }
.nav-brand-text { display: flex; flex-direction: column; }
.nav-brand-title {
    font-family: 'Poppins', sans-serif;
    font-weight: 700; font-size: 1rem; color: var(--primary);
    line-height: 1.2;
}
.nav-brand-sub { font-size: 0.7rem; color: var(--gray-500); font-weight: 400; letter-spacing: 0.5px; }
.nav-links { display: flex; gap: 8px; align-items: center; }
.nav-link {
    text-decoration: none; color: var(--gray-600);
    font-size: 0.875rem; font-weight: 500;
    padding: 8px 16px; border-radius: 8px;
    transition: var(--transition); position: relative;
}
.nav-link:hover { color: var(--primary); background: var(--primary-ultra-light); }
.nav-link.active { color: var(--primary); background: var(--primary-ultra-light); }
.nav-cta {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--white) !important; border-radius: 10px !important;
    padding: 10px 20px !important; font-weight: 600 !important;
    box-shadow: 0 4px 15px rgba(34,142,204,0.3);
    transition: var(--transition);
}
.nav-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(34,142,204,0.4);
    background: linear-gradient(135deg, var(--primary-light), var(--primary)) !important;
}
.hamburger {
    display: none; flex-direction: column; gap: 5px;
    cursor: pointer; padding: 8px; background: none; border: none;
    z-index: 1001;
}
.hamburger span {
    width: 26px; height: 2.5px; background: var(--gray-700);
    border-radius: 4px; transition: var(--transition);
}
.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.active span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }
.mobile-menu {
    display: none; position: fixed; inset: 0; z-index: 999;
    background: rgba(255,255,255,0.98); backdrop-filter: blur(20px);
    flex-direction: column; align-items: center; justify-content: flex-start;
    padding-top: 80px;
    gap: 12px; opacity: 0; transform: translateY(-20px);
    transition: opacity 0.4s ease, transform 0.4s ease;
    overflow-y: auto;
    max-height: 100vh;
    padding-bottom: 40px;
}
.mobile-menu.active { display: flex; opacity: 1; transform: translateY(0); }
.mobile-menu .nav-link { font-size: 1.25rem; padding: 14px 32px; }

/* ===== LOGOS SEGÚN RESOLUCIÓN ===== */
.nav-logo-mobile { display: none; }
.nav-logo-desktop { display: block; }
.nav-mobile-letras { display: none; }
@media (max-width: 768px) {
    .nav-logo-desktop { display: none; }
    .nav-logo-mobile { display: block; height: 38px; }
    .nav-mobile-letras {
        display: flex; align-items: center; justify-content: center;
        flex: 1; padding: 0 8px;
    }
    .nav-mobile-letras img { height: 30px; object-fit: contain; }
    .nav-inner { display: grid; grid-template-columns: auto 1fr auto; align-items: center; }
    .nav-brand { min-width: 0; }
}

/* ===== NAVBAR DESKTOP INVERTIDO ===== */
@media (min-width: 769px) {
    .navbar {
        background: rgba(34,142,204,0.93);
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }
    .navbar.scrolled {
        background: rgba(26,111,160,0.98);
        box-shadow: 0 4px 30px rgba(0,0,0,0.18);
    }
    .nav-brand-title { color: var(--white); }
    .nav-brand-sub { color: rgba(255,255,255,0.65); }
    .nav-link { color: rgba(255,255,255,0.9); }
    .nav-link:hover { color: var(--white); background: rgba(255,255,255,0.12); }
    .nav-link.active { color: var(--white); background: rgba(255,255,255,0.15); }
    .nav-cta {
        background: var(--white) !important;
        color: var(--primary) !important;
        border: 2px solid var(--primary) !important;
        box-shadow: 0 4px 15px rgba(0,0,0,0.12);
    }
    .nav-cta:hover {
        background: var(--primary-ultra-light) !important;
        color: var(--primary-dark) !important;
        border-color: var(--primary-dark) !important;
        box-shadow: 0 8px 25px rgba(0,0,0,0.18);
        transform: translateY(-2px);
    }
}

/* ===== DROPDOWN NAV ===== */
.nav-dropdown {
    position: relative;
    display: inline-block;
}
.nav-dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    text-decoration: none;
    color: rgba(255,255,255,0.9);
    font-size: 0.875rem;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 8px;
    transition: var(--transition);
}
.nav-dropdown-toggle i {
    font-size: 0.75rem;
    transition: transform var(--transition);
}
.nav-dropdown:hover .nav-dropdown-toggle i {
    transform: rotate(180deg);
}
.nav-dropdown-toggle:hover {
    color: var(--white);
    background: rgba(255,255,255,0.12);
}
.nav-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--white);
    border-radius: var(--radius-sm);
    min-width: 320px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--gray-200);
    padding: 10px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
    z-index: 1010;
}
.nav-dropdown:hover .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.nav-dropdown-item {
    display: block;
    padding: 10px 20px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--gray-700);
    text-decoration: none;
    transition: var(--transition);
}
.nav-dropdown-item:hover {
    background: var(--primary-ultra-light);
    color: var(--primary);
    padding-left: 24px;
}

/* Responsive changes for mobile menu dropdown */
.mobile-dropdown {
    width: 100%;
    text-align: center;
}
.mobile-dropdown-toggle {
    width: 100%;
    background: none;
    border: none;
    font-family: 'Inter', sans-serif;
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--gray-600);
    padding: 14px 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
}
.mobile-dropdown-toggle i {
    font-size: 0.9rem;
    transition: transform 0.3s;
}
.mobile-dropdown.active .mobile-dropdown-toggle i {
    transform: rotate(180deg);
}
.mobile-dropdown-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
    background: var(--gray-50);
    display: flex;
    flex-direction: column;
    align-items: center;
}
.mobile-dropdown.active .mobile-dropdown-menu {
    max-height: 400px;
    overflow-y: auto;
    border-top: 1px solid var(--gray-100);
    border-bottom: 1px solid var(--gray-100);
    padding: 8px 0;
}
.mobile-dropdown-item {
    display: block;
    width: 100%;
    padding: 10px 24px;
    font-size: 1.05rem;
    color: var(--gray-600);
    text-decoration: none;
    transition: var(--transition);
    text-align: center;
}
.mobile-dropdown-item:hover {
    color: var(--primary);
    background: var(--primary-ultra-light);
}

/* ===== HERO ===== */
.hero {
    min-height: 100vh; display: flex; align-items: center; justify-content: center;
    position: relative; overflow: hidden;
    background: linear-gradient(165deg, var(--white) 0%, var(--primary-ultra-light) 40%, var(--white) 100%);
    padding: 120px 24px 80px;
}
.hero-video-bg {
    position: absolute; inset: 0; width: 100%; height: 100%;
    overflow: hidden; z-index: 0; pointer-events: none;
}
.hero-video-bg video {
    width: 100%; height: 100%; object-fit: cover; object-position: center;
    filter: brightness(1.15) saturate(1.15); opacity: 0.42;
}
.hero-video-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(165deg, rgba(255,255,255,0.72) 0%, rgba(232,244,252,0.58) 45%, rgba(255,255,255,0.75) 100%);
}
.hero::before {
    content: ''; position: absolute; top: -50%; right: -20%;
    width: 800px; height: 800px; border-radius: 50%;
    background: radial-gradient(circle, rgba(34,142,204,0.08) 0%, transparent 70%);
    animation: heroOrb1 20s ease-in-out infinite;
}
.hero::after {
    content: ''; position: absolute; bottom: -30%; left: -15%;
    width: 600px; height: 600px; border-radius: 50%;
    background: radial-gradient(circle, rgba(34,142,204,0.06) 0%, transparent 70%);
    animation: heroOrb2 25s ease-in-out infinite;
}
@keyframes heroOrb1 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(-80px, 80px) scale(1.1); }
}
@keyframes heroOrb2 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(60px, -60px) scale(1.15); }
}
.hero-content {
    max-width: 1280px; width: 100%; margin: 0 auto;
    display: grid; grid-template-columns: 1fr 1fr; gap: 60px;
    align-items: center; position: relative; z-index: 1;
}
.hero-text { animation: fadeInUp 1s ease 0.2s both; }
.hero-badge {
    display: inline-flex; align-items: center; gap: 8px;
    background: var(--primary-ultra-light); color: var(--primary);
    padding: 8px 18px; border-radius: 50px; font-size: 0.85rem; font-weight: 600;
    margin-bottom: 24px; border: 1px solid rgba(34,142,204,0.15);
    animation: fadeInUp 1s ease 0.3s both;
}
.hero-badge i { font-size: 0.75rem; }
.hero-badge .pulse-dot {
    width: 8px; height: 8px; background: var(--primary); border-radius: 50%;
    animation: pulseDot 2s ease infinite;
}
@keyframes pulseDot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.5); }
}
.hero h1 {
    font-family: 'Poppins', sans-serif;
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    font-weight: 800; line-height: 1.1;
    color: var(--gray-900); margin-bottom: 20px;
    animation: fadeInUp 1s ease 0.4s both;
}
.hero h1 span {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
}
.hero-description {
    font-size: 1.15rem; color: var(--gray-600); max-width: 520px;
    margin-bottom: 36px; line-height: 1.7;
    animation: fadeInUp 1s ease 0.5s both;
}
.hero-actions {
    display: flex; gap: 16px; flex-wrap: wrap;
    animation: fadeInUp 1s ease 0.6s both;
}
.btn {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 14px 30px; border-radius: 12px;
    font-size: 1rem; font-weight: 600; text-decoration: none;
    transition: var(--transition); cursor: pointer; border: none;
    font-family: 'Inter', sans-serif;
}
.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--white);
    box-shadow: 0 8px 30px rgba(34,142,204,0.35);
}
.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(34,142,204,0.45);
}
.btn-outline {
    background: var(--white); color: var(--primary);
    border: 2px solid rgba(34,142,204,0.2);
    box-shadow: var(--shadow-sm);
}
.btn-outline:hover {
    border-color: var(--primary); background: var(--primary-ultra-light);
    transform: translateY(-3px); box-shadow: var(--shadow-md);
}
.hero-features {
    display: flex; gap: 16px; margin-top: 40px; flex-wrap: wrap;
    animation: fadeInUp 1s ease 0.7s both;
}
.hero-feature {
    display: flex; align-items: center; gap: 10px;
    background: var(--white); border: 1px solid var(--gray-100);
    border-radius: 12px; padding: 12px 16px;
    box-shadow: var(--shadow-sm); flex: 1; min-width: 140px;
    transition: var(--transition);
}
.hero-feature:hover {
    border-color: rgba(34,142,204,0.25); box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}
.hero-feature-icon {
    width: 36px; height: 36px; border-radius: 9px; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.95rem;
}
.hero-feature-text { font-size: 0.8rem; font-weight: 600; color: var(--gray-700); line-height: 1.3; }
.hero-feature-sub { font-size: 0.7rem; color: var(--gray-400); font-weight: 400; margin-top: 1px; }

.hero-visual {
    display: flex; align-items: center; justify-content: center;
    position: relative;
    animation: fadeInRight 1s ease 0.5s both;
}
.hero-logo-wrapper {
    position: relative; width: 380px; height: 380px;
    display: flex; align-items: center; justify-content: center;
}
.hero-logo-ring {
    position: absolute; inset: 0; border-radius: 50%;
    border: 2px dashed rgba(34,142,204,0.15);
    animation: spinSlow 40s linear infinite;
}
.hero-logo-ring:nth-child(2) {
    inset: 20px; border-style: dotted;
    animation-direction: reverse; animation-duration: 30s;
    border-color: rgba(34,142,204,0.1);
}
.hero-logo-ring:nth-child(3) {
    inset: 40px; border-style: solid; border-width: 1px;
    animation-duration: 50s;
    border-color: rgba(34,142,204,0.08);
}
@keyframes spinSlow { 0% { transform: rotate(0); } 100% { transform: rotate(360deg); } }
.hero-logo-img {
    width: 200px; height: 200px; object-fit: contain;
    filter: drop-shadow(0 20px 40px rgba(34,142,204,0.2));
    animation: floatLogo 6s ease-in-out infinite;
    z-index: 2; position: relative;
}
@keyframes floatLogo {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}
.hero-floating-card {
    position: absolute; background: var(--white);
    border-radius: 14px; padding: 14px 18px;
    box-shadow: var(--shadow-lg); z-index: 3;
    display: flex; align-items: center; gap: 10px;
    animation: floatCard 5s ease-in-out infinite;
    border: 1px solid rgba(34,142,204,0.08);
}
.hero-floating-card:nth-child(5) { top: 30px; right: -20px; animation-delay: 0s; }
.hero-floating-card:nth-child(6) { bottom: 40px; left: -30px; animation-delay: 1.5s; }
.hero-floating-card:nth-child(7) { bottom: -10px; right: 20px; animation-delay: 3s; }
@keyframes floatCard {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}
.hero-floating-icon {
    width: 40px; height: 40px; border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.1rem; color: var(--white); flex-shrink: 0;
}
.hero-floating-text { font-size: 0.78rem; font-weight: 600; color: var(--gray-700); line-height: 1.3; }
.hero-floating-sub { font-size: 0.68rem; color: var(--gray-500); font-weight: 400; }

/* ===== SCROLL INDICATOR ===== */
.scroll-indicator {
    position: absolute; bottom: 30px; left: 50%;
    transform: translateX(-50%); z-index: 2;
    display: flex; flex-direction: column; align-items: center; gap: 8px;
    animation: fadeInUp 1s ease 1s both;
}
.scroll-indicator span { font-size: 0.75rem; color: var(--gray-400); font-weight: 500; letter-spacing: 1px; text-transform: uppercase; }
.scroll-mouse {
    width: 26px; height: 40px; border: 2px solid var(--gray-300); border-radius: 13px;
    position: relative;
}
.scroll-mouse::before {
    content: ''; position: absolute; top: 6px; left: 50%; transform: translateX(-50%);
    width: 4px; height: 8px; background: var(--primary); border-radius: 2px;
    animation: scrollWheel 2s ease infinite;
}
@keyframes scrollWheel {
    0% { opacity: 1; transform: translateX(-50%) translateY(0); }
    100% { opacity: 0; transform: translateX(-50%) translateY(14px); }
}

/* ===== HERO DARK MODE (NOCHE) ===== */
.hero.hero-dark-mode,
.hero.hero-period-noche {
    background: linear-gradient(165deg, #0b1329 0%, #0f172a 40%, #080e1e 100%);
    color: #f8fafc;
}

.hero.hero-dark-mode .hero-video-bg video {
    filter: brightness(0.85) contrast(1.15) saturate(1.2);
    opacity: 0.65;
}

.hero.hero-dark-mode .hero-video-overlay,
.hero.hero-period-noche .hero-video-overlay {
    background: linear-gradient(
        165deg,
        rgba(0, 0, 0, 0.78) 0%,
        rgba(0, 0, 0, 0.58) 45%,
        rgba(0, 0, 0, 0.85) 100%
    );
}

.hero.hero-dark-mode::before {
    background: radial-gradient(circle, rgba(56, 189, 248, 0.12) 0%, transparent 70%);
}
.hero.hero-dark-mode::after {
    background: radial-gradient(circle, rgba(124, 58, 237, 0.1) 0%, transparent 70%);
}

.hero.hero-dark-mode h1 {
    color: #ffffff;
    text-shadow: 0 4px 25px rgba(0, 0, 0, 0.5);
}

.hero.hero-dark-mode h1 span {
    background: linear-gradient(135deg, #38bdf8, #818cf8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero.hero-dark-mode .hero-description {
    color: #cbd5e1;
}

.hero.hero-dark-mode .hero-badge {
    background: rgba(15, 23, 42, 0.75);
    color: #38bdf8;
    border-color: rgba(56, 189, 248, 0.3);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.hero.hero-dark-mode .hero-badge .pulse-dot {
    background: #38bdf8;
    box-shadow: 0 0 10px #38bdf8;
}

.hero.hero-dark-mode .btn-outline {
    background: rgba(15, 23, 42, 0.65);
    color: #38bdf8;
    border-color: rgba(56, 189, 248, 0.35);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.hero.hero-dark-mode .btn-outline:hover {
    background: rgba(56, 189, 248, 0.2);
    border-color: #38bdf8;
    color: #ffffff;
    box-shadow: 0 8px 30px rgba(56, 189, 248, 0.3);
}

.hero.hero-dark-mode .hero-feature {
    background: rgba(15, 23, 42, 0.7);
    border-color: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.hero.hero-dark-mode .hero-feature:hover {
    border-color: rgba(56, 189, 248, 0.4);
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
}

.hero.hero-dark-mode .hero-feature-text {
    color: #f1f5f9;
}

.hero.hero-dark-mode .hero-feature-sub {
    color: #94a3b8;
}

.hero.hero-dark-mode .hero-logo-ring {
    border-color: rgba(56, 189, 248, 0.2);
}

.hero.hero-dark-mode .hero-logo-img {
    filter: drop-shadow(0 0 35px rgba(56, 189, 248, 0.35)) drop-shadow(0 20px 40px rgba(0, 0, 0, 0.6));
}

.hero.hero-dark-mode .hero-floating-card {
    background: rgba(15, 23, 42, 0.82);
    border-color: rgba(56, 189, 248, 0.25);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
}

.hero.hero-dark-mode .hero-floating-text {
    color: #f8fafc;
}

.hero.hero-dark-mode .hero-floating-sub {
    color: #94a3b8;
}

.hero.hero-dark-mode .scroll-indicator span {
    color: #94a3b8;
}

.hero.hero-dark-mode .scroll-mouse {
    border-color: rgba(255, 255, 255, 0.25);
}

.hero.hero-dark-mode .scroll-mouse::before {
    background: #38bdf8;
    box-shadow: 0 0 8px #38bdf8;
}


/* ===== SECTION BASE ===== */
.section {
    padding: 100px 24px; position: relative; z-index: 1;
}
.section-header {
    text-align: center; max-width: 680px; margin: 0 auto 64px;
}
.section-tag {
    display: inline-flex; align-items: center; gap: 8px;
    background: var(--primary-ultra-light); color: var(--primary);
    padding: 6px 16px; border-radius: 50px; font-size: 0.8rem; font-weight: 600;
    margin-bottom: 16px; border: 1px solid rgba(34,142,204,0.12);
    text-transform: uppercase; letter-spacing: 0.5px;
}
.section-title {
    font-family: 'Poppins', sans-serif;
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 800; color: var(--gray-900);
    margin-bottom: 16px; line-height: 1.15;
}
.section-title span {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
}
.mobile-br { display: none; }
.section-desc {
    font-size: 1.1rem; color: var(--gray-500); line-height: 1.7;
}

/* ===== SERVICES / ACCESOS ===== */
.services-section { background: var(--gray-50); }
.services-grid {
    max-width: 1280px; margin: 0 auto;
    display: flex; flex-wrap: wrap; justify-content: center; gap: 28px;
}
.service-card {
    background: var(--white); border-radius: var(--radius);
    padding: 36px 28px; text-align: center;
    flex: 0 1 calc(33.333% - 20px); min-width: 280px; max-width: 400px;
    box-shadow: var(--shadow-sm); border: 1px solid var(--gray-100);
    transition: var(--transition); position: relative;
    overflow: hidden; cursor: pointer; text-decoration: none;
    display: block;
}
.service-card::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0;
    height: 4px; background: linear-gradient(90deg, var(--primary), var(--primary-light));
    transform: scaleX(0); transition: transform 0.4s ease;
    transform-origin: left;
}
.service-card:hover::before { transform: scaleX(1); }
.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: rgba(34,142,204,0.15);
}
.service-icon {
    width: 72px; height: 72px; border-radius: 18px;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 20px; font-size: 1.8rem;
    transition: var(--transition);
}
.service-card:hover .service-icon { transform: scale(1.1) rotate(-5deg); }
.icon-blue { background: linear-gradient(135deg, #e0f2fe, #bae6fd); color: #0284c7; }
.icon-green { background: linear-gradient(135deg, #d1fae5, #a7f3d0); color: #059669; }
.icon-purple { background: linear-gradient(135deg, #ede9fe, #ddd6fe); color: #7c3aed; }
.icon-orange { background: linear-gradient(135deg, #ffedd5, #fed7aa); color: #ea580c; }
.icon-red { background: linear-gradient(135deg, #ffe4e6, #fecdd3); color: #e11d48; }
.icon-teal { background: linear-gradient(135deg, #ccfbf1, #99f6e4); color: #0d9488; }
.icon-amber { background: linear-gradient(135deg, #fef3c7, #fde68a); color: #b45309; }
.service-title {
    font-family: 'Poppins', sans-serif;
    font-size: 1.15rem; font-weight: 700; color: var(--gray-800);
    margin-bottom: 10px;
}
.service-desc { font-size: 0.9rem; color: var(--gray-500); line-height: 1.6; margin-bottom: 20px; }
.service-link {
    display: inline-flex; align-items: center; gap: 6px;
    color: var(--primary); font-weight: 600; font-size: 0.875rem;
    transition: var(--transition);
}
.service-card:hover .service-link { gap: 10px; }
.service-link i { font-size: 0.75rem; transition: var(--transition); }

/* ===== NOTICIAS DESTACADAS ===== */
.news-section { background: var(--white); }
.news-grid {
    max-width: 1280px; margin: 0 auto;
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px;
}
.news-card {
    background: var(--white); border-radius: var(--radius);
    overflow: hidden; box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-100);
    transition: var(--transition); text-decoration: none; display: block;
}
.news-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.news-img {
    height: 200px; background: linear-gradient(135deg, var(--primary-ultra-light), #dbeafe);
    display: flex; align-items: center; justify-content: center;
    position: relative; overflow: hidden;
}
.news-img i { font-size: 3rem; color: var(--primary); opacity: 0.4; }
.news-img::after {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(180deg, transparent 60%, rgba(255,255,255,0.8));
}
.news-date {
    position: absolute; top: 16px; left: 16px; z-index: 2;
    background: var(--primary); color: var(--white);
    padding: 6px 14px; border-radius: 8px; font-size: 0.75rem; font-weight: 700;
}
.news-body { padding: 24px; }
.news-tag {
    font-size: 0.7rem; font-weight: 700; text-transform: uppercase;
    color: var(--primary); letter-spacing: 1px; margin-bottom: 8px;
}
.news-title {
    font-family: 'Poppins', sans-serif;
    font-size: 1.1rem; font-weight: 700; color: var(--gray-800);
    margin-bottom: 10px; line-height: 1.4;
}
.news-excerpt { font-size: 0.875rem; color: var(--gray-500); line-height: 1.6; }

/* ===== BANNER CTA ===== */
.cta-banner {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 50%, #1565a0 100%);
    padding: 80px 24px; text-align: center; position: relative; overflow: hidden;
}
.cta-banner::before {
    content: ''; position: absolute; top: -50%; left: -50%;
    width: 200%; height: 200%;
    background: radial-gradient(circle at 30% 50%, rgba(255,255,255,0.08) 0%, transparent 50%);
}
.cta-banner::after {
    content: ''; position: absolute; inset: 0;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60'%3E%3Cpath d='M30 0L60 30L30 60L0 30z' fill='none' stroke='rgba(255,255,255,0.04)' stroke-width='1'/%3E%3C/svg%3E");
}
.cta-content { position: relative; z-index: 1; max-width: 700px; margin: 0 auto; }
.cta-banner h2 {
    font-family: 'Poppins', sans-serif;
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 800; color: var(--white); margin-bottom: 16px;
}
.cta-banner p { color: rgba(255,255,255,0.85); font-size: 1.1rem; margin-bottom: 32px; line-height: 1.7; }
.btn-white {
    background: var(--white); color: var(--primary);
    padding: 16px 36px; border-radius: 12px;
    font-size: 1rem; font-weight: 700; text-decoration: none;
    display: inline-flex; align-items: center; gap: 10px;
    transition: var(--transition);
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}
.btn-white:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.2);
}

/* ===== CONTACTO ===== */
.contact-section { background: var(--white); }
.contact-grid {
    max-width: 1280px; margin: 0 auto;
    display: grid; grid-template-columns: 1fr 1fr; gap: 48px;
    align-items: start;
}
.contact-info { display: flex; flex-direction: column; gap: 24px; }
.contact-item {
    display: flex; gap: 16px; align-items: flex-start;
    padding: 20px; background: var(--gray-50);
    border-radius: var(--radius-sm); transition: var(--transition);
}
.contact-item:hover { background: var(--primary-ultra-light); transform: translateX(4px); }
.contact-item-icon {
    width: 48px; height: 48px; border-radius: 12px; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--white); font-size: 1.1rem;
}
.contact-item h4 { font-weight: 700; color: var(--gray-800); margin-bottom: 4px; font-size: 0.95rem; }
.contact-item p { font-size: 0.875rem; color: var(--gray-500); }
.contact-map {
    border-radius: var(--radius);
    overflow: hidden; box-shadow: var(--shadow-md);
    border: 1px solid var(--gray-100);
}
.contact-map iframe {
    width: 100%; height: 420px; border: 0;
}

/* ===== FOOTER ===== */
.footer {
    background: var(--gray-900); color: var(--gray-300);
    padding: 60px 24px 0;
}
.footer-grid {
    max-width: 1280px; margin: 0 auto;
    display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px;
}
.footer-brand img { height: 70px; margin-bottom: 16px; }
.footer-desc { font-size: 0.875rem; color: var(--gray-500); line-height: 1.7; margin-bottom: 20px; }
.footer-socials { display: flex; gap: 10px; }
.footer-social {
    width: 40px; height: 40px; border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    background: rgba(255,255,255,0.06); color: var(--gray-400);
    transition: var(--transition); text-decoration: none; font-size: 1rem;
}
.footer-social:hover { background: var(--primary); color: var(--white); transform: translateY(-3px); }
.footer h4 {
    font-family: 'Poppins', sans-serif;
    font-weight: 700; color: var(--white); margin-bottom: 20px;
    font-size: 1rem;
}
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-links a {
    color: var(--gray-500); text-decoration: none; font-size: 0.875rem;
    transition: var(--transition); display: flex; align-items: center; gap: 6px;
}
.footer-links a:hover { color: var(--primary-light); transform: translateX(4px); }
.footer-links a i { font-size: 0.6rem; }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.06);
    margin-top: 48px; padding: 24px 0;
    text-align: center; font-size: 0.8rem; color: var(--gray-600);
}

/* ===== BACK TO TOP ===== */
.back-to-top {
    position: fixed; bottom: 30px; right: 30px; z-index: 999;
    width: 50px; height: 50px; border-radius: 14px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--white); border: none; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.1rem;
    box-shadow: 0 8px 30px rgba(34,142,204,0.35);
    opacity: 0; visibility: hidden; transform: translateY(20px);
    transition: var(--transition);
}
.back-to-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { transform: translateY(-4px); box-shadow: 0 12px 40px rgba(34,142,204,0.5); }

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInRight {
    from { opacity: 0; transform: translateX(40px); }
    to { opacity: 1; transform: translateX(0); }
}
@keyframes fadeInLeft {
    from { opacity: 0; transform: translateX(-40px); }
    to { opacity: 1; transform: translateX(0); }
}
.reveal {
    opacity: 0; transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal.active { opacity: 1; transform: translateY(0); }
.reveal-left {
    opacity: 0; transform: translateX(-40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal-left.active { opacity: 1; transform: translateX(0); }
.reveal-right {
    opacity: 0; transform: translateX(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal-right.active { opacity: 1; transform: translateX(0); }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .hero-content { grid-template-columns: 1fr; text-align: center; }
    .hero-description { margin-left: auto; margin-right: auto; }
    .hero-actions { justify-content: center; }
    .hero-stats { justify-content: center; }
    .hero-visual { order: -1; }
    .hero-logo-wrapper { width: 280px; height: 280px; }
    .hero-logo-img { width: 150px; height: 150px; }
    .hero-floating-card:nth-child(5) { top: 10px; right: 0; }
    .hero-floating-card:nth-child(6) { bottom: 20px; left: -10px; }
    .hero-floating-card:nth-child(7) { display: none; }
    .services-grid { justify-content: center; }
    .services-grid .service-card { flex: 0 1 calc(50% - 14px); }
    .news-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
}
/* ===== HERO MOBILE APP-STYLE ===== */
.hero-mobile {
    display: none;
}

@media (max-width: 768px) {
    .nav-links { display: none; }
    .hamburger { display: flex; }
    .section { padding: 70px 20px; }
    .services-grid { max-width: 480px; }
    .services-grid .service-card { flex: 0 1 100%; min-width: 0; max-width: none; }
    .services-grid .service-card .service-desc { font-size: 0.8rem; }
    .services-grid .service-card .service-icon { width: 56px; height: 56px; font-size: 1.4rem; }
    .services-section .section-title .mobile-br { display: inline; }
    .news-grid { grid-template-columns: 1fr; max-width: 480px; }
    .contact-grid { grid-template-columns: 1fr; }
    .contact-map iframe { height: 300px; }
    .footer-grid { grid-template-columns: 1fr; text-align: center; }
    .footer-socials { justify-content: center; }

    /* Ocultar hero desktop, mostrar hero mobile */
    .hero {
        min-height: 100dvh; padding: 0;
        background: linear-gradient(160deg, #0c1b2e 0%, #122a4a 30%, #1a3a5c 55%, #228ECC 100%);
        align-items: stretch;
    }
    .hero-video-bg {
        z-index: 1;
    }
    .hero-video-bg video {
        opacity: 0.58;
        filter: brightness(0.78) saturate(1.2);
    }
    .hero-video-overlay {
        background: linear-gradient(160deg, rgba(12,27,46,0.65) 0%, rgba(18,42,74,0.58) 40%, rgba(34,142,204,0.5) 100%);
    }
    .hero::before, .hero::after { display: none; }
    .hero-content { display: none; }
    .scroll-indicator { display: none; }

    .hero-mobile {
        display: flex; flex-direction: column;
        align-items: center; justify-content: center;
        width: 100%; min-height: 100dvh;
        padding: 80px 20px 20px;
        position: relative; z-index: 2;
        text-align: center;
        animation: fadeInUp 0.8s ease both;
        overflow: hidden;
    }

    /* Títulos mobile */
    .hero-mobile-tag {
        display: inline-flex; align-items: center; gap: 6px;
        background: rgba(255,255,255,0.1);
        border: 1px solid rgba(255,255,255,0.15);
        backdrop-filter: blur(10px);
        color: rgba(255,255,255,0.85);
        padding: 6px 16px; border-radius: 50px;
        font-size: 0.72rem; font-weight: 600;
        text-transform: uppercase; letter-spacing: 1.5px;
        margin-bottom: 16px;
        animation: fadeInUp 0.8s ease 0.15s both;
        position: relative; z-index: 3;
    }
    .hero-mobile-tag .m-pulse {
        width: 6px; height: 6px; background: #4ade80;
        border-radius: 50%; animation: pulseDot 2s ease infinite;
    }

    .hero-mobile h1 {
        font-family: 'Poppins', sans-serif;
        font-size: clamp(1.6rem, 7.5vw, 2.4rem); font-weight: 800;
        color: #ffffff; line-height: 1.15;
        white-space: nowrap;
        margin-bottom: 12px;
        animation: fadeInUp 0.8s ease 0.2s both;
        position: relative; z-index: 3;
    }
    .hero-mobile h1 span {
        background: linear-gradient(135deg, #4db0e6, #79d4ff);
        -webkit-background-clip: text; -webkit-text-fill-color: transparent;
        background-clip: text;
    }

    .hero-mobile-subtitle {
        font-size: 0.92rem; color: rgba(255,255,255,0.65);
        line-height: 1.6; max-width: 340px; margin: 0 auto 20px;
        animation: fadeInUp 0.8s ease 0.3s both;
        position: relative; z-index: 3;
    }

    /* Grilla de accesos rápidos estilo app */
    .hero-mobile-grid {
        display: grid; grid-template-columns: repeat(3, 1fr);
        gap: 10px; width: 100%; max-width: 360px;
        margin-bottom: 16px;
        animation: fadeInUp 0.8s ease 0.4s both;
        position: relative; z-index: 3;
    }
    .hero-mobile-card {
        background: rgba(255,255,255,0.08);
        border: 1px solid rgba(255,255,255,0.1);
        backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
        border-radius: 16px; padding: 18px 8px 14px;
        text-decoration: none; color: #fff;
        display: flex; flex-direction: column;
        align-items: center; gap: 8px;
        transition: transform 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
    }
    .hero-mobile-card:active {
        transform: scale(0.95);
        background: rgba(255,255,255,0.15);
    }
    .hero-mobile-card-icon {
        width: 46px; height: 46px; border-radius: 14px;
        display: flex; align-items: center; justify-content: center;
        font-size: 1.2rem; color: #fff;
        box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    }
    .hero-mobile-card-label {
        font-size: 0.68rem; font-weight: 600;
        color: rgba(255,255,255,0.9);
        line-height: 1.25; text-align: center;
    }

    /* CTA principal mobile */
    .hero-mobile-cta {
        display: flex; align-items: center; justify-content: center;
        gap: 10px; width: 100%; max-width: 360px;
        padding: 14px 24px; border-radius: 14px;
        background: linear-gradient(135deg, #fff, #f0f7ff);
        color: var(--primary-dark); font-weight: 700;
        font-size: 0.95rem; text-decoration: none;
        box-shadow: 0 8px 32px rgba(0,0,0,0.2);
        transition: transform 0.25s ease;
        animation: fadeInUp 0.8s ease 0.55s both;
        position: relative; z-index: 3;
        border: none; cursor: pointer;
        font-family: 'Inter', sans-serif;
    }
    .hero-mobile-cta:active {
        transform: scale(0.97);
    }
    .hero-mobile-cta i {
        font-size: 1rem;
    }

    /* Stats compactos mobile */
    .hero-mobile-stats {
        display: flex; gap: 28px; margin-top: 16px;
        margin-bottom: 0; padding-bottom: 12px;
        animation: fadeInUp 0.8s ease 0.65s both;
        position: relative; z-index: 3;
    }
    .hero-mobile-stat {
        text-align: center;
    }
    .hero-mobile-stat-number {
        font-family: 'Poppins', sans-serif;
        font-size: 1.4rem; font-weight: 800; color: #fff;
        line-height: 1.2;
    }
    .hero-mobile-stat-label {
        font-size: 0.62rem; color: rgba(255,255,255,0.45);
        text-transform: uppercase; letter-spacing: 0.5px;
        font-weight: 500; margin-top: 2px;
    }

    /* Indicador de scroll mobile - oculto */
    .hero-mobile-scroll {
        display: none;
    }
}
@media (max-width: 480px) {
    .hero-actions { flex-direction: column; align-items: center; }
    .hero-stats { flex-direction: column; gap: 20px; }
}

/* ===== WAVE SEPARATOR ===== */
.wave-separator {
    position: relative; overflow: hidden; line-height: 0;
}
.wave-separator svg {
    display: block; width: 100%; height: auto;
}
.wave-top { margin-bottom: -2px; }
.wave-bottom { margin-top: -2px; }

/* ===== MARQUEE ===== */
.marquee-bar {
    background: linear-gradient(90deg, var(--primary), var(--primary-dark));
    padding: 10px 0; overflow: hidden; position: relative; z-index: 1;
}
.marquee-content {
    display: flex; white-space: nowrap;
    animation: marqueeScroll 30s linear infinite;
}
.marquee-item {
    display: inline-flex; align-items: center; gap: 8px;
    color: rgba(255,255,255,0.9); font-size: 0.85rem; font-weight: 500;
    padding: 0 32px;
}
.marquee-item i { color: rgba(255,255,255,0.6); }
@keyframes marqueeScroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ===== TOOLTIP ACCESOS RAPIDOS ===== */
.quick-access {
    position: fixed; right: 0; top: 50%; transform: translateY(-50%);
    z-index: 998; display: flex; flex-direction: column; gap: 6px;
    align-items: flex-end;
}
.quick-btn {
    width: 52px; height: 52px; border-radius: 14px 0 0 14px;
    display: flex; align-items: center; justify-content: flex-start;
    color: var(--white); font-size: 1.1rem; text-decoration: none;
    transition: width 0.35s cubic-bezier(0.4,0,0.2,1);
    box-shadow: -4px 4px 20px rgba(0,0,0,0.15);
    overflow: hidden; cursor: pointer;
}
.quick-btn i {
    flex-shrink: 0;
    width: 52px; min-width: 52px;
    text-align: center; font-size: 1.1rem;
}
.quick-btn:hover { width: 210px; box-shadow: -6px 6px 25px rgba(0,0,0,0.2); }
.quick-btn span {
    white-space: nowrap; overflow: hidden;
    font-size: 0.82rem; font-weight: 600; letter-spacing: 0.2px;
    max-width: 0;
    transition: max-width 0.35s cubic-bezier(0.4,0,0.2,1), opacity 0.25s ease;
    opacity: 0; padding-right: 16px;
}
.quick-btn:hover span { max-width: 200px; opacity: 1; }
.quick-btn.qb-news { background: linear-gradient(135deg, #0284c7, #0369a1); }
.quick-btn.qb-vecino { background: linear-gradient(135deg, #059669, #047857); cursor: pointer; }
.quick-btn.qb-empleados { background: linear-gradient(135deg, #7c3aed, #6d28d9); }

/* ===== MODAL ATENCIÓN AL VECINO ===== */
.modal-overlay {
    position: fixed; inset: 0; z-index: 10000;
    background: rgba(17, 24, 39, 0.65);
    backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
    display: flex; align-items: center; justify-content: center;
    padding: 20px;
    opacity: 0; visibility: hidden;
    transition: opacity 0.35s ease, visibility 0.35s ease;
}
.modal-overlay.active { opacity: 1; visibility: visible; }
.modal-box {
    background: var(--white); border-radius: 24px;
    padding: 48px 40px; max-width: 560px; width: 100%;
    box-shadow: 0 40px 80px rgba(0,0,0,0.25);
    transform: translateY(30px) scale(0.97);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative; text-align: center;
}
.modal-overlay.active .modal-box { transform: translateY(0) scale(1); }
.modal-close {
    position: absolute; top: 16px; right: 16px;
    width: 36px; height: 36px; border-radius: 10px;
    background: var(--gray-100); border: none; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    color: var(--gray-500); font-size: 1rem;
    transition: var(--transition);
}
.modal-close:hover { background: var(--gray-200); color: var(--gray-800); }
.modal-icon {
    width: 72px; height: 72px; border-radius: 20px; margin: 0 auto 20px;
    display: flex; align-items: center; justify-content: center;
    font-size: 2rem;
    background: linear-gradient(135deg, #d1fae5, #a7f3d0); color: #059669;
}
.modal-title {
    font-family: 'Poppins', sans-serif;
    font-size: 1.5rem; font-weight: 800; color: var(--gray-900);
    margin-bottom: 8px;
}
.modal-subtitle {
    font-size: 0.95rem; color: var(--gray-500); margin-bottom: 36px; line-height: 1.6;
}
.modal-options { display: flex; flex-direction: column; gap: 14px; }
.modal-option {
    display: flex; align-items: center; gap: 18px;
    padding: 20px 22px; border-radius: 16px; text-decoration: none;
    border: 2px solid var(--gray-100); background: var(--gray-50);
    transition: var(--transition); text-align: left;
}
.modal-option:hover {
    border-color: rgba(34,142,204,0.3); background: var(--primary-ultra-light);
    transform: translateY(-3px); box-shadow: var(--shadow-md);
}
.modal-option-icon {
    width: 52px; height: 52px; border-radius: 14px; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.3rem; color: var(--white);
}
.modal-option-body { flex: 1; }
.modal-option-title {
    font-family: 'Poppins', sans-serif;
    font-size: 1rem; font-weight: 700; color: var(--gray-800); margin-bottom: 2px;
}
.modal-option-desc { font-size: 0.82rem; color: var(--gray-500); line-height: 1.4; }
.modal-option-arrow { color: var(--gray-400); font-size: 0.9rem; flex-shrink: 0; transition: var(--transition); }
.modal-option:hover .modal-option-arrow { color: var(--primary); transform: translateX(4px); }
@media (max-width: 768px) {
    .quick-access { display: none; }
}

/* ==========================================
   GLOBAL DARK MODE (MODO NOCHE COMPLETO)
   ========================================== */
body.dark-mode {
    background-color: #090d16;
    color: #e2e8f0;
}

/* --- NAVBAR NOCTURNA --- */
body.dark-mode .navbar {
    background: rgba(11, 19, 41, 0.95);
    border-bottom-color: rgba(255, 255, 255, 0.08);
}
body.dark-mode .navbar.scrolled {
    background: rgba(8, 14, 30, 0.98);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}
body.dark-mode .nav-brand-title { color: #ffffff; }
body.dark-mode .nav-brand-sub { color: rgba(255, 255, 255, 0.65); }
body.dark-mode .nav-link { color: rgba(255, 255, 255, 0.85); }
body.dark-mode .nav-link:hover,
body.dark-mode .nav-link.active {
    color: #38bdf8;
    background: rgba(56, 189, 248, 0.12);
}
body.dark-mode .nav-dropdown-menu {
    background: #0f172a;
    border-color: #1e293b;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
}
body.dark-mode .nav-dropdown-item {
    color: #cbd5e1;
}
body.dark-mode .nav-dropdown-item:hover {
    background: rgba(56, 189, 248, 0.15);
    color: #38bdf8;
}
body.dark-mode .mobile-menu {
    background: rgba(11, 19, 41, 0.98);
}
body.dark-mode .hamburger span {
    background: #ffffff;
}

/* --- MARQUEE NOCTURNO --- */
body.dark-mode .marquee-bar {
    background: linear-gradient(90deg, #0c4a6e, #1e3a8a);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

/* --- SECCIONES GENERALES --- */
body.dark-mode .section-title {
    color: #ffffff;
}
body.dark-mode .section-desc {
    color: #94a3b8;
}
body.dark-mode .section-tag {
    background: rgba(15, 23, 42, 0.8);
    color: #38bdf8;
    border-color: rgba(56, 189, 248, 0.3);
}

/* --- SERVICIOS --- */
body.dark-mode .services-section {
    background: #090d16;
}
body.dark-mode .service-card {
    background: #0f172a;
    border-color: #1e293b;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}
body.dark-mode .service-card:hover {
    border-color: rgba(56, 189, 248, 0.4);
    box-shadow: 0 15px 35px rgba(56, 189, 248, 0.15);
}
body.dark-mode .service-title {
    color: #ffffff;
}
body.dark-mode .service-desc {
    color: #94a3b8;
}
body.dark-mode .service-link {
    color: #38bdf8;
}

/* --- SEPARADORES OLA (WAVE SEPARATORS) --- */
body.dark-mode .wave-separator svg path {
    fill: #090d16 !important;
}

/* --- NOTICIAS / DIARIO DIGITAL --- */
body.dark-mode .news-section {
    background: #0c1222;
}
body.dark-mode .news-card {
    background: #0f172a;
    border-color: #1e293b;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}
body.dark-mode .news-card:hover {
    border-color: rgba(56, 189, 248, 0.4);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
}
body.dark-mode .news-title {
    color: #ffffff;
}
body.dark-mode .news-excerpt {
    color: #94a3b8;
}
body.dark-mode .news-tag {
    background: rgba(56, 189, 248, 0.15);
    color: #38bdf8;
}
body.dark-mode .news-img {
    background: linear-gradient(135deg, #1e293b, #0f172a);
    color: #38bdf8;
}

/* --- CTA BANNER --- */
body.dark-mode .cta-banner {
    background: linear-gradient(135deg, #0b1329 0%, #1e293b 100%);
    border-top: 1px solid #1e293b;
    border-bottom: 1px solid #1e293b;
}
body.dark-mode .cta-content h2 {
    color: #ffffff;
}
body.dark-mode .cta-content p {
    color: #cbd5e1;
}

/* --- CONTACTO --- */
body.dark-mode .contact-section {
    background: #090d16;
}
body.dark-mode .contact-item {
    background: #0f172a;
    border-color: #1e293b;
}
body.dark-mode .contact-item h4 {
    color: #ffffff;
}
body.dark-mode .contact-item p {
    color: #cbd5e1;
}
body.dark-mode .contact-map iframe {
    filter: brightness(0.85) contrast(1.1) invert(0.9) hue-rotate(180deg);
}

/* --- FOOTER --- */
body.dark-mode .footer {
    background: #050811;
    border-top: 1px solid #1e293b;
}
body.dark-mode .footer-desc {
    color: #94a3b8;
}
body.dark-mode .footer h4 {
    color: #ffffff;
}
body.dark-mode .footer-links a {
    color: #94a3b8;
}
body.dark-mode .footer-links a:hover {
    color: #38bdf8;
}
body.dark-mode .footer-bottom {
    border-top-color: #1e293b;
    color: #64748b;
}

/* --- MODAL VECINO --- */
body.dark-mode .modal-box {
    background: #0f172a;
    border: 1px solid #1e293b;
    color: #f8fafc;
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.6);
}
body.dark-mode .modal-title {
    color: #ffffff;
}
body.dark-mode .modal-subtitle {
    color: #94a3b8;
}
body.dark-mode .modal-close {
    background: #1e293b;
    color: #94a3b8;
}
body.dark-mode .modal-close:hover {
    background: #334155;
    color: #ffffff;
}
body.dark-mode .modal-option {
    background: #1e293b;
    border-color: #334155;
}
body.dark-mode .modal-option:hover {
    background: #334155;
    border-color: #38bdf8;
}
body.dark-mode .modal-option-title {
    color: #ffffff;
}
body.dark-mode .modal-option-desc {
    color: #cbd5e1;
}

/* --- PRELOADER Y PARTICULAS --- */
body.dark-mode .preloader {
    background: #090d16;
}

/* ===== HERO INTERACTION ===== */
a.hero-floating-card {
    text-decoration: none;
    transition: var(--transition);
}
a.hero-floating-card:hover {
    animation-play-state: paused;
    border-color: rgba(34,142,204,0.35);
    box-shadow: var(--shadow-xl);
    transform: translateY(-8px) scale(1.05);
}

/* ===== LICENCIAS SUBPAGE ===== */
.licencias-hero {
    padding: 160px 24px 80px;
    background: linear-gradient(135deg, var(--primary-ultra-light) 0%, var(--white) 100%);
    text-align: center;
    position: relative;
    overflow: hidden;
}
.licencias-hero::before {
    content: '';
    position: absolute;
    top: -20%;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(34,142,204,0.06) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}
.licencias-hero-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
    animation: fadeInUp 0.8s ease both;
}
.licencias-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #ffedd5;
    color: #ea580c;
    padding: 8px 18px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 20px;
    border: 1px solid rgba(234, 88, 12, 0.15);
}
.licencias-hero h1 {
    font-family: 'Poppins', sans-serif;
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800;
    color: var(--gray-900);
    line-height: 1.2;
    margin-bottom: 16px;
}
.licencias-hero h1 span {
    background: linear-gradient(135deg, #ea580c, #f59e0b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.licencias-hero p {
    font-size: 1.1rem;
    color: var(--gray-600);
    line-height: 1.6;
}

/* Tab Container and System */
.licencias-section {
    padding: 40px 24px 100px;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}
.tab-container {
    background: var(--white);
    border-radius: var(--radius);
    border: 1px solid var(--gray-100);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    margin-bottom: 40px;
    animation: fadeInUp 1s ease both;
}
.tab-nav {
    display: flex;
    background: var(--gray-50);
    border-bottom: 1px solid var(--gray-100);
    overflow-x: auto;
    scrollbar-width: none; /* Firefox */
}
.tab-nav::-webkit-scrollbar {
    display: none; /* Chrome/Safari */
}
.tab-btn {
    flex: 1;
    min-width: 180px;
    padding: 20px 16px;
    background: transparent;
    border: none;
    outline: none;
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--gray-600);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-align: center;
    border-bottom: 3px solid transparent;
}
.tab-btn i, .tab-btn svg {
    font-size: 1.2rem;
    transition: var(--transition);
}
.tab-btn:hover {
    color: #ea580c;
    background: rgba(255, 237, 213, 0.2);
}
.tab-btn.active {
    color: #ea580c;
    border-bottom-color: #ea580c;
    background: var(--white);
}

.tab-pane {
    display: none;
    padding: 40px;
    animation: fadeInTab 0.4s ease forwards;
}
.tab-pane.active {
    display: block;
}
@keyframes fadeInTab {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.tab-pane-title {
    font-family: 'Poppins', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 30px;
    border-left: 4px solid #ea580c;
    padding-left: 12px;
}

/* Timeline/Steps Styling */
.steps-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
    margin-bottom: 20px;
}
.step-card {
    background: var(--gray-50);
    border: 1px solid var(--gray-100);
    border-radius: var(--radius-sm);
    padding: 24px;
    position: relative;
    transition: var(--transition);
}
.step-card:hover {
    transform: translateY(-4px);
    border-color: rgba(234, 88, 12, 0.25);
    box-shadow: var(--shadow-md);
}
.step-number {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, #ea580c, #f59e0b);
    color: var(--white);
    font-weight: 700;
    font-size: 0.95rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    box-shadow: 0 4px 10px rgba(234, 88, 12, 0.3);
}
.step-title {
    font-family: 'Poppins', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--gray-800);
    margin-bottom: 12px;
}
.step-desc {
    font-size: 0.9rem;
    color: var(--gray-600);
    line-height: 1.5;
}
.step-desc ul {
    margin-left: 16px;
    margin-top: 6px;
}
.step-desc li {
    margin-bottom: 4px;
}

/* Important Box Styling */
.licencias-important-box {
    background: linear-gradient(135deg, #ffedd5 0%, #fee2e2 100%);
    border: 1px solid #fed7aa;
    border-radius: var(--radius);
    padding: 30px;
    display: flex;
    gap: 20px;
    align-items: flex-start;
    box-shadow: var(--shadow);
    margin-top: 40px;
    animation: fadeInUp 1s ease both;
}
.licencias-important-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #ea580c;
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    flex-shrink: 0;
    box-shadow: 0 4px 15px rgba(234, 88, 12, 0.4);
}
.licencias-important-text h4 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.15rem;
    font-weight: 700;
    color: #9a3412;
    margin-bottom: 8px;
}
.licencias-important-text p {
    font-size: 0.95rem;
    color: #ea580c;
    font-weight: 500;
    line-height: 1.6;
}

/* Dark Mode Styles for Licencias */
body.dark-mode .licencias-hero {
    background: linear-gradient(135deg, #0b1329 0%, #0f172a 100%);
}
body.dark-mode .licencias-hero::before {
    background: radial-gradient(circle, rgba(56, 189, 248, 0.08) 0%, transparent 70%);
}
body.dark-mode .licencias-hero h1 {
    color: var(--white);
}
body.dark-mode .licencias-hero p {
    color: #94a3b8;
}
body.dark-mode .tab-container {
    background: #0f172a;
    border-color: #1e293b;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
}
body.dark-mode .tab-nav {
    background: #1e293b;
    border-bottom-color: #334155;
}
body.dark-mode .tab-btn {
    color: #94a3b8;
}
body.dark-mode .tab-btn.active {
    background: #0f172a;
    color: #f59e0b;
    border-bottom-color: #f59e0b;
}
body.dark-mode .tab-btn:hover {
    color: #f59e0b;
    background: rgba(245, 158, 11, 0.1);
}
body.dark-mode .tab-pane-title {
    color: var(--white);
    border-left-color: #f59e0b;
}
body.dark-mode .step-card {
    background: #1e293b;
    border-color: #334155;
}
body.dark-mode .step-card:hover {
    border-color: rgba(245, 158, 11, 0.35);
}
body.dark-mode .step-title {
    color: #f8fafc;
}
body.dark-mode .step-desc {
    color: #cbd5e1;
}
body.dark-mode .licencias-important-box {
    background: linear-gradient(135deg, #1e1b4b 0%, #311005 100%);
    border-color: #451a03;
}
body.dark-mode .licencias-important-text h4 {
    color: #ffedd5;
}
body.dark-mode .licencias-important-text p {
    color: #fed7aa;
}

/* Responsiveness adjustments for smaller devices */
@media (max-width: 768px) {
    .tab-pane {
        padding: 24px;
    }
    .licencias-hero {
        padding: 120px 16px 50px;
    }
    .licencias-section {
        padding: 20px 16px 60px;
    }
    .tab-btn {
        padding: 14px 10px;
        min-width: 140px;
        font-size: 0.85rem;
    }
    .licencias-important-box {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 24px;
    }
}

