/* 
  Global Styles & Variables 
*/
:root {
    --bg-color: #0d0101;
    --text-primary: #ffffff;
    --text-secondary: #a097a8;
    --accent-pink: #ff003c; /* Neon Red instead of Pink */
    --accent-purple: #ff5e00;
    --accent-orange: #ff5e00;
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.1);
    
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: #0d0101; /* Unified Dark Red */
    color: var(--text-primary);
    font-family: var(--font-body);
    overflow-x: hidden;
    line-height: 1.6;
    position: relative;
    cursor: none;
}

a, button {
    cursor: none;
}

/* Custom Cursor */
.custom-cursor {
    width: 20px;
    height: 20px;
    border: 2px solid #ff3b3b;
    border-radius: 50%;
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: width 0.2s, height 0.2s, background-color 0.2s;
    mix-blend-mode: screen;
}

.custom-cursor.active {
    width: 40px;
    height: 40px;
    background-color: rgba(255, 59, 59, 0.4);
}

/* Background Gradient Mesh */
.bg-mesh {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -2;
    overflow: hidden;
    background: #0d0101;
}

/* Image container just for the header area */
.hero-image-bg {
    display: none;
}

/* Hide CSS Blobs in favor of the image */
.blob {
    display: none;
}

@keyframes float {
    0% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(10%, 10%) scale(1.1); }
    100% { transform: translate(-5%, -5%) scale(0.9); }
}

/* Typography Overrides */
h1, h2, h3, h4, .logo span {
    font-family: var(--font-heading);
    letter-spacing: -0.02em;
}

ul {
    list-style: none;
}

/* Hide mobile-only nav items on desktop */
.nav-mobile-only {
    display: none;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s ease;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    background: transparent;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    max-width: 1400px;
    margin: 0 auto;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 700;
    font-size: 1.2rem;
    letter-spacing: 0.05em;
    text-transform: none;
}

.logo-icon {
    stroke: #ff3b3b;
    fill: #ff3b3b;
}

.nav-center {
    display: flex;
    align-items: center;
}

@media (max-width: 768px) {
    .nav-center {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: var(--bg-color);
        flex-direction: column;
        justify-content: center;
        transition: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
        z-index: 99;
    }

    .navbar.mobile-open .nav-center {
        right: 0;
    }

    .nav-links {
        flex-direction: column;
        align-items: center;
        gap: 3rem !important;
    }

    .nav-links a {
        font-size: 1.5rem;
    }

    .nav-mobile-only {
        display: block;
    }
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.social-circles {
    display: flex;
    gap: 0.5rem;
}

.social-circles a {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    transition: all 0.3s;
}

.social-circles a:hover {
    border-color: var(--accent-pink);
    color: var(--accent-pink);
}

.btn-contact {
    background-color: var(--accent-pink);
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 100px;
    font-weight: 600;
    font-size: 0.85rem;
    border: none;
    transition: all 0.3s ease;
    text-transform: none;
}

.btn-contact:hover {
    background-color: #f033ff;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 0, 40, 0.4);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    z-index: 101;
    padding: 0.5rem;
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }
}

@keyframes neonPulse {
    0% {
        box-shadow: 0 0 5px rgba(255, 59, 59, 0.2), inset 0 0 5px rgba(255, 59, 59, 0.2);
    }
    100% {
        box-shadow: 0 0 15px rgba(255, 59, 59, 0.6), inset 0 0 10px rgba(255, 59, 59, 0.4);
    }
}

