/* ============================================================
   BTL IMPRESION 3D — DESIGN SYSTEM
   Font: Outfit | Light/Dark theme | Celeste/Blue accent (logo)
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* --- SCROLLBAR --- */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb {
    background: var(--accent);
    border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover { background: var(--accent-hover); }
html { scrollbar-color: var(--accent) var(--bg); scrollbar-width: thin; }

/* --- THEME TOKENS --- */
:root,
[data-theme="light"] {
    --bg:            #f5f9fc;
    --bg-card:       #ffffff;
    --bg-elevated:   #eaf2f9;
    --bg-subtle:     #dfeaf3;
    --border:        rgba(25, 40, 68, 0.08);
    --border-hover:  rgba(25, 40, 68, 0.16);
    --text:          #14213a;
    --text-secondary:#41506b;
    --text-muted:    #8391a6;
    --accent:        #0d8fd6;
    --accent-light:  #d4edfb;
    --accent-hover:  #0a72ad;
    --navbar-bg:     rgba(245, 249, 252, 0.5);
    --card-shadow:   0 8px 32px rgba(25, 40, 68, 0.07);
}

[data-theme="dark"] {
    --bg:            #0a1220;
    --bg-card:       #111b2e;
    --bg-elevated:   #16233a;
    --bg-subtle:     #1e2e49;
    --border:        rgba(255, 255, 255, 0.08);
    --border-hover:  rgba(255, 255, 255, 0.16);
    --text:          #eef4fb;
    --text-secondary:#aab7ca;
    --text-muted:    #6a7890;
    --accent:        #2db7fa;
    --accent-light:  rgba(45, 183, 250, 0.14);
    --accent-hover:  #6fd0ff;
    --navbar-bg:     rgba(10, 18, 32, 0.5);
    --card-shadow:   0 8px 32px rgba(0, 0, 0, 0.35);
}

/* Dark section colors (always dark regardless of theme) */
.dark-section {
    --ds-bg:         #0a1220;
    --ds-card:       #14203a;
    --ds-border:     rgba(255, 255, 255, 0.08);
    --ds-border-hover: rgba(255, 255, 255, 0.16);
    --ds-text:       #eef4fb;
    --ds-text-sec:   #aab7ca;
    --ds-text-muted: #6a7890;
    --ds-accent:     #2db7fa;
    --ds-accent-light: rgba(45, 183, 250, 0.14);
}
[data-theme="dark"] .dark-section {
    --ds-bg:         #111b2e;
    --ds-card:       #16233a;
}

/* --- COMMON --- */
:root {
    --font:          'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
    --container:     1200px;
    --radius:        10px;
    --radius-lg:     16px;
    --section-pad:   clamp(80px, 10vw, 140px);
    --ease:          cubic-bezier(0.16, 1, 0.3, 1);
    --ease-spring:   cubic-bezier(0.34, 1.56, 0.64, 1);
    --duration:      0.6s;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    /* Candado anti-scroll horizontal (clip no crea contenedor de scroll,
       así ScrollTrigger y sticky siguen funcionando) */
    overflow-x: clip;
}

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: clip;
    transition: background 0.5s var(--ease), color 0.5s var(--ease);
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font: inherit; color: inherit; }

.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px;
}

.section { padding: var(--section-pad) 0; position: relative; z-index: 2; }

/* --- NOISE TEXTURE --- */
.hero__noise,
.process__noise,
.cta-section__noise {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
    opacity: 0.35;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
    background-repeat: repeat;
    background-size: 256px 256px;
}

/* --- REVEAL --- */
/* Barra de progreso de scroll (arriba de todo) */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    width: 0;
    background: linear-gradient(90deg, #2db7fa, #0d8fd6);
    box-shadow: 0 0 8px rgba(45, 183, 250, 0.5);
    z-index: 200;
    will-change: width;
}

.reveal {
    opacity: 0;
    transform: translateY(36px);
    transition: opacity var(--duration) var(--ease),
                transform var(--duration) var(--ease);
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- BUTTONS --- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font);
    font-weight: 600;
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border-radius: 50px;
    transition: all 0.3s var(--ease);
    white-space: nowrap;
}
.btn:active { transform: scale(0.97) translateY(1px); }
.btn--sm { padding: 11px 24px; font-size: 0.8rem; }
.btn--lg { padding: 14px 32px; font-size: 0.82rem; }
.btn--full { width: 100%; justify-content: center; }

.btn--primary {
    background: var(--accent);
    color: #fff;
}
.btn--primary:hover {
    background: var(--accent-hover);
    box-shadow: 0 4px 24px rgba(13, 143, 214, 0.25);
    transform: translateY(-2px);
}

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

.btn--outline-light {
    border: 1px solid rgba(255,255,255,0.15);
    color: #f0f0ec;
    background: transparent;
}
.btn--outline-light:hover {
    border-color: var(--ds-accent);
    color: var(--ds-accent);
    background: var(--ds-accent-light);
}

