:root {
    --color-bg: #f8f9fa; /* Off-white */
    --color-surface: rgba(255, 255, 255, 0.7); /* Translucent for glass effect */
    --color-text: #2D3E5D; /* Azul Grisáceo */
    --color-heading: #1E356A; /* Azul Marino */
    --color-text-light: #5f6368;
    --color-primary: #2BA0D8; /* Azul Cian */
    --color-secondary: #84CAE7; /* Celeste Glacial */
    --color-border: #dadce0;
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Open Sans', sans-serif;
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    --shadow-sm: 0 1px 2px 0 rgba(60,64,67,0.3), 0 1px 3px 1px rgba(60,64,67,0.15);
    --shadow-md: 0 4px 6px 0 rgba(60,64,67,0.3), 0 4px 8px 3px rgba(60,64,67,0.15);
    --shadow-lg: 0 8px 10px 1px rgba(60,64,67,0.14), 0 3px 14px 2px rgba(60,64,67,0.12), 0 5px 5px -3px rgba(60,64,67,0.2);
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
}

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

body {
    font-family: var(--font-body);
    background-color: var(--color-bg); /* Restaurado a color oscuro para que las otras secciones se vean bien */
    color: var(--color-text);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--color-heading);
    letter-spacing: -0.5px;
}

/* Background Video (Only for Hero section now) */
.main-video-bg {
    position: absolute; /* Cambiado de fixed a absolute para que se quede en la primera sección */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -4;
    object-fit: cover;
}

.main-video-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -3;
    background: rgba(255, 255, 255, 0.4); /* Make it light enough to read dark text on it */
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
}

/* Global Canvas Background */
#global-canvas-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -4;
    background: linear-gradient(135deg, #e0e5ec 0%, #ffffff 100%);
    pointer-events: none; /* Let clicks pass through to main content but still capture mousemove via window */
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 0;
    z-index: 1000;
    transition: var(--transition);
    background: transparent;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.navbar.scrolled {
    background: rgba(243, 244, 248, 0.98); /* Color solicitado con leve transparencia */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 12px 0;
    box-shadow: var(--shadow-sm);
    border-bottom: 1px solid var(--color-border);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 4px; /* Pequeño espacio para que el símbolo no choque con el texto */
    text-decoration: none;
    transition: var(--transition);
}

.logo-symbol-img {
    height: 75px;
    width: auto;
    display: block;
    /* Animación inicial esporádica (cada 7 segundos) */
    animation: jumpOut 7s cubic-bezier(0.68, -0.55, 0.265, 1.55) infinite;
}

.logo-text-img {
    height: 75px;
    width: auto;
    display: block;
    transition: var(--transition);
}

@keyframes jumpOut {
    0%, 88%, 100% {
        transform: translateY(0) rotate(0deg) scale(1);
    }
    91% {
        transform: translateY(-15px) rotate(-10deg) scale(1.1); /* Sale del encabezado rápidamente */
    }
    94% {
        transform: translateY(8px) rotate(8deg) scale(0.95); /* Rebote hacia abajo */
    }
    97% {
        transform: translateY(-3px) rotate(-3deg) scale(1.02);
    }
}

/* ═══════════════ CUSTOM CURSOR ═══════════════ */
body {
    cursor: none; /* Oculta el cursor por defecto en escritorio */
}

.custom-cursor {
    position: fixed;
    top: 0;
    left: 0;
    width: 36px;
    height: 36px;
    pointer-events: none; /* Para no bloquear clics */
    z-index: 99999999;
    transform: translate(-50%, -50%);
    transition: transform 0.1s ease-out, width 0.2s, height 0.2s;
    will-change: left, top;
}

.custom-cursor img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 2px 5px rgba(0,0,0,0.3));
    /* Animación de rotación constante y lenta para el cursor */
    animation: cursorSpin 10s linear infinite;
}

@keyframes cursorSpin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Hover effects (optional, managed by JS or CSS) */
a, button {
    cursor: none !important;
}

/* Nav Links & Dropdown */
.nav-links {
    display: flex;
    gap: 32px;
    align-items: center;
}

.nav-links > a {
    text-decoration: none;
    color: var(--color-text);
    font-weight: 500;
    transition: var(--transition);
}

.nav-links > a:hover {
    color: var(--color-primary);
}

