:root {
    --brand-blue: #0A1C3B;
    --brand-blue-light: #163a86;
    --text-dark: #111111;
    --text-grey: #666666;
    --bg-white: #ffffff;
    --bg-light-grey: #f5f5f5;
    
    --font-family: 'Inter', sans-serif;
    --transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: var(--font-family);
    border-style: solid;
    border-width: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-family);
    color: var(--text-dark);
    background-color: var(--bg-white);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

html {
    overflow-x: hidden;
}

.container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2.5rem;
    font-family: var(--font-family);
    font-weight: 500;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: 0;
    cursor: pointer;
    border: 1px solid transparent;
    transition: transform 0.4s cubic-bezier(0.21, 0.47, 0.32, 0.98), background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    will-change: transform;
}

.btn:hover {
    transform: scale(1.02);
}

.btn-primary {
    background-color: var(--brand-blue-light);
    color: var(--bg-white);
    border-color: var(--brand-blue-light);
}

.btn-primary:hover {
    background-color: var(--bg-white);
    color: var(--brand-blue-light);
}

.btn-nav {
    background-color: transparent;
    color: var(--brand-blue);
    border-color: var(--brand-blue);
    padding: 0.5rem 1.5rem;
    font-size: 0.8rem;
}

.btn-nav:hover {
    background-color: var(--brand-blue);
    color: var(--bg-white);
}

.header.scrolled .btn-nav {
    color: var(--brand-blue);
    border-color: var(--brand-blue);
}
.header.scrolled .btn-nav:hover {
    background-color: var(--brand-blue);
    color: var(--bg-white);
}

.btn-full {
    width: 100%;
}

.btn-outline {
    background-color: transparent;
    color: var(--brand-blue);
    border-color: var(--brand-blue);
}
.btn-outline:hover {
    background-color: var(--brand-blue);
    color: var(--bg-white);
}

.btn-outline-white {
    background-color: transparent;
    color: var(--bg-white);
    border-color: var(--bg-white);
}
.btn-outline-white:hover {
    background-color: var(--bg-white);
    color: var(--text-dark);
}

/* Navbar */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    padding: 1rem 0;
    background-color: transparent;
    border-bottom: 1px solid transparent;
    transition: var(--transition);
}

.header .logo a, .header .nav-links a {
    color: var(--brand-blue);
}

.header .btn-nav {
    color: var(--bg-white);
    border-color: var(--bg-white);
}

.header .btn-nav:hover {
    background-color: var(--bg-white);
    color: var(--brand-blue);
}

.header.scrolled {
    padding: 0.75rem 0;
    background-color: var(--bg-white);
    border-bottom: 1px solid rgba(0,0,0,0.1);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.header.scrolled .logo a, .header.scrolled .nav-links a {
    color: var(--brand-blue);
}

.header.scrolled .mobile-menu-btn span {
    background-color: var(--brand-blue);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.logo a {
    font-size: 1.5rem;
    font-weight: 700;
    transition: var(--transition);
}

.nav-logo {
    height: 70px;
    width: auto;
    display: block;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

.nav-links a {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--brand-blue);
    position: relative;
}

.nav-links a:not(.btn)::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background-color: currentColor;
    transition: width 0.3s ease;
}

.nav-links a:not(.btn):hover::after {
    width: 100%;
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 6px;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
    z-index: 101;
}

.mobile-menu-btn span {
    width: 30px;
    height: 2px;
    background-color: var(--brand-blue);
    transition: var(--transition);
}

/* ========================================================= */
/* HERO SLIDESHOW (crossfade + Ken Burns)                    */
/* ========================================================= */
.hero-slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transform: scale(1.05);
    transition: opacity 1.6s ease-in-out;
    will-change: opacity, transform;
    pointer-events: none;
}

.hero-slide.is-active {
    opacity: 1;
    animation: heroKenburns 8s ease-out forwards;
}

@keyframes heroKenburns {
    from { transform: scale(1.05); }
    to   { transform: scale(1.14); }
}