/* ============================================================
   NAVBAR
   ============================================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 12px 0;
    transition: all 0.4s var(--ease);
}
.navbar.scrolled {
    padding: 8px 0;
}
.navbar__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--navbar-bg);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border: 1px solid var(--border);
    border-radius: 60px;
    padding: 6px 12px 6px 28px;
    transition: all 0.4s var(--ease);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
}
.navbar.scrolled .navbar__inner {
    border-color: var(--border-hover);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}
.navbar__logo {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    color: var(--text);
    transition: color 0.4s;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
}
.navbar__logo-img {
    height: 58px;
    width: auto;
    display: block;
    transition: height 0.4s var(--ease);
}
.navbar.scrolled .navbar__logo-img {
    height: 50px;
}
/* Logo: version clara (iso/frase oscuros) por defecto; version dark (iso/frase en blanco) sobre fondos oscuros */
.navbar__logo-img--dark { display: none; }
[data-theme="dark"] .navbar__logo-img--light,
.navbar.over-dark .navbar__logo-img--light { display: none; }
[data-theme="dark"] .navbar__logo-img--dark,
.navbar.over-dark .navbar__logo-img--dark { display: block; }
.logo-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    background: var(--accent);
    border-radius: 50%;
    margin-left: 2px;
    vertical-align: super;
    transition: background 0.4s;
}

/* Language Switch */
.lang-switch {
    display: flex;
    position: relative;
    border: 1px solid var(--border);
    border-radius: 50px;
    background: var(--bg-card);
    padding: 3px;
    transition: all 0.3s var(--ease);
}
.lang-switch__btn {
    position: relative;
    z-index: 1;
    width: 34px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50px;
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    background: none;
    border: none;
    cursor: pointer;
    transition: color 0.3s var(--ease);
}
.lang-switch__btn.active {
    color: #fff;
}
.lang-switch__indicator {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 34px;
    height: 30px;
    background: var(--accent);
    border-radius: 50px;
    transition: transform 0.35s var(--ease-spring);
}
.lang-switch[data-active="en"] .lang-switch__indicator {
    transform: translateX(34px);
}

/* Navbar over dark sections */
.navbar.over-dark .navbar__inner {
    background: rgba(14, 14, 16, 0.5);
    border-color: rgba(255, 255, 255, 0.08);
}
.navbar.over-dark .navbar__logo { color: #f0f0ec; }
.navbar.over-dark .navbar__links a { color: rgba(240, 240, 236, 0.7); }
.navbar.over-dark .navbar__links a:hover { color: #f0f0ec; }
.navbar.over-dark .theme-toggle {
    border-color: rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.06);
    color: rgba(240, 240, 236, 0.7);
}
.navbar.over-dark .navbar__toggle span { background: #f0f0ec; }
.navbar.over-dark .lang-switch {
    border-color: rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.06);
}
.navbar.over-dark .lang-switch__btn { color: rgba(240, 240, 236, 0.5); }
.navbar.over-dark .lang-switch__btn.active { color: #fff; }

.navbar__links {
    display: flex;
    gap: 20px;
}
.navbar__links a {
    font-size: 0.86rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: var(--text-secondary);
    transition: color 0.3s;
    position: relative;
    white-space: nowrap;
}
.navbar__links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1.5px;
    background: var(--accent);
    transition: width 0.35s var(--ease);
}
.navbar__links a:hover { color: var(--text); }
.navbar__links a:hover::after { width: 100%; }
.navbar__links a.active { color: var(--text); }
.navbar__links a.active::after { width: 100%; }

.navbar__actions { display: flex; align-items: center; gap: 8px; }

/* Theme Toggle */
.theme-toggle {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: var(--bg-card);
    color: var(--text-secondary);
    transition: all 0.3s var(--ease);
    position: relative;
}
.theme-toggle:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: var(--accent-light);
    transform: rotate(15deg);
}
.theme-toggle__sun,
.theme-toggle__moon {
    position: absolute;
    transition: opacity 0.3s, transform 0.4s var(--ease-spring);
}
[data-theme="light"] .theme-toggle__sun { opacity: 1; transform: rotate(0deg) scale(1); }
[data-theme="light"] .theme-toggle__moon { opacity: 0; transform: rotate(-90deg) scale(0.5); }
[data-theme="dark"] .theme-toggle__sun { opacity: 0; transform: rotate(90deg) scale(0.5); }
[data-theme="dark"] .theme-toggle__moon { opacity: 1; transform: rotate(0deg) scale(1); }

.navbar__toggle { display: none; flex-direction: column; gap: 5px; padding: 4px; }
.navbar__toggle span {
    width: 20px;
    height: 1.5px;
    background: var(--text);
    border-radius: 2px;
    transition: all 0.3s;
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
    min-height: 100dvh;
    display: flex;
    align-items: center;
    padding-top: 80px;
    padding-bottom: 40px;
    position: relative;
    overflow: hidden;
    background:
        linear-gradient(180deg, rgba(13,143,214,0.15) 0%, transparent 55%),
        linear-gradient(135deg, rgba(13,143,214,0.1) 0%, transparent 60%),
        var(--bg);
}
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 59px,
            rgba(13,143,214,0.15) 59px,
            rgba(13,143,214,0.15) 60px
        ),
        repeating-linear-gradient(
            90deg,
            transparent,
            transparent 59px,
            rgba(13,143,214,0.15) 59px,
            rgba(13,143,214,0.15) 60px
        );
    mask-image: radial-gradient(ellipse 80% 70% at 60% 40%, black 0%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse 80% 70% at 60% 40%, black 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}