/* Dropdown */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown > a {
    text-decoration: none;
    color: var(--color-text);
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.dropdown > a:hover {
    color: var(--color-primary);
}

.dropdown-content {
    visibility: hidden;
    opacity: 0;
    position: absolute;
    background-color: var(--color-surface);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    min-width: 220px;
    box-shadow: var(--shadow-lg);
    border-radius: var(--radius-md);
    border: 1px solid var(--color-border);
    z-index: 100;
    top: 150%;
    left: 0;
    padding: 8px 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

.dropdown:hover .dropdown-content {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
    top: 100%;
}

.dropdown-content a {
    color: var(--color-text);
    padding: 12px 20px;
    text-decoration: none;
    display: block;
    font-size: 0.95rem;
    transition: background 0.3s ease, color 0.3s ease;
}

.dropdown-content a:hover {
    background-color: rgba(26, 115, 232, 0.05);
    color: var(--color-primary);
}

.navbar .btn-outline {
    color: var(--color-primary);
    border: 1px solid var(--color-primary);
    padding: 10px 24px;
    border-radius: 100px; /* Pill shape */
}

.navbar .btn-outline:hover {
    background: rgba(26, 115, 232, 0.04);
}

/* Buttons */
.btn-primary, .btn-outline {
    display: inline-block;
    padding: 12px 32px;
    border-radius: 100px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    font-size: 16px;
    font-family: var(--font-heading);
}

.btn-primary {
    background: var(--color-primary);
    color: #fff;
    border: none;
    box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
    background: #174ea6; /* Darker blue */
    box-shadow: var(--shadow-md);
    transform: translateY(-1px);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--color-border);
    color: var(--color-text);
}

.btn-outline:hover {
    background: var(--color-surface);
    border-color: var(--color-text-light);
}

/* Typography Enhancements */
.text-gradient {
    background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Hero Section */
/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    width: 100%;
    padding: 180px 24px 80px;
    position: relative;
    z-index: 1;
    overflow: hidden; /* Necessary for video background */
    /* Transición suave hacia la siguiente sección */
    -webkit-mask-image: linear-gradient(to bottom, black 85%, transparent 100%);
    mask-image: linear-gradient(to bottom, black 85%, transparent 100%);
}

.hero-video-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
    /* Difuminar suavemente el borde inferior del video */
    -webkit-mask-image: linear-gradient(to bottom, black 80%, transparent 100%);
    mask-image: linear-gradient(to bottom, black 80%, transparent 100%);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1); 
    z-index: -1;
    /* El overlay también debe difuminarse igual que el video */
    -webkit-mask-image: linear-gradient(to bottom, black 80%, transparent 100%);
    mask-image: linear-gradient(to bottom, black 80%, transparent 100%);
}

.hero-content {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    text-align: left;
}

.badge {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(26, 115, 232, 0.1);
    color: var(--color-primary);
    border-radius: 100px;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 24px;
    letter-spacing: 0.5px;
}

.hero-title {
    font-size: 4.5rem;
    line-height: 1.1;
    margin-bottom: 24px;
    letter-spacing: -1.5px;
    max-width: 700px; /* Restrict width so it doesn't overlap the right side video graphic */
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--color-text-light);
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: 0;
    margin-right: 0;
    line-height: 1.7;
}

.hero-cta {
    display: flex;
    gap: 16px;
    justify-content: flex-start;
}

/* Cards (Clean Material Style / Glassmorphism) */
.glass-panel, .service-card, .tip-card, .blog-card, .mv-box, .about-team, .cta-box {
    background: var(--color-surface);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.glass-panel:hover, .service-card:hover, .tip-card:hover, .blog-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

/* Servicios Section (Zig-Zag Layout) */
.servicios {
    padding: 100px 24px;
    max-width: 1200px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 80px;
}

.section-header h2 {
    font-size: 3rem;
    margin-bottom: 16px;
    letter-spacing: -1px;
}

.section-header p {
    font-size: 1.1rem;
    color: var(--color-text-light);
    max-width: 600px;
    margin: 0 auto;
}

/* ════════════ ACORDEÓN EXPANSIVO CINEMATOGRÁFICO ════════════ */
@keyframes gentleFloat {
    0% { transform: translateY(0); box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1); }
    50% { transform: translateY(-4px); box-shadow: 0 25px 50px rgba(43, 160, 216, 0.2); }
    100% { transform: translateY(0); box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1); }
}