/* En celular la pantalla es vertical y las fotos horizontales se recortan mucho:
   cada foto define su foco (--focus-m) para que quede a la vista lo importante,
   y el zoom es mas suave para no recortar de mas. */
@media (max-width: 767px) {
    .hero-slide {
        object-position: var(--focus-m, 50% 50%);
        transform-origin: var(--focus-m, 50% 50%);
        transform: scale(1);
    }

    .hero-slide.is-active {
        animation-name: heroKenburnsMobile;
    }
}

@keyframes heroKenburnsMobile {
    from { transform: scale(1); }
    to   { transform: scale(1.04); }
}

/* HERO CLARO (foto del consultorio + velo blanco + ondas)    */
.hero-light {
    background-color: #f4f7fb;
}

.hero-light-photo {
    position: absolute;
    top: 0;
    left: 30%;
    width: 70%;
    height: 100%;
    object-fit: cover;
    object-position: 55% 40%;
    z-index: 0;
}

.hero-light-veil {
    background:
        linear-gradient(90deg, #f4f7fb 0%, #f4f7fb 30%, rgba(244,247,251,0.75) 38%, rgba(244,247,251,0) 55%),
        linear-gradient(180deg, rgba(255,255,255,0.35) 0%, rgba(255,255,255,0) 40%);
}

.hero-waves {
    width: min(34vw, 480px);
    height: auto;
}

.hero-title {
    color: var(--brand-blue);
    font-size: clamp(2.6rem, 6.4vw, 5.25rem);
}

.hero-title-accent {
    background: linear-gradient(90deg, #2a63c0 0%, #5b9be8 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    padding-bottom: 0.08em;
}

.hero-lead {
    max-width: 26rem;
}

@media (max-width: 767px) {
    /* En celular el texto va arriba y la foto ocupa la parte de abajo,
       con Carlos a la derecha (como en el mockup) */
    .hero-light-photo {
        top: 34%;
        left: 0;
        width: 100%;
        height: 66%;
        object-position: 40% 0%;
    }

    .hero-light-veil {
        background:
            linear-gradient(180deg, #f4f7fb 0%, #f4f7fb 34%, rgba(244,247,251,0.6) 42%, rgba(255,255,255,0) 56%),
            linear-gradient(90deg, rgba(255,255,255,0.92) 0%, rgba(255,255,255,0.6) 45%, rgba(255,255,255,0) 68%);
    }

    .hero-waves {
        width: 70vw;
    }

    .hero-title {
        font-size: clamp(2.3rem, 10.4vw, 3.2rem);
    }

    .hero-lead {
        max-width: 15rem;
        font-size: 1rem;
    }
}

/* Chips de especialidades en el hero */
.hero-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    white-space: nowrap;
    width: clamp(100px, 28vw, 150px);
    padding: 0.7rem 0.5rem;
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.45);
    border-radius: 50rem;
    color: #fff;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.hero-chip.is-compact {
    font-size: clamp(0.56rem, 2.6vw, 0.68rem);
}

.hero-chip.is-tight {
    font-size: clamp(0.46rem, 2.1vw, 0.56rem);
}

.hero-chip:hover {
    background-color: #fff;
    color: var(--brand-blue);
    border-color: #fff;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2);
    transform: translateY(-2px);
}

@media (prefers-reduced-motion: reduce) {
    .hero-slide.is-active { animation: none; transform: scale(1); }
    .hero-slide { transition: none; }
}

/* ========================================================= */
/* HERO GLASSMORPHISM (Full Bleed Video Style)               */
/* ========================================================= */
.hero-glass {
    position: relative;
    width: 100vw;
    height: 100vh;
    background-color: #0b0f15;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-video-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.glass-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-overlay {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.4); /* Tint oscuro para contraste */
}

/* Panel de Cristal */
.glass-panel {
    position: relative;
    z-index: 10;
    background: rgba(20, 20, 20, 0.35); /* Vidrio oscuro ahumado */
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 32px;
    padding: 4rem 5rem;
    text-align: center;
    box-shadow: 0 30px 60px rgba(0,0,0,0.4);
}

.glass-title {
    font-size: clamp(3rem, 8vw, 6rem);
    line-height: 1;
    font-weight: 800;
    letter-spacing: -0.04em;
    color: #ffffff;
    margin-bottom: 1rem;
    text-shadow: 0 4px 20px rgba(0,0,0,0.5);
}

.glass-subtitle {
    font-size: clamp(1rem, 2vw, 1.25rem);
    font-weight: 400;
    letter-spacing: 0.15em;
    color: rgba(255,255,255,0.8);
    margin-bottom: 3rem;
}

.glass-btn {
    background-color: #ffffff;
    color: #111418;
    padding: 1.2rem 3rem;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    border: none;
    transition: all 0.3s ease;
    display: inline-block;
    text-decoration: none;
}
.glass-btn:hover {
    background-color: var(--brand-blue);
    color: #ffffff;
    transform: scale(1.05);
}

/* Indicador Scroll */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    color: rgba(255,255,255,0.6);
    font-size: 0.85rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}