.hero::after {
    content: '';
    position: absolute;
    top: -15%;
    right: -5%;
    width: 700px;
    height: 700px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(13,143,214,0.2) 0%, transparent 65%);
    filter: blur(80px);
    pointer-events: none;
    z-index: 0;
}
[data-theme="dark"] .hero {
    background:
        linear-gradient(180deg, rgba(45,183,250,0.12) 0%, transparent 55%),
        linear-gradient(135deg, rgba(45,183,250,0.08) 0%, transparent 60%),
        var(--bg);
}
[data-theme="dark"] .hero::before {
    background-image:
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 59px,
            rgba(45,183,250,0.12) 59px,
            rgba(45,183,250,0.12) 60px
        ),
        repeating-linear-gradient(
            90deg,
            transparent,
            transparent 59px,
            rgba(45,183,250,0.12) 59px,
            rgba(45,183,250,0.12) 60px
        );
}
[data-theme="dark"] .hero::after {
    background: radial-gradient(circle, rgba(45,183,250,0.18) 0%, transparent 65%);
}
.hero__grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 64px;
    align-items: center;
    position: relative;
    z-index: 3;
}
.hero__tag {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    color: var(--accent);
    margin-bottom: 24px;
}
.pulse-dot {
    width: 8px;
    height: 8px;
    background: var(--accent);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
    0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(13,143,214,0.4); }
    50% { opacity: 0.8; box-shadow: 0 0 0 8px rgba(13,143,214,0); }
}

.hero__title {
    margin-bottom: 24px;
}
.hero__title-line {
    display: block;
    font-size: clamp(2.8rem, 5.5vw, 4.5rem);
    font-weight: 800;
    line-height: 1.02;
    letter-spacing: -0.02em;
    color: var(--text);
    /* Reveal por CSS (sin depender de GSAP): aparece al instante.
       fill-mode backwards = oculto durante el delay, se libera al terminar. */
    animation: heroLineIn 0.55s cubic-bezier(0.22, 1, 0.36, 1) backwards;
}
.hero__title-line:nth-child(1) { animation-delay: 0.05s; }
.hero__title-line:nth-child(2) { animation-delay: 0.13s; }
.hero__title-line:nth-child(3) { animation-delay: 0.21s; }
@keyframes heroLineIn {
    from { opacity: 0; transform: translateY(40px); }
    to   { opacity: 1; transform: translateY(0); }
}
/* Resto del hero también por CSS (instantáneo, sin esperar el JS) */
.hero__tag, .hero__subtitle, .hero__cta {
    animation: heroFadeUp 0.55s cubic-bezier(0.22, 1, 0.36, 1) backwards;
}
.hero__tag { animation-delay: 0.02s; }
.hero__subtitle { animation-delay: 0.28s; }
.hero__cta { animation-delay: 0.36s; }
@keyframes heroFadeUp {
    from { opacity: 0; transform: translateY(26px); }
    to   { opacity: 1; transform: translateY(0); }
}
/* Tarjetas: entran de a una, en cascada, con un pequeño "pop".
   backwards (no forwards) para no romper el transform del hover. */
.hero__card {
    animation: heroCardIn 0.55s cubic-bezier(0.22, 1, 0.36, 1) backwards;
}
.hero__card--1 { animation-delay: 0.20s; }
.hero__card--2 { animation-delay: 0.30s; }
.hero__card--3 { animation-delay: 0.40s; }
.hero__card--4 { animation-delay: 0.50s; }
@keyframes heroCardIn {
    from { opacity: 0; transform: translateY(34px) scale(0.94); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}
@media (prefers-reduced-motion: reduce) {
    .hero__title-line,
    .hero__tag, .hero__subtitle, .hero__cta, .hero__visual, .hero__card {
        animation: none; opacity: 1; transform: none;
    }
}
.hero__title-line--accent {
    color: var(--accent);
    position: relative;
}
.hero__subtitle {
    font-size: 1.05rem;
    font-weight: 400;
    color: var(--text-secondary);
    max-width: 480px;
    line-height: 1.7;
    margin-bottom: 36px;
}
.hero__cta {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

/* Hero cards */
.hero__visual {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    padding-left: 20px;
}
.hero__card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px 24px;
    transition: all 0.4s var(--ease);
    position: relative;
    overflow: hidden;
}
.hero__card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s var(--ease);
}
html.can-hover .hero__card:hover::before, .hero__card.tap-active::before { transform: scaleX(1); }
html.can-hover .hero__card:hover, .hero__card.tap-active {
    border-color: var(--border-hover);
    box-shadow: var(--card-shadow);
    transform: translateY(-6px);
}
.hero__card-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-light);
    border-radius: var(--radius);
    color: var(--accent);
    margin-bottom: 16px;
    transition: all 0.4s var(--ease);
}
html.can-hover .hero__card:hover .hero__card-icon, .hero__card.tap-active .hero__card-icon {
    transform: scale(1.08);
}
.hero__card-label {
    display: block;
    font-size: 0.68rem;
    font-weight: 600;
    color: var(--text-muted);
    letter-spacing: 0.1em;
    margin-bottom: 4px;
}
.hero__card-value {
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--text);
}