@keyframes borderSpark {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.services-accordion-wrapper {
    position: relative;
    padding: 3px;
    border-radius: calc(var(--radius-lg) + 3px);
    overflow: hidden;
    animation: gentleFloat 8s ease-in-out infinite;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

.services-accordion-wrapper::before {
    content: '';
    position: absolute;
    inset: -50%;
    background: conic-gradient(from 0deg, transparent 60%, rgba(43, 160, 216, 0.9) 80%, rgba(179, 136, 255, 0.9) 100%);
    animation: borderSpark 4s linear infinite;
    z-index: 0;
}

.services-accordion {
    position: relative;
    display: flex;
    width: 100%;
    height: 600px;
    gap: 8px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: #0a0f1a;
    z-index: 1;
}

.accordion-panel {
    position: relative;
    flex: 1;
    overflow: hidden;
    cursor: pointer;
    transition: flex 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.accordion-panel:hover {
    flex: 6; /* Expansión masiva al hacer hover */
}

.accordion-bg {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    z-index: -2;
    filter: grayscale(80%) brightness(0.4);
    transition: filter 0.6s ease, transform 0.8s ease;
}

.accordion-panel:hover .accordion-bg {
    filter: grayscale(0%) brightness(0.9);
    transform: scale(1.05);
}

.accordion-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(10, 15, 26, 0.95) 0%, rgba(10, 15, 26, 0.2) 60%, transparent 100%);
    z-index: -1;
    opacity: 0;
    transition: opacity 0.6s ease;
}

.accordion-panel:hover .accordion-overlay {
    opacity: 1; /* Mostrar gradiente oscuro para contraste del texto solo en hover */
}

.accordion-content {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: flex-end;
    padding: 40px;
}

.accordion-title-vertical {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    transition: opacity 0.3s ease, transform 0.4s ease;
    width: 100%;
    text-align: center;
}

.accordion-title-vertical span {
    display: inline-block;
    color: white;
    font-size: 1.4rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 3px;
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    text-shadow: 0 2px 10px rgba(0,0,0,0.8);
    white-space: nowrap;
}

.accordion-panel:hover .accordion-title-vertical {
    opacity: 0;
    transform: translateX(-50%) translateY(20px);
}

.accordion-details {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.4s ease 0.1s, transform 0.4s ease 0.1s;
    width: 100%;
    max-width: 600px;
    pointer-events: none;
}

.accordion-panel:hover .accordion-details {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.accordion-details h3 {
    font-size: 2.2rem;
    color: white;
    margin-bottom: 16px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.8);
}

.accordion-details p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 24px;
    line-height: 1.6;
    text-shadow: 0 1px 5px rgba(0,0,0,0.8);
}

.service-feature-img {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
}

/* Modern About Us Section */
.about-modern-section {
    padding: 120px 24px;
    position: relative;
}

.about-modern-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 120px;
}

/* Company Section */
.about-company {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.company-text h2 {
    font-size: 3rem;
    margin-bottom: 24px;
    line-height: 1.1;
}

.company-text .lead-text {
    font-size: 1.25rem;
    color: var(--color-heading);
    font-weight: 600;
    margin-bottom: 16px;
}

.company-text .desc-text {
    color: var(--color-text);
    margin-bottom: 32px;
    font-size: 1.05rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.stat-box {
    padding: 24px;
    border-top: 4px solid var(--color-primary);
}

.stat-box h3 {
    color: var(--color-primary);
    margin-bottom: 8px;
    font-size: 1.4rem;
}

.stat-box p {
    color: var(--color-text);
    font-size: 0.95rem;
    margin: 0;
}

.company-image {
    width: 100%;
    height: 100%;
    min-height: 400px;
}

.modern-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
}

/* Modern Team Section */
.team-modern-section {
    text-align: center;
}

.team-modern-section .section-header {
    margin-bottom: 60px;
}

.expert-profile-card {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px;
    display: flex;
    gap: 40px;
    align-items: center;
    text-align: left;
}

.expert-photo-wrapper {
    position: relative;
    flex-shrink: 0;
}

.expert-photo {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--color-surface);
    box-shadow: var(--shadow-md);
}

.expert-badge {
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--color-primary);
    color: white;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    white-space: nowrap;
    box-shadow: 0 4px 6px rgba(43, 160, 216, 0.3);
}

.expert-details h3 {
    font-size: 2rem;
    margin-bottom: 4px;
}