/* Animations for Hero Section */
@keyframes blurIn {
    0% {
        filter: blur(15px);
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        filter: blur(0);
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-title, .hero-subtitle, .hero-buttons, .scroll-indicator, .video-showroom, .hero-text-left, .hero-text-right {
    opacity: 0;
    animation: blurIn 1.5s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.hero-title { animation-delay: 0.2s; }
.hero-text-left { animation-delay: 0.4s; }
.hero-text-right { animation-delay: 0.6s; }
.hero-subtitle { animation-delay: 0.8s; }
.hero-buttons { animation-delay: 1s; }
.scroll-indicator { animation-delay: 1.4s; }
/* Redundant delay removed */

/* Global Reveal Animation for Content */
.section-title, .section-subtitle, .section-text, .service-nav-card, .phil-card, .philosophy-quote,
.massive-title, .tech-label, .tech-card, .hero-tech-media {
    opacity: 0;
    animation: blurIn 1.2s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
    animation-play-state: running;
}

/* Staggered Delays for Service Pages */
.tech-label { animation-delay: 0.2s; }
.hero-tech-content .massive-title { animation-delay: 0.4s; }
.hero-tech-content .section-text { animation-delay: 0.6s; }
.hero-tech-media { animation-delay: 0.8s; }

/* Staggered Cards */
.tech-card:nth-child(1) { animation-delay: 1s; }
.tech-card:nth-child(2) { animation-delay: 1.2s; }
.tech-card:nth-child(3) { animation-delay: 1.4s; }
.tech-card:nth-child(4) { animation-delay: 1.6s; }

/* Optional: Adding scroll-triggered feel using a simple staggered delay if visible on load */
h1, h2, h3, h4, p {
    animation-duration: 1.5s;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    font-size: 0.9rem;
    font-weight: 500;
}

.nav-links a:hover {
    color: var(--accent-pink);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.time {
    font-size: 0.75rem;
    text-align: right;
    color: var(--text-secondary);
    line-height: 1.2;
}

.time strong {
    color: var(--text-primary);
}

/* Buttons */
.btn {
    padding: 0.75rem 1.5rem;
    border-radius: 100px;
    font-weight: 600;
    font-family: var(--font-heading);
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-primary {
    background: linear-gradient(90deg, var(--accent-pink), var(--accent-purple));
    color: white;
    box-shadow: 0 4px 15px rgba(255, 0, 40, 0.3);
}

.btn-primary:hover {
    box-shadow: 0 6px 20px rgba(255, 0, 40, 0.5);
    transform: translateY(-2px);
}

.btn-light {
    background: white;
    color: #000;
}

.btn-light:hover {
    background: #f0f0f0;
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: white;
    transform: translateY(-2px);
}

/* Hero Section */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.scroll-indicator {
    margin-top: 5rem;
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    color: var(--text-secondary);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    opacity: 0.7;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

.hero-nova {
    position: relative;
    width: 100vw;
    height: 100vh;
    display: flex;
    flex-direction: column;
    margin-top: 0; /* Changed from negative to fix top gap */
    padding: 0 4rem;
    overflow: hidden;
}

.hero-video-bg {
    position: absolute;
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%;
    object-fit: cover;
    z-index: -2;
    filter: brightness(0.6) saturate(1.2) contrast(1.1); /* make it fit the red vibe better */
}

.hero-overlay {
    position: absolute;
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%;
    background: radial-gradient(circle at center, transparent 30%, rgba(13, 1, 1, 0.6) 100%);
    mix-blend-mode: normal;
    z-index: -1;
}

.hero-nova::after {
    content: '';
    position: absolute;
    bottom: -1px; /* Overlap slightly */
    left: 0;
    width: 100%;
    height: 60%;
    background: linear-gradient(to bottom, transparent 0%, var(--bg-color) 90%, var(--bg-color) 100%);
    z-index: 2; /* Higher than video */
    pointer-events: none;
}

.hero-content-nova {
    position: relative;
    z-index: 10;
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
    height: 100%;
    padding-bottom: 5rem;
}

.hero-text-left {
    position: absolute;
    top: clamp(15%, 22%, 25%);
    left: 0;
    max-width: 320px;
    font-size: 1.05rem;
    color: #fff;
    line-height: 1.6;
    font-weight: 400;
}

.hero-text-right {
    position: absolute;
    top: clamp(15%, 22%, 25%);
    right: 0;
    text-align: right;
    font-size: 1.05rem;
    color: #fff;
    line-height: 2;
    font-weight: 500;
}

@media (max-width: 768px) {
    .hero-text-left {
        position: static !important;
        max-width: 100% !important;
        text-align: center !important;
        margin-top: -1rem !important;
        margin-bottom: 0 !important;
        font-size: 1.1rem !important;
        line-height: 1.4 !important;
        padding: 0 1.5rem !important;
        display: block !important;
    }
    
    .hero-text-right {
        display: none !important; /* Hide services list on mobile for cleaner look */
    }
    
    .hero-content-nova {
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
        align-items: center !important;
        padding-top: 10rem !important;
        padding-bottom: 8rem !important;
        min-height: 100vh !important;
        gap: 0.5rem !important;
    }
    
    .hero-nova .hero-title-nova {
        position: relative !important;
        display: block !important;
        text-align: center !important;
        margin: 6rem 0 0 !important; /* Lowered even more */
        padding: 0 !important;
        font-size: clamp(2.8rem, 15vw, 4.5rem) !important; /* Larger size */
        transform: none !important;
        top: auto !important;
        left: auto !important;
        order: -1 !important;
    }
}

/* ── Tablet Hero Fix (769px – 1024px) ─────────────────
   El hero-nova usa posicionamiento absoluto para los
   textos, lo que rompe en tablet. Aquí lo convertimos
   en flex-column con todo centrado.
   ─────────────────────────────────────────────────── */
@media (min-width: 769px) and (max-width: 1024px) {
    .hero-nova {
        padding: 0 2rem;
        justify-content: center;
    }

    .hero-content-nova {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        padding-top: 8rem;
        padding-bottom: 5rem;
        gap: 1.5rem;
    }

    .hero-title-nova {
        position: relative !important;
        bottom: auto !important;
        left: auto !important;
        top: auto !important;
        font-size: clamp(4rem, 8vw, 7rem) !important;
        text-align: center !important;
        margin: 0 !important;
        order: 1;
    }

    .hero-text-left {
        position: relative !important;
        top: auto !important;
        left: auto !important;
        max-width: 520px !important;
        text-align: center !important;
        font-size: 1rem !important;
        order: 2;
    }

    /* Hide the services list on tablet — too cramped */
    .hero-text-right {
        display: none !important;
    }
}


.hero-title-nova {
    position: absolute;
    bottom: 22%; /* Moved up */
    left: -5px;
    font-size: clamp(3rem, 10vw, 9rem); /* slightly smaller */
    font-family: var(--font-heading);
    font-weight: 800; /* Extra bold like Nova */
    line-height: 0.9;
    letter-spacing: -0.04em;
    color: #fff;
    z-index: 5;
    animation: blurIn 1.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.hero-title-nova .registered {
    font-size: 0.25em;
    vertical-align: super;
    font-weight: 600;
    margin-left: 0.2rem;
}

/* Wavy Divider SVG */
.wavy-divider {
    width: 100%;
    height: 100px;
    /* Optional: implement an SVG wave here for accuracy to the original design */
}

/* Video Showroom Section */
.video-showroom {
    max-width: 1400px;
    margin: -8rem auto 4rem; /* Superponer sobre el header */
    padding: 0 2rem;
    position: relative;
    z-index: 20;
    animation: fadeInUp 1s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
    animation-delay: 0.3s;
    opacity: 0;
}

.video-wrapper {
    width: 100%;
    aspect-ratio: 2.35 / 1;
    background: rgba(20, 5, 5, 0.6);
    border: 1px solid rgba(255, 0, 40, 0.3);
    border-radius: 24px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8), 0 0 30px rgba(255, 0, 40, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.video-wrapper:hover {
    transform: scale(1.02);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.9), 0 0 40px rgba(255, 0, 40, 0.3);
    border-color: var(--accent-pink);
}

.video-placeholder {
    text-align: center;
    color: var(--text-secondary);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.video-placeholder .icon-play {
    width: 70px;
    height: 70px;
    background: rgba(255, 0, 40, 0.2);
    border: 2px solid var(--accent-pink);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    color: var(--text-primary);
    transition: all 0.3s ease;
    cursor: pointer;
}

.video-placeholder .icon-play::before {
    content: '';
    width: 0;
    height: 0;
    border-top: 12px solid transparent;
    border-bottom: 12px solid transparent;
    border-left: 18px solid white;
    margin-left: 6px;
    transition: transform 0.3s ease;
}

.video-placeholder:hover .icon-play {
    background: rgba(255, 0, 40, 0.4);
    transform: scale(1.1);
    box-shadow: 0 0 20px rgba(255, 0, 40, 0.6);
}

.video-placeholder p {
    font-family: var(--font-heading);
    font-weight: 600;
    letter-spacing: 0.2em;
    font-size: 0.85rem;
    color: white;
}

/* ===== NEW HOME SECTIONS ===== */

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    margin-bottom: 1rem;
    line-height: 1.2;
    text-align: center;
    transition: transform 0.3s ease;
    display: inline-block;
}

.section-title:hover {
    transform: scale(1.03);
}

.home-intro h2.section-title, .home-philosophy h2.section-title, .home-cierre h2.section-title {
    display: block;
}

.section-subtitle {
    font-size: clamp(1.2rem, 2vw, 1.5rem);
    font-weight: 400;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    text-align: center;
}

.section-text {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.6;
    max-width: 800px;
    margin: 0 auto;
}

.text-center { text-align: center; }

/* SECCIÓN 1: Intro */
.home-intro {
    max-width: 1000px;
    margin: 6rem auto;
    padding: 0 2rem;
    text-align: center;
    scroll-margin-top: 120px;
}

.home-intro .section-text {
    font-size: 1.2rem;
    margin-top: 2rem;
}

/* SECCIÓN 2: Services Navigation */
.home-services {
    max-width: 1200px;
    margin: 4rem auto;
    padding: 0 2rem;
}

.service-nav-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.service-nav-card {
    background: rgba(30, 5, 5, 0.4);
    border: 1px solid rgba(255, 0, 40, 0.2);
    border-radius: 20px;
    padding: 3rem 2rem;
    backdrop-filter: blur(10px);
    transition: all 0.4s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.service-nav-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(circle at top right, rgba(255,0,40,0.1), transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.service-nav-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent-pink);
    box-shadow: 0 15px 35px rgba(255, 0, 40, 0.15);
}

.service-nav-card:hover::before { opacity: 1; }

.snc-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.service-nav-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: white;
}

.service-nav-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 2rem;
    flex: 1;
}

.snc-arrow {
    font-size: 1.5rem;
    color: var(--accent-pink);
    transition: transform 0.3s ease;
}

.service-nav-card:hover .snc-arrow {
    transform: translateX(5px);
}

/* SECCIÓN 3: Philosophy */
.home-philosophy {
    background: linear-gradient(135deg, rgba(20, 5, 5, 0.8) 0%, rgba(10, 1, 1, 0.9) 100%);
    padding: 3rem 0 6rem;
    margin: 4rem 0 6rem;
    scroll-margin-top: 120px;
}

.philosophy-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.philosophy-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    margin-top: 4rem;
}

.phil-card {
    text-align: center;
}

.phil-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.phil-card h4 {
    font-size: 1.3rem;
    color: white;
    margin-bottom: 1rem;
}

.phil-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}

.philosophy-quote {
    text-align: center;
    font-size: 1.5rem;
    font-style: italic;
    color: var(--accent-pink);
    max-width: 800px;
    margin: 5rem auto 0;
    line-height: 1.4;
    position: relative;
}

.philosophy-quote::before, .philosophy-quote::after {
    content: '"';
    font-size: 4rem;
    position: absolute;
    opacity: 0.1;
    font-family: serif;
}

.philosophy-quote::before { top: -20px; left: -20px; }
.philosophy-quote::after { bottom: -40px; right: -20px; }

/* SECCIÓN 4: Cierre Contact */
.home-cierre {
    max-width: 800px;
    margin: 6rem auto 4rem;
    padding: 0 2rem;
    text-align: center;
}

.contact-form {
    margin-top: 3rem;
    background: rgba(30, 5, 5, 0.5);
    border: 1px solid rgba(255,255,255,0.1);
    padding: 3rem;
    border-radius: 24px;
    backdrop-filter: blur(10px);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group input, .form-group textarea {
    width: 100%;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.1);
    background: rgba(0,0,0,0.3);
    color: white;
    font-family: var(--font-body);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--accent-pink);
    box-shadow: 0 0 15px rgba(255, 0, 40, 0.2);
}

.btn-agendar {
    width: 100%;
    margin-top: 1rem;
    font-size: 1.1rem;
    padding: 1.2rem;
    border-radius: 12px;
}

.separator-gif-container {
    width: 100%;
    height: 400px; /* Adjust height as needed */
    margin: 4rem 0;
    background: rgba(20, 5, 5, 0.5);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.separator-gif {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0.6;
}

.association-banner {
    text-align: center;
    padding: 3rem 2rem;
    font-size: 1.1rem;
    letter-spacing: 0.2em;
    color: var(--text-secondary);
    font-family: var(--font-heading);
    font-weight: 600;
}

/* Footer Section */
.footer {
    margin-top: 8rem;
    padding: 4rem 2rem 2rem;
    background: linear-gradient(to bottom, transparent, rgba(20, 5, 5, 0.8));
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-info {
    max-width: 400px;
}

.footer-logo {
    margin-bottom: 1.5rem;
}

.footer-desc {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 2rem;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 600;
}

.social-icon:hover {
    background: var(--accent-pink);
    border-color: var(--accent-pink);
}

.footer-links .links-title {
    font-size: 0.85rem;
    color: var(--text-secondary);
    letter-spacing: 0.1em;
    margin-bottom: 1.5rem;
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-links a {
    font-size: 0.95rem;
    color: var(--text-primary);
}

.footer-links a:hover {
    color: var(--accent-pink);
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.75rem;
    color: var(--text-secondary);
    letter-spacing: 0.05em;
}

.dot.green {
    background-color: #00ff88;
    box-shadow: 0 0 10px #00ff88;
    display: inline-block;
}

/* Navigation Toggle (Mobile) */
.menu-toggle {
    display: none;
    background: transparent;
    border: 1px solid #ff3b3b;
    color: #ff3b3b;
    border-radius: 100px;
    padding: 0.5rem 1.2rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 0 10px rgba(255, 59, 59, 0.3), inset 0 0 5px rgba(255, 59, 59, 0.2);
}

.menu-toggle:hover {
    background: rgba(255, 59, 59, 0.1);
    box-shadow: 0 0 15px rgba(255, 59, 59, 0.5), inset 0 0 10px rgba(255, 59, 59, 0.3);
}

.menu-toggle svg {
    stroke: #ff3b3b;
}

/* Responsiveness */
@media (max-width: 900px) {
    .service-nav-grid {
        grid-template-columns: 1fr;
    }

    .philosophy-grid {
        grid-template-columns: 1fr;
    }

    .contact-form {
        padding: 2rem;
    }

    .philosophy-quote {
        font-size: 1.2rem;
    }
    
    .navbar {
        flex-wrap: nowrap; /* Keep logo and toggle on same line */
        padding: 1rem 1.5rem;
        border-radius: 0; /* Full width on mobile */
        justify-content: space-between;
        width: 100%;
    }
    
    .menu-toggle {
        display: flex; /* Force display on mobile */
        z-index: 1000;
        position: relative;
    }
    
    .nav-actions, .nav-right .social-circles, .nav-right .btn-contact {
        display: none;
    }
    
    .nav-center {
        position: fixed;
        top: 0;
        right: -100%; /* Change from left to right for better feel */
        left: auto;
        width: 300px;
        height: 100vh;
        background: rgba(10, 1, 1, 0.98);
        backdrop-filter: blur(20px);
        border-left: 1px solid var(--tech-border);
        padding: 8rem 2rem 2rem;
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
        transition: right 0.5s cubic-bezier(0.16, 1, 0.3, 1);
        z-index: 999;
    }
    
    .navbar.mobile-open .nav-center {
        right: 0;
        box-shadow: -20px 0 50px rgba(0,0,0,0.9);
    }
    
    .nav-links {
        display: flex;
        width: 100%;
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
        padding: 0;
        border-top: none;
        margin-top: 0;
        background: transparent;
        box-shadow: none;
    }

    .nav-mobile-only {
        display: block;
        width: 100%;
    }
    
    .nav-links a {
        display: block;
        padding: 1.2rem 0;
        width: 100%;
        text-align: left;
        font-size: 1.2rem;
        border: none;
        border-bottom: 1px solid rgba(255,255,255,0.05);
        border-radius: 0;
    }

    .nav-links a.active {
        border: none;
        border-bottom: 1px solid var(--accent-pink);
        background: transparent;
        color: var(--accent-pink);
        font-weight: 500;
        box-shadow: none;
        text-shadow: none;
        animation: none;
    }
    
    .hero-title-nova {
        font-size: clamp(2.5rem, 14vw, 4.2rem) !important;
        position: relative !important;
        margin: 5rem 0 0 !important;
        padding: 0 1rem !important;
        order: -1 !important;
        text-align: center !important;
    }
    
    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 2rem;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}

/* Pre Producción & Header Variations */
/* === TECH/RED DESIGN SYSTEM (Premium Edition) === */

:root {
    --tech-red: #ff0b2d;
    --tech-red-glow: rgba(255, 11, 45, 0.4);
    --pure-black: #000000;
    --tech-border: rgba(255, 11, 45, 0.2);
    --tech-bg: #050505;
}

.tech-body {
    background-color: var(--pure-black) !important;
}

/* Typography */
/* Typography */
.massive-title {
    font-family: var(--font-heading);
    line-height: 0.85;
    text-transform: uppercase;
    color: var(--tech-red);
    letter-spacing: -0.05em;
    margin: 0;
    text-shadow: 0 0 30px rgba(255, 11, 45, 0.2);
    position: relative;
    z-index: 10;
    width: 100%;
    overflow-wrap: break-word; /* Safety for very long words */
}

.title-accent {
    display: block;
    font-weight: 950;
    font-size: var(--title-scale-accent, clamp(4rem, 15vw, 13rem));
    letter-spacing: -0.07em;
    line-height: 0.85;
}

.title-base {
    display: block;
    font-weight: 950;
    font-size: clamp(1.8rem, 6vw, 4.5rem);
    letter-spacing: 0.02em;
    line-height: 1.1;
    margin-top: 0; 
    opacity: 1;
}

.tech-label {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.75rem;
    letter-spacing: 0.3em;
    color: var(--tech-red);
    text-transform: uppercase;
    border: 1px solid var(--tech-red);
    padding: 4px 12px;
    display: inline-block;
    margin-bottom: 2rem;
    z-index: 10;
}

/* Layout Containers */
.tech-container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 4rem;
    position: relative;
    z-index: 5;
}

/* Hero Tech Revision - Balanced Proportions */
.hero-tech {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
    align-items: center;
    min-height: 100vh;
    padding: 10rem 0 4rem; /* Reduced bottom padding from 10rem to 4rem */
    gap: 4rem;
    position: relative;
}

@media (max-width: 1200px) {
    .hero-tech {
        grid-template-columns: 1.2fr 0.8fr;
        gap: 2rem;
    }
}

.hero-tech-content {
    position: relative;
    z-index: 10;
}

/* Redundant definition removed */

.hero-tech-media {
    width: 100%;
    aspect-ratio: 4/5;
    border: 1px solid var(--tech-border);
    background: #080808;
    position: relative;
    overflow: hidden;
    box-shadow: 0 0 60px rgba(0,0,0,0.8);
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-tech-media video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Ticker / Running Text */
.ticker-wrap {
    width: 100%;
    overflow: hidden;
    background: var(--pure-black);
    border-top: 1px solid var(--tech-border);
    border-bottom: 1px solid var(--tech-border);
    padding: 2.5rem 0;
    margin: 4rem 0 8rem;
    box-shadow: 0 0 40px rgba(0,0,0,0.5);
    position: relative;
    z-index: 10;
}

.ticker {
    display: flex;
    white-space: nowrap;
    animation: marquee 40s linear infinite;
    will-change: transform; /* Performance optimization */
}

.ticker span {
    font-family: var(--font-heading);
    font-weight: 950; /* Extra bold */
    font-size: 4.5rem; /* Slightly larger for impact */
    color: var(--tech-red);
    text-transform: uppercase;
    padding: 0 5rem; /* Increased horizontal padding between items */
    letter-spacing: -0.01em;
    display: flex;
    align-items: center;
    line-height: 1;
}

.ticker span.outline {
    -webkit-text-stroke: 1.5px var(--tech-red);
    color: transparent;
}

@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Tech Grid */
.tech-service-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    margin-bottom: 12rem;
    gap: 4rem; /* Changed from 1px to spacing between cards */
}

.tech-card {
    padding: 5rem 4rem;
    background: rgba(10, 1, 1, 0.4);
    border: 1px solid var(--tech-border);
    display: flex;
    flex-direction: column;
    min-height: 650px;
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    backdrop-filter: blur(10px);
}

.tech-card:hover {
    background: #0a0101;
}

.tech-card-header {
    margin-bottom: 3rem;
    display: flex;
    justify-content: space-between;
}

.tech-card-num {
    font-family: var(--font-heading);
    font-size: 0.8rem;
    color: var(--tech-red);
    font-weight: 800;
}

.tech-card-title {
    font-size: 3.5rem;
    font-weight: 900;
    color: #fff;
    line-height: 0.9;
    text-transform: uppercase;
    margin-bottom: 2rem;
    letter-spacing: -0.05em;
}

.tech-card-desc {
    color: rgba(255,255,255,0.6);
    font-size: 1.1rem;
    line-height: 1.5;
    margin-bottom: 4rem;
    max-width: 90%;
}

.video-slot {
    width: 100%;
    aspect-ratio: 16/9;
    background: #050505;
    border: 1px solid var(--tech-border);
    overflow: hidden;
    margin-top: auto;
    position: relative;
}

.video-slot video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.6;
    transition: opacity 0.4s ease, transform 0.8s ease;
}

.tech-card:hover .video-slot video {
    opacity: 1;
    transform: scale(1.05);
}

/* CTA Tech Area */
.cta-tech {
    padding: 12rem 0;
    text-align: center;
    border-top: 1px solid var(--tech-border);
}

.tech-button {
    background: var(--tech-red);
    color: white;
    padding: 1.8rem 5rem;
    font-family: var(--font-heading);
    font-weight: 900;
    text-transform: uppercase;
    font-size: 1.4rem;
    letter-spacing: 0.15em;
    border: none;
    cursor: none;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 10px 30px rgba(255, 11, 45, 0.3);
}

.tech-button:hover {
    transform: scale(1.08);
    box-shadow: 0 15px 50px var(--tech-red-glow);
}

@media (max-width: 1024px) {
    .tech-container { padding: 0 1.5rem; }
    .hero-tech { 
        grid-template-columns: 1fr; 
        padding: 8rem 0 3rem; /* Reduced padding for mobile */
        text-align: center;
        gap: 2rem;
    }
    .hero-tech-content {
        order: 2;
        padding: 0 1rem;
    }
    .hero-tech-media { 
        order: 1;
        width: 100vw;
        margin-left: calc(-50vw + 50%);
        aspect-ratio: 16/10; 
        border-right: none;
        border-left: none;
    }
    .title-accent { font-size: clamp(4rem, 18vw, 6rem); }
    .title-base { font-size: clamp(1.5rem, 6vw, 2.5rem); }
    .tech-service-grid { grid-template-columns: 1fr; }
    .tech-card { padding: 3rem 1.5rem; min-height: auto; }
    .tech-card-title { font-size: 2.5rem; }

    /* Fix CTA Mobile Overlap */
    .cta-tech {
        padding: 6rem 1rem;
    }
    .cta-tech h2.massive-title {
        font-size: clamp(2.5rem, 12vw, 4rem) !important;
        margin-bottom: 2rem !important;
        line-height: 1 !important;
    }
    .tech-button {
        padding: 1.2rem 2rem;
        font-size: 1rem;
        width: 100%;
        max-width: 320px;
    }
}

/* Home Slider Styles */
.home-slider-section {
    padding: 3rem 0 1rem;
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.slider-container {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(0,0,0,0.5);
    background: #000;
}

.slider-track {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.slide {
    flex: 0 0 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 1.2s ease;
}

.slide.active img {
    transform: scale(1.05);
}

.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.3);
    border: none;
    color: white;
    font-size: 3rem;
    padding: 1rem;
    cursor: none;
    z-index: 5;
    transition: 0.3s;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.slider-arrow:hover {
    background: rgba(255, 0, 60, 0.5);
}

.slider-arrow.prev { left: 2rem; }
.slider-arrow.next { right: 2rem; }

.slider-dots {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 1rem;
    z-index: 5;
}

.slider-dots .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,0.3);
    cursor: none;
    transition: 0.3s;
}

.slider-dots .dot.active {
    background: #fff;
    transform: scale(1.5);
    box-shadow: 0 0 10px #fff;
}

.slider-caption {
    margin-top: 1.5rem;
    font-size: 0.8rem;
    color: rgba(255,255,255,0.5);
    font-style: italic;
}

@media (max-width: 768px) {
    .home-slider-section {
        padding: 2rem 1.5rem 1rem;
    }
    .slider-container {
        aspect-ratio: 4/3;
    }
    .slider-arrow {
        display: none;
    }
}

@media (max-width: 768px) {
    .navbar {
        padding: 1rem;
        justify-content: space-between;
    }
    .nav-right .social-circles, .nav-right .btn-contact { display: none; }
    .nav-center { display: flex; } /* Ensure it's never set to none so it can slide */
    .menu-toggle { display: flex; }
    
    .ticker span { font-size: 2.5rem; padding: 0 2rem; }
    .ticker-wrap { margin: 2rem 0 4rem; } /* Further reduced for very small screens */
}

/* Scroll Reveal Utilities */
.reveal {
    opacity: 0;
    filter: blur(15px);
    transform: translateY(40px);
    transition: all 1s cubic-bezier(0.2, 0.8, 0.2, 1);
    transition-property: opacity, filter, transform;
}

.reveal.active {
    opacity: 1;
    filter: blur(0);
    transform: translateY(0);
}

/* Staggered transition delays for grid items */
.phil-card.active:nth-child(1) { transition-delay: 0.1s; }
.phil-card.active:nth-child(2) { transition-delay: 0.3s; }
.phil-card.active:nth-child(3) { transition-delay: 0.5s; }

.service-nav-card.active:nth-child(1) { transition-delay: 0.1s; }
.service-nav-card.active:nth-child(2) { transition-delay: 0.3s; }
.service-nav-card.active:nth-child(3) { transition-delay: 0.5s; }

/* ===================================================
   MOBILE FIXES: Asistencia & Contacto pages
   (max-width: 768px)
   =================================================== */
@media (max-width: 768px) {

    /* --- Navbar fixed for sub-pages --- */
    .navbar {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        width: 100%;
        background: rgba(5, 0, 0, 0.95);
        backdrop-filter: blur(10px);
        padding: 0.9rem 1.2rem;
        z-index: 200;
        max-width: 100%;
        margin: 0;
        box-sizing: border-box;
    }

    /* Override any absolute positioning on sub-pages */
    .tech-body .navbar {
        position: fixed;
    }

    /* --- Hero Section --- */
    .hero-tech {
        grid-template-columns: 1fr !important;
        min-height: auto !important;
        padding: 7rem 0 2rem !important;
        gap: 1.5rem !important;
        text-align: center !important;
    }

    .hero-tech-content {
        order: 2 !important;
        padding: 0 1.2rem !important;
        text-align: left;
    }

    .hero-tech-media {
        order: 1 !important;
        width: 100vw !important;
        margin-left: calc(-50vw + 50%) !important;
        aspect-ratio: 16/9 !important;
        border-left: none !important;
        border-right: none !important;
        /* Remove translateY from contacto inline style */
        transform: none !important;
    }

    /* --- Titles --- */
    .title-accent {
        /* ~10-char word fits screen using ~11vw per char */
        font-size: clamp(1.8rem, 11.5vw, 5rem) !important;
        white-space: nowrap;
    }

    .title-base {
        font-size: clamp(1rem, 5.5vw, 2rem) !important;
    }

    .massive-title {
        /* Do NOT break words mid-glyph */
        overflow: visible;
        overflow-wrap: normal;
        word-break: normal;
    }

    /* Fix CTA title enormous size */
    .cta-tech h2.massive-title,
    .cta-tech .massive-title {
        font-size: clamp(2rem, 10vw, 3.5rem) !important;
        margin-bottom: 2rem !important;
        line-height: 1 !important;
    }

    /* --- Section text margin reduction --- */
    .hero-tech-content .section-text {
        margin: 1.5rem 0 !important;
        max-width: 100% !important;
        font-size: 0.95rem !important;
    }

    /* --- Tech container --- */
    .tech-container {
        padding: 0 1rem !important;
    }

    /* --- Service Grid --- */
    .tech-service-grid {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
        margin-bottom: 4rem !important;
    }

    .tech-card {
        padding: 2rem 1.2rem !important;
        min-height: auto !important;
    }

    .tech-card-title {
        font-size: 2rem !important;
    }

    /* --- CTA Section --- */
    .cta-tech {
        padding: 4rem 1rem !important;
        border-top: 1px solid var(--tech-border);
    }

    .tech-button {
        padding: 1.2rem 2rem !important;
        font-size: 1rem !important;
        width: 100% !important;
        max-width: 100% !important;
        display: block;
        box-sizing: border-box;
    }

    /* --- Contact Form --- */
    .contact-form {
        padding: 1.5rem 1rem !important;
        margin-top: 1.5rem !important;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box;
    }

    /* Fix overflowing inline styles on form inputs */
    .contact-form input,
    .contact-form textarea {
        font-size: 0.9rem !important;
        letter-spacing: 0.05em !important;
    }

    .contact-form button[type="submit"] {
        padding: 1.2rem !important;
        font-size: 1rem !important;
        width: 100% !important;
    }

    /* --- Ticker --- */
    .ticker span {
        font-size: 2rem !important;
        padding: 0 1.5rem !important;
    }

    .ticker-wrap {
        margin: 2rem 0 3rem !important;
        padding: 1.5rem 0 !important;
    }

    /* --- Tech Label --- */
    .tech-label {
        font-size: 0.65rem !important;
        letter-spacing: 0.2em !important;
        margin-bottom: 1rem !important;
    }

    /* --- Footer --- */
    .footer {
        margin-top: 3rem;
        padding: 2rem 1rem 1rem;
    }

    .footer-bottom {
        flex-direction: column !important;
        gap: 0.5rem !important;
        text-align: center !important;
        font-size: 0.65rem !important;
    }
}

/* Extra small phones (360px and below) */
@media (max-width: 400px) {
    .title-accent {
        font-size: clamp(2.5rem, 18vw, 4rem) !important;
    }
    .tech-card-title {
        font-size: 1.6rem !important;
    }
    .cta-tech h2.massive-title,
    .cta-tech .massive-title {
        font-size: clamp(1.8rem, 10vw, 2.8rem) !important;
    }
}

/* ── Mobile: solo animar títulos ───────────────────────
   En pantallas pequeñas quitamos la animación reveal de
   cards, descripciones, formularios, banners, etc.
   Solo h1-h4 y .tech-label mantienen el efecto.
   ─────────────────────────────────────────────────── */
@media (max-width: 768px) {
    .reveal:not(h1):not(h2):not(h3):not(h4):not(.tech-label):not(.massive-title) {
        opacity: 1 !important;
        filter: none !important;
        transform: none !important;
        transition: none !important;
        animation: none !important;
    }
}