/* Hero scroll indicator */
.hero__scroll {
    position: absolute;
    bottom: 36px;
    left: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    z-index: 3;
}
.hero__scroll span {
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    color: var(--text-muted);
    writing-mode: vertical-rl;
}
.hero__scroll-line {
    width: 1px;
    height: 56px;
    background: linear-gradient(to bottom, var(--accent), transparent);
    animation: scrollLine 2s ease-in-out infinite;
}
@keyframes scrollLine {
    0%   { transform: scaleY(0); transform-origin: top; }
    50%  { transform: scaleY(1); transform-origin: top; }
    51%  { transform-origin: bottom; }
    100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ============================================================
   MARQUEE
   ============================================================ */
.marquee-section {
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 16px 0;
    overflow: hidden;
    transition: border-color 0.5s;
}
.marquee__track {
    display: flex;
    gap: 20px;
    animation: marquee 30s linear infinite;
    width: max-content;
}
.marquee:hover .marquee__track {
    animation-play-state: paused;
}
.marquee__track span {
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    white-space: nowrap;
    transition: color 0.5s;
}
.marquee__sep {
    color: var(--accent) !important;
    font-weight: 300;
}
@keyframes marquee {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ============================================================
   SECTION HEADERS
   ============================================================ */
.section__header { margin-bottom: 56px; }
.section__tag {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    color: var(--accent);
    margin-bottom: 12px;
}
.section__title {
    font-size: clamp(1.8rem, 3.5vw, 2.6rem);
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: -0.01em;
    color: var(--text);
    transition: color 0.5s;
}

/* ============================================================
   SERVICES
   ============================================================ */
.services__list { display: flex; flex-direction: column; }
.service-row {
    display: grid;
    grid-template-columns: 72px 1fr auto;
    gap: 32px;
    align-items: start;
    padding: 36px 0;
    border-bottom: 1px solid var(--border);
    transition: all 0.35s var(--ease);
    position: relative;
}
.service-row:first-child { border-top: 1px solid var(--border); }
.service-row::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--accent);
    transition: width 0.5s var(--ease);
}
html.can-hover .service-row:hover::after, .service-row.tap-active::after { width: 100%; }
html.can-hover .service-row:hover, .service-row.tap-active { padding-left: 16px; }

.service-row__number {
    font-size: 2.6rem;
    font-weight: 800;
    color: var(--accent);
    line-height: 1;
    letter-spacing: -0.02em;
    transform-origin: center center;
    transition: transform 0.35s var(--ease-spring);
}
html.can-hover .service-row:hover .service-row__number, .service-row.tap-active .service-row__number {
    transform: scale(1.35);
}
.service-row__title {
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    margin-bottom: 8px;
    color: var(--text);
    transition: color 0.3s;
}
html.can-hover .service-row:hover .service-row__title, .service-row.tap-active .service-row__title { color: var(--accent); }
.service-row__desc {
    font-size: 0.92rem;
    color: var(--text-secondary);
    line-height: 1.65;
    max-width: 520px;
}
.service-row__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding-top: 4px;
}
.service-row__tags span {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: var(--accent);
    background: var(--accent-light);
    padding: 4px 12px;
    border-radius: 50px;
    transition: all 0.3s;
}
html.can-hover .service-row:hover .service-row__tags span, .service-row.tap-active .service-row__tags span {
    background: var(--accent);
    color: #fff;
    transform: scale(1.08);
}

/* ============================================================
   PROCESS (DARK SECTION)
   ============================================================ */
.process {
    background: var(--ds-bg);
    position: relative;
    overflow: hidden;
}
.process .section__tag { color: var(--ds-accent); }
.process .section__title { color: var(--ds-text); }
.process__desc {
    font-size: 1.02rem;
    color: var(--ds-text-sec);
    line-height: 1.7;
    margin-top: 16px;
    max-width: 380px;
}
.process__layout {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 64px;
    align-items: start;
    position: relative;
    z-index: 2;
}
.process__steps {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}
.process__step {
    background: var(--ds-card);
    border: 1px solid var(--ds-border);
    border-radius: var(--radius-lg);
    padding: 32px 28px;
    transition: all 0.4s var(--ease);
    position: relative;
    overflow: hidden;
}
.process__step::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(45,183,250,0.04) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.4s;
}
html.can-hover .process__step:hover, .process__step.tap-active {
    border-color: rgba(45,183,250,0.5);
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.3), 0 0 34px rgba(45,183,250,0.35);
}
html.can-hover .process__step:hover::before, .process__step.tap-active::before { opacity: 1; }
.process__step-number {
    font-size: 3.4rem;
    font-weight: 800;
    color: var(--ds-accent);
    line-height: 1;
    letter-spacing: -0.02em;
    margin-bottom: 14px;
    position: relative;
    z-index: 1;
}
.process__step h3 {
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    margin-bottom: 12px;
    color: var(--ds-text);
    position: relative;
    z-index: 1;
}
.process__step p {
    font-size: 1.02rem;
    color: var(--ds-text-sec);
    line-height: 1.7;
    position: relative;
    z-index: 1;
}

/* ============================================================
   MATERIALS
   ============================================================ */