.expert-details h4 {
    font-size: 1.1rem;
    margin-bottom: 16px;
    font-weight: 600;
}

.expert-details p {
    color: var(--color-text);
    margin-bottom: 24px;
    font-size: 1rem;
}

.expert-skills {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.skill-tag {
    background: rgba(132, 202, 231, 0.15); /* Celeste Glacial transparent */
    color: var(--color-heading);
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    border: 1px solid rgba(43, 160, 216, 0.2);
}

@media (max-width: 768px) {
    .about-modern-container {
        gap: 80px;
    }
    .about-company {
        grid-template-columns: 1fr;
    }
    .expert-profile-card {
        flex-direction: column;
        text-align: center;
        padding: 32px 20px;
    }
    .expert-skills {
        justify-content: center;
    }
    .expert-badge {
        bottom: -15px;
    }
}

/* Tips Section */
.tips-section {
    padding: 100px 24px;
}

.tips-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
    max-width: 1200px;
    margin: 0 auto;
}

.tip-card {
    padding: 32px;
}

.tip-icon {
    font-size: 24px;
    margin-bottom: 24px;
    background: #f1f3f4;
    width: 56px;
    height: 56px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
}

.tip-card h4 {
    font-size: 1.25rem;
    margin-bottom: 12px;
}

.tip-card p {
    color: var(--color-text-light);
    font-size: 0.95rem;
}

/* Blog Preview Section */
.blog-preview {
    padding: 100px 24px;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
    max-width: 1200px;
    margin: 0 auto;
}

.blog-card {
    display: flex;
    flex-direction: column;
}

.blog-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-bottom: 1px solid var(--color-border);
    border-radius: var(--radius-md) var(--radius-md) 0 0;
}

.blog-content {
    padding: 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.blog-date {
    font-size: 12px;
    color: var(--color-text-light);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    margin-bottom: 12px;
}

.blog-card h4 {
    font-size: 1.25rem;
    margin-bottom: 12px;
    line-height: 1.4;
}

.blog-card p {
    color: var(--color-text-light);
    font-size: 0.95rem;
    margin-bottom: 24px;
    flex: 1;
}

/* Contacto Section */
.contacto {
    padding: 100px 24px;
}

.cta-box {
    max-width: 800px;
    margin: 0 auto;
    padding: 64px 40px;
    text-align: center;
    background: linear-gradient(135deg, var(--color-surface) 0%, #f8f9fa 100%);
}

.cta-box h2 {
    font-size: 2.5rem;
    margin-bottom: 24px;
}

.cta-box p {
    font-size: 1.1rem;
    color: var(--color-text-light);
    margin-bottom: 40px;
}

.email-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: 1.1rem;
}

/* Floating WhatsApp Button */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 40px;
    right: 40px;
    background-color: #25D366; /* Standard WhatsApp Green */
    color: #FFF;
    border-radius: 50%;
    text-align: center;
    box-shadow: var(--shadow-md);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    z-index: 1000;
    /* Animación esporádica de pulso y giro */
    animation: waPulse 6s infinite;
}

@keyframes waPulse {
    0%, 80%, 100% {
        transform: scale(1) rotate(0deg);
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.6);
    }
    85% {
        transform: scale(1.15) rotate(15deg);
        box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
    }
    90% {
        transform: scale(0.95) rotate(-10deg);
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
    95% {
        transform: scale(1.05) rotate(5deg);
    }
}

.whatsapp-float:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-lg);
}

.whatsapp-float svg {
    width: 30px;
    height: 30px;
}

/* Footer Redesign */
footer {
    background: var(--color-surface);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid var(--color-border);
    padding: 60px 24px 20px;
    color: var(--color-text);
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-column h3 {
    font-size: 1.2rem;
    color: var(--color-text);
    margin-bottom: 20px;
    font-weight: 600;
}

.footer-column p {
    color: var(--color-text-light);
    margin-bottom: 12px;
    font-size: 0.95rem;
}

.footer-column ul {
    list-style: none;
    padding: 0;
}

.footer-column ul li {
    margin-bottom: 12px;
}

.footer-column ul a {
    color: var(--color-text-light);
    text-decoration: none;
    transition: var(--transition);
    font-size: 0.95rem;
}

.footer-column ul a:hover {
    color: var(--color-primary);
    padding-left: 5px;
}

.social-links {
    display: flex;
    gap: 16px;
    margin-top: 16px;
}

.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(26, 115, 232, 0.05);
    color: var(--color-primary);
    border: 1px solid var(--color-border);
    transition: var(--transition);
}