.scroll-indicator::after {
    content: '';
    width: 2px;
    height: 40px;
    background: linear-gradient(to bottom, rgba(255,255,255,0.6), transparent);
    animation: scrollLine 2s infinite;
}

@keyframes scrollLine {
    0% { transform: scaleY(0); transform-origin: top; }
    50% { transform: scaleY(1); transform-origin: top; }
    51% { transform: scaleY(1); transform-origin: bottom; }
    100% { transform: scaleY(0); transform-origin: bottom; }
}

@media (max-width: 900px) {
    .glass-panel {
        padding: 3rem 2rem;
        width: 90%;
    }
}
/* Bio Section */
.section-bio {
    padding: 2.5rem 0;
    background-color: var(--bg-white);
    text-align: center;
}

.bio-container {
    max-width: 800px;
}

.bio-title {
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    color: var(--brand-blue);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.bio-subtitle {
    font-size: 0.85rem;
    color: var(--brand-blue-light);
    font-weight: 600;
    letter-spacing: 0.1em;
    margin-bottom: 2rem;
}

.bio-text {
    font-size: 0.95rem;
    color: var(--brand-blue);
    line-height: 1.6;
    margin-bottom: 2rem;
}

.bio-text p {
    margin-bottom: 0;
}

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

.btn-outline:hover {
    background-color: var(--brand-blue);
    color: var(--bg-white);
}

/* Marquee Banner */
.section-marquee {
    background-color: var(--brand-blue);
    padding: 2.5rem 0;
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.marquee-container {
    width: 100vw;
    max-width: 100%;
}

.marquee-track {
    display: flex;
    white-space: nowrap;
    overflow: hidden;
    width: 100%;
}

.marquee-content {
    display: inline-flex;
    color: rgba(255, 255, 255, 0.6);
    font-size: 1.75rem;
    font-weight: 500;
}

.marquee-content span {
    padding: 0 0.5rem;
}

.track-left .marquee-content {
    animation: marquee-left 40s linear infinite;
}

.track-right .marquee-content {
    animation: marquee-right 40s linear infinite;
}

@keyframes marquee-left {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

@keyframes marquee-right {
    0% { transform: translateX(-50%); }
    100% { transform: translateX(0); }
}

/* Info Header / Treatments Grid */
.section-info {
    padding: 2.5rem 0;
    background-color: var(--bg-white);
}

.info-header {
    max-width: 900px;
    margin-bottom: 4rem;
}

.info-header h2 {
    font-size: clamp(1.8rem, 3.5vw, 2.5rem);
    line-height: 1.2;
    font-weight: 500;
    color: var(--text-grey);
}

/* Services List Section */
.section-services-list {
    background-color: var(--bg-white);
}

.service-list-row {
    width: 100%;
    margin-bottom: 2rem;
}

.bg-grey {
    background-color: #a8a8a8;
    color: var(--bg-white);
}

.service-list-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: stretch;
    min-height: 500px;
}

.service-list-grid.reverse {
    direction: rtl;
}

.service-list-grid.reverse > * {
    direction: ltr;
}

.service-list-text {
    padding: 5rem 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.service-list-grid.reverse .service-list-text {
    padding: 5rem 0;
}

.service-list-text h3 {
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    font-weight: 500;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.service-list-text p {
    font-size: 1.15rem;
    line-height: 1.6;
    margin-bottom: 3rem;
    opacity: 0.9;
}

/* Accordion Simulation */
.service-accordion {
    display: flex;
    flex-direction: column;
    border-top: 1px solid rgba(255, 255, 255, 0.4);
}

.accordion-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 1rem;
    margin: 0.25rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    font-size: 1.25rem;
    font-weight: 500;
    cursor: pointer;
    will-change: transform, background-color;
}

.accordion-item .icon {
    font-size: 1.5rem;
    font-weight: 300;
    width: 32px;
    height: 32px;
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    will-change: transform;
}

.service-list-img {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 400px;
}

.service-list-img img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media (max-width: 900px) {
    .service-list-grid {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .service-list-grid.reverse {
        direction: ltr;
    }

    .service-list-text {
        padding: 3rem 1rem !important;
    }
    
    .service-list-img {
        min-height: 300px;
    }
}

.text-white { color: #ffffff; }
.bg-white { background-color: #ffffff; }
.bg-opacity-75 { background-color: rgba(255, 255, 255, 0.9); }
.text-center { text-align: center; }
.w-100 { width: 100%; }
.h-100 { height: 100%; }
.p-3 { padding: 2rem; }

/* Split Section */
.section-split {
    padding: 3rem 0;
    background-color: var(--bg-light-grey);
}

.split-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
    align-items: center;
}

.split-left h3 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.time-badge {
    display: inline-block;
    padding: 0.25rem 1rem;
    border: 1px solid var(--text-dark);
    border-radius: 50rem;
    font-size: 0.85rem;
    text-transform: uppercase;
    margin-bottom: 2rem;
}

.split-left p {
    font-size: 1.125rem;
    color: var(--text-grey);
    margin-bottom: 1.5rem;
}

.clean-list {
    list-style: none;
    margin-bottom: 3rem;
}

.clean-list {
    list-style: none;
}

.clean-list li {
    margin-bottom: 1rem;
    font-size: 1.125rem;
    font-weight: 500;
}

.split-right img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

/* Testimonials */
.section-testimonials {
    padding: 3rem 0;
    background-color: var(--brand-blue);
    color: var(--bg-white);
}

.testimonial-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 4rem;
}

.dot-small {
    width: 8px;
    height: 8px;
    background-color: var(--bg-white);
    border-radius: 50%;
}

.testimonial-header span {
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.85rem;
}

.testimonial-content {
    margin-bottom: 4rem;
    min-height: 200px;
}

.testimonial-content h2 {
    font-size: clamp(1.5rem, 2.5vw, 2.5rem);
    line-height: 1.4;
    font-weight: 400;
    margin-bottom: 2rem;
}

.testimonial-author {
    font-size: 1.25rem;
    color: rgba(255,255,255,0.7);
}

.testimonial-controls {
    display: flex;
    gap: 1rem;
}

.t-btn {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.3);
    color: var(--bg-white);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    font-family: var(--font-family);
    transition: var(--transition);
}

.t-btn.active, .t-btn:hover {
    background: var(--bg-white);
    color: var(--brand-blue);
}

/* CTA Banner Parallax */
.section-cta-banner {
    position: relative;
    padding: 8rem 0;
    margin-bottom: 4rem;
    color: var(--bg-white);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    perspective: 1000px;
}

.cta-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background-image: url('pediatrica.jfif');
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

.cta-bg img {
    display: none;
}

.cta-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(0,0,0,0.68) 0%, rgba(0,0,0,0.42) 50%, rgba(0,0,0,0.28) 100%);
}

.cta-parallax-content {
    text-align: center;
    z-index: 1;
    will-change: transform;
    transform: translateY(0) translateZ(0);
    transition: transform 0.1s ease-out;
}

.cta-parallax-content h2 {
    font-size: clamp(2rem, 3.5vw, 3rem);
    line-height: 1.1;
    font-weight: 500;
    margin-bottom: 2.5rem;
    max-width: 700px;
}

/* Contact & Map */
.section-contact {
    padding: 3rem 0;
    background-color: var(--bg-white);
}

.contact-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-info h2 {
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    margin-bottom: 1rem;
}

.contact-info p {
    font-size: 1.125rem;
    color: var(--text-grey);
    margin-bottom: 0.5rem;
}

.contact-info .phone {
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--text-dark);
    margin-bottom: 3rem;
}