.materials__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.material-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px 28px;
    transition: all 0.4s var(--ease);
    position: relative;
    overflow: hidden;
}
.material-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s var(--ease);
}
html.can-hover .material-card:hover::before, .material-card.tap-active::before { transform: scaleX(1); }
html.can-hover .material-card:hover, .material-card.tap-active {
    border-color: var(--border-hover);
    box-shadow: var(--card-shadow);
    transform: translateY(-4px);
}
.material-card__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}
.material-card__name {
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    color: var(--text);
}
.material-card__badge {
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: var(--accent);
    background: var(--accent-light);
    padding: 4px 10px;
    border-radius: 50px;
}
.material-card__subtitle {
    font-size: 0.88rem;
    color: var(--text-muted);
    margin-bottom: 20px;
}
.material-card__list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.material-card__list li {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.5;
    padding-left: 16px;
    position: relative;
}
.material-card__list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
}

/* ============================================================
   APPLICATIONS (DARK)
   ============================================================ */
.applications {
    background: var(--ds-bg);
    position: relative;
}
.applications .section__tag { color: var(--ds-accent); }
.applications .section__title { color: var(--ds-text); }
.applications__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}
.application {
    padding: 28px 24px;
    border: 1px solid var(--ds-border);
    border-radius: var(--radius-lg);
    background: var(--ds-card);
    transition: all 0.4s var(--ease);
    position: relative;
    overflow: hidden;
}
.application::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(45,183,250,0.05) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.4s;
}
html.can-hover .application:hover, .application.tap-active {
    border-color: rgba(45,183,250,0.5);
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.25), 0 0 34px rgba(45,183,250,0.35);
}
html.can-hover .application:hover::before, .application.tap-active::before { opacity: 1; }
.application__number {
    display: block;
    font-size: 3.4rem;
    font-weight: 800;
    color: var(--ds-accent);
    line-height: 1;
    letter-spacing: -0.02em;
    margin-bottom: 14px;
    position: relative;
    z-index: 1;
}
.application h3 {
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    color: var(--ds-text);
    margin-bottom: 12px;
    position: relative;
    z-index: 1;
}
.application p {
    font-size: 1.02rem;
    color: var(--ds-text-sec);
    line-height: 1.7;
    position: relative;
    z-index: 1;
}

/* ============================================================
   WHY US (DARK)
   ============================================================ */
.why-us {
    background: var(--bg);
    position: relative;
}
.why-us__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}
.why-us__card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px 28px;
    transition: all 0.4s var(--ease);
    position: relative;
    overflow: hidden;
}
.why-us__card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s var(--ease);
}
html.can-hover .why-us__card:hover::before, .why-us__card.tap-active::before { transform: scaleX(1); }
html.can-hover .why-us__card:hover, .why-us__card.tap-active {
    border-color: var(--border-hover);
    transform: translateY(-4px);
    box-shadow: var(--card-shadow);
}
.why-us__card-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-light);
    border-radius: var(--radius);
    color: var(--accent);
    margin-bottom: 20px;
    transition: all 0.4s var(--ease);
}
html.can-hover .why-us__card:hover .why-us__card-icon, .why-us__card.tap-active .why-us__card-icon {
    transform: scale(1.08);
}
.why-us__card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    color: var(--text);
    margin-bottom: 12px;
}
.why-us__card p {
    font-size: 1.02rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ============================================================
   CTA (DARK SECTION)
   ============================================================ */
.cta-section {
    background: var(--ds-bg);
    position: relative;
    overflow: hidden;
    z-index: 1;              /* queda debajo: Contacto lo pisa al hacer scroll */
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.cta-block {
    text-align: center;
    position: relative;
    z-index: 2;
}
.cta-section .section__tag { color: var(--ds-accent); }
.cta-section .section__title { color: var(--ds-text); }
.cta-block__desc {
    font-size: 1.02rem;
    color: var(--ds-text-sec);
    max-width: 480px;
    margin: 16px auto 36px;
    line-height: 1.7;
}
.cta-block__actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ============================================================
   CONTACT
   ============================================================ */
.contact__grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    grid-template-rows: auto 1fr;
    column-gap: 64px;
    row-gap: 0;
    align-items: stretch;
}
/* Encabezado arriba-izquierda; tarjetas y formulario en la fila de abajo:
   así el tope del form se nivela con el recuadro de EMAIL y su base con Instagram. */
.contact__intro { grid-column: 1; grid-row: 1; }
.contact__info  { grid-column: 1; grid-row: 2; display: flex; flex-direction: column; }
.contact__form  { grid-column: 2; grid-row: 2; }
.contact__social-card { margin-top: auto; }
.contact__desc {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-top: 16px;
    margin-bottom: 32px;
    max-width: 380px;
}

/* Contact cards */
.contact__cards {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 32px;
}
.contact-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: all 0.3s var(--ease);
    text-decoration: none;
    color: inherit;
}
a.contact-card:hover {
    border-color: var(--accent);
    background: var(--accent-light);
    transform: translateX(4px);
}
.contact-card__icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-light);
    border-radius: var(--radius);
    color: var(--accent);
    flex-shrink: 0;
}
.contact-card__label {
    display: block;
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    color: var(--text-muted);
    margin-bottom: 2px;
}
.contact-card__value {
    display: block;
    font-size: 0.92rem;
    font-weight: 500;
    color: var(--text);
}