.social-icon:hover {
    background: var(--color-primary);
    color: #fff;
    transform: translateY(-2px);
}

.social-icon svg {
    width: 20px;
    height: 20px;
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    border-top: 1px solid var(--color-border);
    padding-top: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.footer-bottom p {
    color: var(--color-text-light);
    font-size: 0.9rem;
    margin: 0;
}

.footer-bottom-links a {
    color: var(--color-text-light);
    text-decoration: none;
    margin-left: 16px;
    font-size: 0.9rem;
    transition: var(--transition);
}

.footer-bottom-links a:hover {
    color: var(--color-primary);
}

/* Scroll Reveal Animations */
.reveal {
    opacity: 0;
    transform: translateY(60px);
    transition: all 0.9s cubic-bezier(0.5, 0, 0, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Floating Animations for Images */
.floating-container {
    animation: floatAnim 6s ease-in-out infinite;
    will-change: transform;
}

@keyframes floatAnim {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0px); }
}

.service-feature-img {
    width: 100%;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.service-feature-img:hover {
    transform: scale(1.03) translateY(-5px);
    box-shadow: var(--shadow-lg);
}

/* Mobile Menu Button (Hidden by default) */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    cursor: pointer;
    z-index: 1001;
}
.mobile-menu-btn span {
    display: block;
    height: 3px;
    width: 100%;
    background-color: var(--color-heading);
    border-radius: 3px;
    transition: all 0.3s ease;
}
.mobile-menu-btn.active span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.mobile-menu-btn.active span:nth-child(2) { opacity: 0; }
.mobile-menu-btn.active span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

/* Responsive */
@media (max-width: 1024px) {
    /* Desactivar cursor personalizado en móviles */
    body, a, button { cursor: auto !important; }
    .custom-cursor { display: none !important; }

    /* Navbar Mobile Menu */
    .navbar { padding: 12px 0; }
    .logo-symbol-img, .logo-text-img { height: 45px; } /* Logo más pequeño en móviles */
    .mobile-menu-btn { display: flex; }
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background: rgba(243, 244, 248, 0.98);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 20px;
        transition: right 0.4s ease;
        box-shadow: -5px 0 15px rgba(0,0,0,0.1);
        z-index: 1000;
        padding: 40px;
    }
    .nav-links.active { right: 0; display: flex; }
    .nav-links .dropdown-content { position: relative; top: 0; transform: none; box-shadow: none; border: none; background: transparent; padding: 10px 0; display: none; }
    .nav-links .dropdown:hover .dropdown-content { display: block; }
    .nav-links .dropdown-content a { text-align: center; }

    /* Footer Responsive Fixes */
    .footer-container {
        text-align: center;
        grid-template-columns: 1fr;
    }
    .footer-column ul {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    .social-links {
        justify-content: center;
    }
    .footer-bottom {
        flex-direction: column;
        text-align: center;
        justify-content: center;
        gap: 16px;
    }
    .footer-bottom-links {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 12px;
    }
    .footer-bottom-links a { margin: 0; }

    /* General Layout Fixes */
    .hero {
        grid-template-columns: 1fr;
        text-align: center;
        padding: 90px 20px 40px; /* Reducido de 140px a 90px para eliminar el espacio vacío */
    }
    .hero-subtitle { 
        margin-left: auto;
        margin-right: auto;
        font-size: 1.1rem; 
    }
    .hero-title { font-size: 3rem; }
    .hero-cta { justify-content: center; }
    .hero-visual { margin-top: 40px; }
    
    .services-accordion { 
        flex-direction: column;
        height: auto; 
        gap: 8px;
    }
    .services-accordion-wrapper {
        animation: none;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    }
    .services-accordion-wrapper::before {
        animation: borderSpark 6s linear infinite;
    }
    .accordion-panel {
        min-height: 100px;
        flex: 1 1 auto;
    }
    .accordion-panel:hover,
    .accordion-panel:active {
        flex: 4 1 0;
    }
    .accordion-title-vertical {
        bottom: auto;
        top: 50%;
        transform: translate(-50%, -50%);
    }
    .accordion-title-vertical span {
        writing-mode: horizontal-tb;
        transform: none;
        letter-spacing: 1px;
        font-size: 1rem;
    }
    .accordion-panel:hover .accordion-title-vertical,
    .accordion-panel:active .accordion-title-vertical {
        opacity: 0;
    }
    .accordion-content {
        padding: 16px;
    }
    .accordion-details {
        padding: 10px;
    }
    .accordion-details h3 { 
        font-size: 1.3rem; 
    }
    .accordion-details p {
        font-size: 0.85rem;
        line-height: 1.4;
    }

    /* About Modern Section Mobile */
    .about-modern-section {
        padding: 60px 16px;
    }
    .about-modern-container {
        gap: 40px;
    }
    .about-company {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .company-image {
        max-width: 280px;
        margin: 0 auto;
    }
    .expert-profile-card {
        flex-direction: column;
        text-align: center;
    }

    .about-container { grid-template-columns: 1fr; }
    .mission-vision { grid-template-columns: 1fr; }

    /* Section headers mobile */
    .section-header h2 {
        font-size: 2rem;
    }
    .section-header p {
        font-size: 1rem;
    }
}

/* ═══════════════ PROMO POPUP (GLASSMORPHISM) ═══════════════ */
.promo-popup-overlay {
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    background: rgba(4, 11, 20, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.promo-popup-overlay.show {
    opacity: 1;
    visibility: visible;
}

.promo-popup-content {
    position: relative;
    max-width: 90%;
    width: 320px; /* Tamaño mucho más reducido (modo tarjeta) */
    transform: scale(0.9) translateY(20px);
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), 0 0 40px rgba(43, 160, 216, 0.3);
}

.promo-popup-overlay.show .promo-popup-content {
    transform: scale(1) translateY(0);
}

.promo-popup-img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.promo-popup-close {
    position: absolute;
    top: -15px;
    right: -15px;
    width: 40px;
    height: 40px;
    background: var(--color-primary);
    color: var(--color-bg);
    border: 2px solid var(--color-bg);
    border-radius: 50%;
    font-size: 24px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    z-index: 2;
}

.promo-popup-close:hover {
    background: var(--color-accent);
    transform: rotate(90deg) scale(1.1);
}

/* ═══════════════ COOKIE CONSENT BANNER ═══════════════ */
.cookie-banner {
    position: fixed;
    bottom: -150px; /* Oculto inicialmente */
    left: 0;
    width: 100%;
    background: rgba(4, 11, 20, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.5);
    z-index: 9998;
    transition: bottom 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
    visibility: hidden;
}

.cookie-banner.show {
    bottom: 0;
    visibility: visible;
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
}

.cookie-content p {
    color: var(--color-text-muted);
    font-size: 0.9rem;
    margin: 0;
    line-height: 1.5;
    flex: 1;
}

.cookie-btn {
    white-space: nowrap;
    padding: 12px 24px;
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .cookie-content {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    .cookie-btn {
        width: 100%;
    }
}

/* ═══════════════ PANTALLA DE CARGA (PRELOADER) ═══════════════ */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: var(--color-bg); /* Fondo oscuro profundo */
    z-index: 999999; /* Sobre todo, incluso popups */
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.8s ease, visibility 0.8s ease;
}

/* Cuando se añade la clase fade-out mediante JS */
.preloader.fade-out {
    opacity: 0;
    visibility: hidden;
}

.preloader-content {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.preloader-logo {
    width: 120px;
    height: auto;
    /* Animación de pulsación y ligero giro tipo núcleo de reactor */
    animation: pulseSpin 3s infinite cubic-bezier(0.455, 0.03, 0.515, 0.955);
    filter: drop-shadow(0 0 20px rgba(43, 160, 216, 0.6));
}

.preloader-text {
    color: var(--color-primary);
    font-size: 1.2rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.preloader-text .dots {
    animation: blinkDots 1.5s infinite steps(4, end);
}

@keyframes pulseSpin {
    0% { transform: scale(0.95) rotate(0deg); opacity: 0.8; }
    50% { transform: scale(1.05) rotate(180deg); opacity: 1; filter: drop-shadow(0 0 30px rgba(43, 160, 216, 0.9)); }
    100% { transform: scale(0.95) rotate(360deg); opacity: 0.8; }
}

@keyframes blinkDots {
    0%, 20% { opacity: 0; }
    40% { opacity: 1; }
    100% { opacity: 1; }
}