.clean-form .form-group {
    margin-bottom: 1.5rem;
}

.clean-form input {
    width: 100%;
    padding: 1rem 0;
    background: transparent;
    border: none;
    border-bottom: 1px solid #ddd;
    font-size: 1rem;
    font-family: var(--font-family);
    transition: var(--transition);
}

.clean-form input:focus {
    outline: none;
    border-bottom-color: var(--text-dark);
}

.contact-map {
    width: 100%;
    height: 400px;
    background: var(--bg-light-grey);
}

/* Footer */
.footer {
    background-color: var(--bg-light-grey);
    padding: 3rem 0 1rem 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 6rem;
}

.footer-brand h2 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.footer-logo {
    height: 60px;
    width: auto;
    margin-bottom: 1rem;
}

.footer-logo-large {
    width: 100%;
    max-width: 100%;
    height: auto;
    margin-bottom: 1rem;
    mix-blend-mode: multiply;
}

.footer-links h4 {
    font-size: 0.9rem;
    text-transform: uppercase;
    font-weight: 600;
    color: var(--text-dark);
}

.divider-horizontal {
    background-color: var(--text-dark);
    width: 100%;
    height: 1px;
    margin-bottom: 1rem;
}

.footer_link-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.dot {
    background-color: var(--text-dark);
    border-radius: 50%;
    width: 0.4rem;
    height: 0.4rem;
}