/* Form rows */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}
.contact__social-card {
    padding: 16px 20px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: all 0.3s var(--ease);
}
.contact__social-card .contact-card__label {
    margin-bottom: 12px;
}
.contact__social { display: flex; gap: 10px; }
.contact__social a {
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 0 16px;
    background: var(--accent-light);
    border: 1px solid transparent;
    border-radius: var(--radius);
    color: var(--accent);
    transition: all 0.3s var(--ease);
}
.contact__social a:hover {
    background: var(--accent);
    color: #fff;
    transform: translateY(-2px);
}
.contact__social-user {
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.01em;
}

/* Form */
.contact__form {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 36px;
    transition: all 0.5s var(--ease);
    /* Columna flex: el campo de mensaje crece para que la base del form
       quede nivelada con la base de la columna de contacto (Instagram). */
    display: flex;
    flex-direction: column;
}
/* El grupo de "Mensaje" (único form-group hijo directo) absorbe el alto extra */
.contact__form > .form-group {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 120px;
}
.contact__form > .form-group textarea {
    flex: 1;
    resize: none;
}
.form-group { margin-bottom: 16px; }
.form-group label {
    display: block;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: var(--text-secondary);
    margin-bottom: 6px;
}
.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 12px 16px;
    font-family: var(--font);
    font-size: 0.95rem;
    color: var(--text);
    transition: border-color 0.3s, box-shadow 0.3s, background 0.5s;
    outline: none;
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--text-muted); }
.form-group select { color: var(--text-muted); }
.form-group select option { background: var(--bg-card); color: var(--text); }
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(13, 143, 214, 0.1);
}
.form-group textarea { resize: vertical; min-height: 100px; }

/* ============================================================
   CONTACT BOTTOM (FOOTER)
   ============================================================ */
.contact__bottom {
    border-top: 1px solid var(--border);
    margin-top: 56px;
    padding-top: 20px;
    padding-bottom: 0;
    text-align: center;
    font-size: 0.8rem;
    color: var(--text-muted);
}
.contact__bottom p { margin: 4px 0; }
.contact__credit { font-size: 0.75rem; opacity: 0.75; }
.contact__credit a {
    color: var(--text-muted);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: color 0.25s var(--ease), border-color 0.25s var(--ease);
}
.contact__credit a:hover {
    color: var(--accent);
    border-bottom-color: var(--accent);
}
.contact { padding-bottom: 40px; background: var(--bg); }

/* ============================================================
   FLOATING BUTTONS
   ============================================================ */
.float-btn {
    position: fixed;
    bottom: 28px;
    z-index: 90;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(13, 143, 214, 0.85);
    border: none;
    cursor: pointer;
    transition: all 0.4s var(--ease);
    box-shadow: 0 4px 20px rgba(13, 143, 214, 0.3);
}
.float-btn:hover {
    background: rgba(13, 143, 214, 1);
    transform: translateY(-3px);
    box-shadow: 0 8px 28px rgba(13, 143, 214, 0.4);
}
.float-btn--wa {
    right: 28px;
    animation: waGlow 2.5s ease-in-out infinite;
}
@keyframes waGlow {
    0%, 100% { box-shadow: 0 4px 20px rgba(13, 143, 214, 0.3); }
    50% { box-shadow: 0 4px 28px rgba(13, 143, 214, 0.5), 0 0 40px rgba(13, 143, 214, 0.15); }
}
.float-btn--top {
    left: 28px;
    opacity: 0;
    pointer-events: none;
    transform: translateY(16px);
}
.float-btn--top.visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

/* GSAP: performance hints + split-line reveal wrappers */
.parallax-band__img { will-change: transform; }
.split-line { will-change: transform; }
.hero__title, .section__title { will-change: transform; }

/* ============================================================
   PARALLAX IMAGE BANDS
   ============================================================ */
.parallax-band {
    position: relative;
    height: 100vh;
    min-height: 520px;
    overflow: hidden;
    display: flex;
    align-items: center;
    z-index: 1;
}
.parallax-band__img {
    position: absolute;
    top: -20%;
    left: 0;
    right: 0;
    bottom: -20%;
    background-size: cover;
    background-position: center;
    will-change: transform;
}
/* WebP con fallback a JPG (image-set): navegador elige el más liviano que soporta */
.parallax-band__img--printer {
    background-image: url('../assets/printer-3d.jpg');
    background-image: -webkit-image-set(url('../assets/printer-3d.webp') type('image/webp'), url('../assets/printer-3d.jpg') type('image/jpeg'));
    background-image: image-set(url('../assets/printer-3d.webp') type('image/webp'), url('../assets/printer-3d.jpg') type('image/jpeg'));
}
.parallax-band__img--piezas {
    background-image: url('../assets/piezas-3d.jpg');
    background-image: -webkit-image-set(url('../assets/piezas-3d.webp') type('image/webp'), url('../assets/piezas-3d.jpg') type('image/jpeg'));
    background-image: image-set(url('../assets/piezas-3d.webp') type('image/webp'), url('../assets/piezas-3d.jpg') type('image/jpeg'));
}
.parallax-band__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(10, 18, 32, 0.9) 0%, rgba(10, 18, 32, 0.55) 45%, rgba(10, 18, 32, 0.25) 100%);
}
.parallax-band__content {
    position: relative;
    z-index: 2;
}
.parallax-band__tag {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    color: #2db7fa;
    margin-bottom: 14px;
}
.parallax-band__title {
    font-size: clamp(2rem, 5vw, 3.6rem);
    font-weight: 800;
    line-height: 1.02;
    letter-spacing: 0.01em;
    color: #f0f4fb;
    text-shadow: 0 2px 30px rgba(0, 0, 0, 0.4);
}