.footer-links a, .footer-links p {
    display: block;
    margin-bottom: 1rem;
    color: var(--text-dark);
    font-weight: 500;
}

.footer-links a:hover {
    color: var(--brand-blue-light);
}

.footer-bottom {
    border-top: 1px solid #ddd;
    padding-top: 2rem;
    text-align: center;
    color: var(--text-grey);
    font-size: 0.9rem;
}

/* Animations (Delegated to GSAP) */
.fade-in-up {
    opacity: 0;
    visibility: hidden; /* Prevent FOUC. GSAP autoAlpha will handle it */
    will-change: transform, opacity;
}

/* Hardware Acceleration & Microinteractions */
.service-list-row, .split-left, .split-right, .main-image {
    will-change: transform, opacity;
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    .fade-in-up {
        opacity: 1 !important;
        visibility: visible !important;
        transform: none !important;
    }
}
/* ========================================================= */
/* --- Superpower Fullscreen Scrollytelling --- */
.sp-scrollytelling-section {
    position: relative;
    width: 100%;
}

.sp-pinned-container {
    position: sticky;
    top: 0;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    background-color: var(--brand-dark);
}

.sp-media-bg {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: 1;
}

.sp-img {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    object-fit: cover;
    opacity: 0;
    transform: scale(1.05);
    will-change: opacity, transform;
}
.sp-img.active { opacity: 1; transform: scale(1); }

.sp-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to right, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.4) 100%);
    z-index: 2;
}

.sp-ui-container {
    position: relative;
    z-index: 3;
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: white; 
}

.sp-ui-container .accordion-item {
    border-bottom-color: rgba(255,255,255,0.2);
}
.sp-ui-container h3, .sp-ui-container p { color: white; }

/* Left Content */
.sp-content-left {
    position: relative;
    width: 50%;
    height: 100%;
    display: flex;
    align-items: center;
}

.sp-panel {
    position: absolute;
    width: 100%;
    opacity: 0;
    transform: translateY(30px);
    pointer-events: none;
    will-change: opacity, transform;
}
.sp-panel h3 { font-size: clamp(2.5rem, 4vw, 3.5rem); margin-bottom: 1rem; }
.sp-panel p { font-size: 1.15rem; margin-bottom: 2rem; opacity: 0.9; line-height: 1.6; }

.sp-panel.active {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

/* Right Menu Nav */
.sp-nav-right {
    width: 35%;
    display: flex;
    justify-content: flex-end;
}

.sp-nav-list {
    list-style: none;
    padding: 0; margin: 0;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.sp-nav-item {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 1.5rem;
    font-size: 1.25rem;
    color: rgba(255,255,255,0.4);
    position: relative;
    transition: color 0.3s ease;
}

.sp-nav-item.active {
    color: white;
}

.sp-nav-item::before {
    content: '';
    position: absolute;
    left: -20px;
    height: 100%;
    width: 2px;
    background-color: white;
    opacity: 0;
    transform: scaleY(0);
    transition: all 0.3s ease;
}

.sp-nav-item.active::before {
    opacity: 1;
    transform: scaleY(1);
}

.nav-text {
    font-weight: 500;
}
.nav-num {
    font-weight: 300;
    opacity: 0.8;
}

/* Fallback Mobile */
@media (max-width: 900px) {
    .sp-pinned-container {
        position: relative;
        height: auto;
        padding: 4rem 0;
        background: none;
    }
    .sp-media-bg { display: none; }
    .sp-scroll-spacer { display: none; }
    
    .sp-ui-container {
        flex-direction: column;
        color: var(--text-dark); 
    }
    
    .sp-ui-container h3, .sp-ui-container p { color: var(--text-dark); }
    .sp-ui-container .accordion-item { border-bottom-color: rgba(0,0,0,0.1); }
    .sp-ui-container .icon { border-color: rgba(0,0,0,0.3); }

    .sp-content-left {
        width: 100%;
        display: flex;
        flex-direction: column;
        gap: 4rem;
    }
    
    .sp-panel {
        position: relative;
        opacity: 1 !important;
        transform: none !important;
        pointer-events: auto;
    }
    .sp-nav-right { display: none; }
    
    .st-img-mobile {
        display: block;
        width: 100%;
        height: 300px;
        margin-top: 2rem;
        border-radius: 8px;
        overflow: hidden;
    }
    .st-img-mobile img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
}

/* Responsive */
@media (max-width: 992px) {
    .info-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .split-container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .service-list-grid {
        display: flex;
        flex-direction: column;
        gap: 2rem;
    }
    
    .service-list-text {
        padding: 3rem 0 4rem 0 !important;
    }
    
    .service-list-img {
        order: -1; /* Image always on top on mobile */
        height: 300px;
    }
    
    .service-list-img img {
        height: 100%;
        object-fit: cover;
    }
    
    .service-list-grid.reverse {
        direction: ltr;
    }
    
    .contact-split {
        grid-template-columns: 1fr;
    }
    
    .contact-map {
        height: 400px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

/* Menu hamburguesa hasta 1023px: con el logo a la izquierda el menu completo no entra en tablets */
@media (max-width: 1023px) {
    .nav-links {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background-color: var(--bg-white);
        flex-direction: column;
        justify-content: center;
        gap: 2rem;
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s ease, visibility 0s linear 0.4s;
        z-index: 99;
    }
    
    .nav-links.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transition-delay: 0s;
    }
    
    .nav-links a {
        color: var(--brand-blue) !important;
        font-size: 1.25rem;
    }
    
    .hide-mobile {
        display: none !important;
    }
    
    .mobile-menu-btn {
        display: flex;
        position: relative;
        z-index: 102;
    }
    
    .logo a {
        font-size: 1.25rem;
        white-space: nowrap;
    }
    
    .header.scrolled .mobile-menu-btn span {
        background-color: var(--brand-blue);
    }
}

@media (max-width: 768px) {

    
    .info-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .hero {
        padding-top: 0;
    }
    
    .section-cta-banner {
        padding: 8rem 1rem;
    }
    
    .footer-bottom {
        flex-direction: column !important;
        align-items: center !important;
        text-align: center;
        gap: 1rem !important;
    }
    
    .frankia-logo {
        text-align: center !important;
    }
    
}

/* Mobile Menu Active State */
.menu-open .mobile-menu-btn span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
    background-color: var(--brand-blue);
}
.menu-open .mobile-menu-btn span:nth-child(2) {
    opacity: 0;
}
.menu-open .mobile-menu-btn span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
    background-color: var(--brand-blue);
}

@media (max-width: 768px) {
    .menu-open {
        overflow: hidden;
    }
}

.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 40px;
    right: 40px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    box-shadow: 2px 2px 10px rgba(0,0,0,0.2);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
    text-decoration: none;
}