/* ============================================================
   OPINIONES / REVIEWS
   ============================================================ */
.reviews { background: var(--bg-elevated); }
.reviews__rating {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 48px;
}
/* Badge de opiniones de Google */
.google-badge {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    padding: 13px 24px;
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid rgba(25, 40, 68, 0.06);
    box-shadow: 0 6px 24px rgba(25, 40, 68, 0.10);
    transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.google-badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(25, 40, 68, 0.16);
}
.google-badge__g { flex-shrink: 0; }
.google-badge__body { display: flex; flex-direction: column; gap: 3px; }
.google-badge__top { display: flex; align-items: center; gap: 8px; }
.google-badge__rating {
    font-size: 1.6rem;
    font-weight: 800;
    line-height: 1;
    color: #14213a;
}
.google-badge__stars {
    color: #fbbc04;
    font-size: 1.05rem;
    letter-spacing: 1px;
}
.google-badge__label {
    font-size: 0.9rem;
    color: #5f6b7a;
}
.reviews__carousel {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
}
.reviews__track {
    display: flex;
    gap: 30px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    /* gap (30) >= padding lateral (28): la tarjeta siguiente queda fuera del borde (no asoma).
       Padding vertical generoso para que el resplandor del hover no se recorte. */
    padding: 28px 28px 34px;
    scroll-padding: 28px;
    scrollbar-width: none;
    -ms-overflow-style: none;
    flex: 1;
}
.reviews__track::-webkit-scrollbar { display: none; }
.review-card {
    flex: 0 0 calc((100% - 2 * 30px) / 3);
    scroll-snap-align: start;
    display: flex;
    flex-direction: column;
    padding: 26px 24px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    transition: border-color 0.35s var(--ease), box-shadow 0.35s var(--ease), transform 0.35s var(--ease);
}
.reviews__arrow {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--accent);
    cursor: pointer;
    transition: all 0.3s var(--ease);
    z-index: 2;
}
.reviews__arrow:hover {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
    transform: scale(1.06);
}
.reviews__arrow:disabled {
    opacity: 0.35;
    cursor: default;
    pointer-events: none;
}
.reviews__dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 28px;
}
.reviews__cta {
    text-align: center;
    margin-top: 32px;
}
.reviews__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--border-hover);
    border: none;
    cursor: pointer;
    padding: 0;
    transition: all 0.3s var(--ease);
}
.reviews__dot.active {
    background: var(--accent);
    width: 26px;
    border-radius: 5px;
}
/* Barra de progreso del carrusel (reemplaza los 23 puntitos) */
.reviews__progress {
    position: relative;
    width: 120px;
    height: 4px;
    margin: 28px auto 0;
    border-radius: 4px;
    background: var(--border-hover);
    overflow: hidden;
}
.reviews__progress-thumb {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 34%;
    border-radius: 4px;
    background: var(--accent);
    transition: left 0.25s var(--ease), width 0.25s var(--ease);
}
html.can-hover .review-card:hover, .review-card.tap-active {
    border-color: rgba(13,95,168,0.6);
    box-shadow: 0 12px 40px rgba(25,40,68,0.14), 0 0 30px rgba(13,72,140,0.4);
    transform: translateY(-3px);
}
.review-card__stars {
    color: var(--accent);
    font-size: 1rem;
    letter-spacing: 2px;
    margin-bottom: 14px;
}
.review-card__text {
    color: var(--text-secondary);
    font-size: 0.98rem;
    line-height: 1.65;
    margin-bottom: 20px;
}
.review-card__author {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: auto;
}
.review-card__avatar {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    border-radius: 50%;
    background: var(--accent);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
}
.review-card__name {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text);
}

/* ============================================================
   FAQ
   ============================================================ */