.whatsapp-float:hover {
    transform: scale(1.05);
}

.whatsapp-tooltip {
    position: absolute;
    right: 65px;
    top: 50%;
    transform: translateY(-50%);
    background-color: #fff;
    color: #333;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    white-space: nowrap;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    pointer-events: none;
}

.whatsapp-float:hover .whatsapp-tooltip {
    opacity: 1;
    visibility: visible;
    right: 75px;
}

.whatsapp-tooltip::after {
    content: '';
    position: absolute;
    right: -6px;
    top: 50%;
    transform: translateY(-50%);
    border-width: 6px 0 6px 6px;
    border-style: solid;
    border-color: transparent transparent transparent #fff;
}

@media (max-width: 768px) {
    .whatsapp-float {
        width: 54px;
        height: 54px;
        bottom: 20px;
        right: 20px;
    }
    .whatsapp-tooltip {
        display: none !important;
    }
}

/* Social Icons Footer */
.social-icons {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.social-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background-color: rgba(0,0,0,0.03);
    transition: var(--transition);
}

.social-icons svg {
    width: 22px;
    height: 22px;
    fill: var(--brand-blue);
    transition: var(--transition);
}

.social-icons a:hover {
    background-color: var(--brand-blue);
}

.social-icons a:hover svg {
    fill: var(--bg-white);
}

/* ========================================================= */
/* REELS CAROUSEL (Mobile scroll-snap, Desktop grid)         */
/* ========================================================= */
.reels-carousel-wrapper {
    position: relative;
}

/* Desktop: grid de 4 columnas */
.reels-carousel {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.reel-slide {
    display: flex;
    flex-direction: column;
    width: 100%;
}

/* Dots: ocultos en desktop */
.reels-dots {
    display: none;
}

/* Mobile: carrusel con scroll-snap */
@media (max-width: 767px) {
    .reels-carousel {
        display: flex;
        flex-direction: row;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        gap: 1rem;
        padding-bottom: 1rem;
        /* Ocultar scrollbar */
        -ms-overflow-style: none;
        scrollbar-width: none;
    }

    .reels-carousel::-webkit-scrollbar {
        display: none;
    }

    .reel-slide {
        flex: 0 0 85%;
        scroll-snap-align: center;
        min-width: 0;
    }

    /* Dots visibles en mobile */
    .reels-dots {
        display: flex;
        justify-content: center;
        gap: 8px;
        margin-top: 1rem;
    }

    .reels-dot {
        width: 8px;
        height: 8px;
        border-radius: 50%;
        background-color: #cbd5e1;
        cursor: pointer;
        transition: background-color 0.3s ease, transform 0.3s ease;
    }

    .reels-dot.active {
        background-color: var(--brand-blue);
        transform: scale(1.3);
    }
}