/* FAQ como banda clara para que el titulo azul oscuro sea legible */
.faq.dark-section {
    --ds-bg:          #eef4fb;
    --ds-card:        #ffffff;
    --ds-border:      rgba(25, 40, 68, 0.10);
    --ds-border-hover: rgba(25, 40, 68, 0.20);
    --ds-text:        #14213a;
    --ds-text-sec:    #41506b;
    --ds-text-muted:  #8391a6;
    --ds-accent:      #0d8fd6;
    background: var(--ds-bg);
}
.faq .section__tag { color: var(--ds-accent); }
.faq .section__title { color: #192844; }
.faq__list {
    max-width: 820px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.faq-item {
    background: var(--ds-card);
    border: 1px solid var(--ds-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: border-color 0.3s var(--ease);
}
.faq-item[open] {
    border-color: rgba(45,183,250,0.4);
}
.faq-item__q {
    list-style: none;
    cursor: pointer;
    padding: 20px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    font-size: 1.02rem;
    font-weight: 600;
    color: var(--ds-text);
    transition: color 0.3s var(--ease);
}
.faq-item__q::-webkit-details-marker { display: none; }
.faq-item__q:hover { color: var(--ds-accent); }
.faq-item__icon {
    position: relative;
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}
.faq-item__icon::before,
.faq-item__icon::after {
    content: '';
    position: absolute;
    background: var(--ds-accent);
    border-radius: 2px;
    transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}
.faq-item__icon::before {
    top: 50%; left: 0; right: 0;
    height: 2px;
    transform: translateY(-50%);
}
.faq-item__icon::after {
    left: 50%; top: 0; bottom: 0;
    width: 2px;
    transform: translateX(-50%);
}
.faq-item[open] .faq-item__icon::after {
    transform: translateX(-50%) rotate(90deg);
    opacity: 0;
}
.faq-item__a {
    padding: 0 24px 22px;
    color: var(--ds-text-sec);
    line-height: 1.7;
    font-size: 1rem;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
    .hero__grid { grid-template-columns: 1fr; gap: 48px; }
    .hero__visual { padding-left: 0; }
    .process__layout { grid-template-columns: 1fr; gap: 40px; }
    .materials__grid { grid-template-columns: 1fr; }
    .applications__grid { grid-template-columns: repeat(2, 1fr); }
    .why-us__grid { grid-template-columns: repeat(2, 1fr); }
    .footer__grid { grid-template-columns: repeat(2, 1fr); }
    .review-card { flex: 0 0 calc((100% - 30px) / 2); }
}

@media (max-width: 768px) {
    /* Perf móvil: sin blur pesado (traba el scroll); fondo más opaco en su lugar */
    .navbar__inner {
        border-radius: 20px;
        padding: 5px 16px;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }
    .navbar__logo-img { height: 50px; }
    .navbar.scrolled .navbar__logo-img { height: 44px; }
    [data-theme="dark"] .navbar__inner,
    [data-theme="dark"] .navbar.over-dark .navbar__inner { background: rgba(10, 18, 32, 0.94); }
    [data-theme="light"] .navbar__inner { background: rgba(245, 249, 252, 0.94); }
    /* Bandas: pantalla completa para que el pin las mantenga fijas
       mientras la sección siguiente sube por encima (mismo efecto que desktop). */
    .parallax-band { height: 100vh; min-height: 460px; }
    /* CTA a pantalla completa para que el pin lo fije y Contacto suba encima */
    .cta-section { min-height: 100vh; }
    .parallax-band__img { will-change: auto; }
    .hero__title, .section__title, .split-line { will-change: auto; }

    .navbar__links { display: none; }
    .navbar__links.active {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: calc(100% + 8px);
        left: 0;
        right: 0;
        background: var(--navbar-bg);
        backdrop-filter: blur(24px) saturate(180%);
        -webkit-backdrop-filter: blur(24px) saturate(180%);
        border: 1px solid var(--border);
        border-radius: 20px;
        padding: 20px 24px;
        gap: 14px;
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    }
    .navbar__toggle { display: flex; }
    .navbar__toggle.active span:nth-child(1) { transform: rotate(45deg) translate(4px, 4px); }
    .navbar__toggle.active span:nth-child(2) { opacity: 0; }
    .navbar__toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(4px, -4px); }
    .navbar__actions .btn--sm { display: none; }

    .hero { min-height: auto; padding: 120px 0 64px; }
    .hero__visual { grid-template-columns: 1fr; }
    .hero__scroll { display: none; }

    .service-row { grid-template-columns: 1fr; gap: 12px; }
    .service-row__number { display: none; }
    html.can-hover .service-row:hover, .service-row.tap-active { padding-left: 0; }

    .process__steps { grid-template-columns: 1fr; }
    .applications__grid { grid-template-columns: 1fr; }
    .why-us__grid { grid-template-columns: 1fr; }
    /* Carrusel de opiniones: en móvil se navega por swipe (+ barra de progreso).
       Ocultamos las flechas y usamos el ancho completo (rompemos el padding
       del container) para que las tarjetas queden más grandes. */
    .reviews__arrow { display: none; }
    .reviews__carousel { gap: 0; margin-left: -24px; margin-right: -24px; }
    .reviews__track {
        padding: 24px 16px 30px;
        scroll-padding: 16px;
        gap: 14px;
        /* todas las tarjetas al mismo alto (un solo alto fijo, sin regular
           por JS que se rompía al scrollear). El autor queda abajo. */
        align-items: stretch;
    }
    .review-card { flex: 0 0 100%; }
    /* el botón "ver opiniones" no debe pasarse del ancho (causaba scroll horizontal) */
    .reviews__cta .btn {
        max-width: 100%;
        white-space: normal;
        text-align: center;
    }
    /* contener la animación lateral del FAQ para que no genere overflow */
    .faq__list { overflow-x: clip; }
    .contact__grid { grid-template-columns: 1fr; grid-template-rows: none; gap: 40px; }
    /* En móvil se apilan en orden natural: encabezado, tarjetas, formulario */
    .contact__intro, .contact__info, .contact__form { grid-column: auto; grid-row: auto; }
    .form-row { grid-template-columns: 1fr; }
    .footer__grid { grid-template-columns: 1fr; gap: 28px; }
}

@media (max-width: 480px) {
    .hero__title-line { font-size: 2.2rem; }
    .hero__cta { flex-direction: column; }
    .hero__cta .btn { width: 100%; justify-content: center; }
    .cta-block__actions { flex-direction: column; align-items: center; }
    .cta-block__actions .btn { width: 100%; justify-content: center; }
}

/* --- ACCESSIBILITY --- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    .reveal { opacity: 1; transform: none; }
    html { scroll-behavior: auto; }
}
