/* =============================================================
   KELVO IA — styles.css (versión CLARA)
   Archetype 05 (Mouse-Reactive Gradient), paleta violeta/azul/cian
   sobre fondo claro. Mismo sistema que la versión oscura; los
   tokens de color se invierten y los acentos se oscurecen un
   punto para mantener buen contraste sobre blanco.
   1. Tokens  2. Reset  3. Utilities  4. Typography  5. Components
   6. Sections  7. Effects  8. Responsive  9. Reduced-motion
   ============================================================= */

/* =============================================================
   1. Tokens
   ============================================================= */
:root{
  --bg:        #f8f7fb;   /* near-white, slightly cool */
  --bg-2:      #f0eef7;
  --bg-3:      #ffffff;   /* card, elevated */
  --ink:       #15121f;   /* near-black, never pure #000 */
  --mute:      #5b5770;
  --mute-2:    #86829c;
  --accent:    #6f47e6;   /* electric violet, deepened for contrast on white */
  --accent-2:  #0e9d86;   /* cyan-mint, deepened for contrast on white */
  --accent-3:  #3d5bdb;   /* blue, mid-gradient, deepened for contrast on white */
  --line:      rgba(21,18,31,0.10);
  --line-strong: rgba(21,18,31,0.18);

  --gradient-1: #6f47e6;
  --gradient-2: #3d5bdb;
  --gradient-3: #0e9d86;

  --font-display: 'Space Grotesk', 'Inter', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;
  --font-body: 'Inter', system-ui, sans-serif;

  --ease-out:  cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in:   cubic-bezier(0.7, 0, 0.84, 0);
  --ease-soft: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);

  --nav-h: 84px;
}

@property --mx { syntax: "<percentage>"; inherits: true; initial-value: 50%; }
@property --my { syntax: "<percentage>"; inherits: true; initial-value: 50%; }

/* =============================================================
   2. Reset & base
   ============================================================= */
*, *::before, *::after{ box-sizing:border-box; margin:0; }
html{
  -webkit-text-size-adjust:100%;
  tab-size:2;
  overflow-x:clip;
  scroll-behavior:smooth;
  background:var(--bg);
}
body{
  font-family:var(--font-body);
  font-weight:300;
  font-size:16px;
  line-height:1.6;
  color:var(--ink);
  background:var(--bg);
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
  overflow-x:clip;
  overscroll-behavior-y:none;
}
img, svg, video{ display:block; max-width:100%; }
img{ height:auto; }
button{ font:inherit; color:inherit; cursor:pointer; border:0; background:none; }
a{ color:inherit; text-decoration:none; }
p{ text-wrap:pretty; }
h1,h2,h3,h4{ text-wrap:balance; line-height:1.05; letter-spacing:-0.02em; font-family:var(--font-display); font-weight:600; }
ul{ list-style:none; }
input, textarea{ font:inherit; color:inherit; }
::selection{ background:var(--accent); color:var(--bg); }

:focus-visible{
  outline:2px solid var(--accent-2);
  outline-offset:3px;
  border-radius:4px;
}

/* =============================================================
   3. Utilities
   ============================================================= */
.skip-link{
  position:fixed; top:-100px; left:1rem; z-index:9999;
  padding:.7rem 1.1rem; background:var(--accent-2); color:var(--bg);
  border-radius:8px; font-weight:600; font-size:.9rem;
}
.skip-link:focus{ top:1rem; }

.wrap{ max-width:1240px; margin:0 auto; padding:0 clamp(20px, 5vw, 56px); }
.sr-only{
  position:absolute; width:1px; height:1px; padding:0; margin:-1px;
  overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0;
}

.eyebrow{
  display:inline-flex; align-items:center; gap:10px;
  font-family:var(--font-mono);
  font-size:12.5px; letter-spacing:.14em; text-transform:uppercase;
  color:var(--accent-2);
}
.eyebrow::before{ content:''; width:22px; height:1px; background:var(--accent-2); }

.grad-text{
  background:linear-gradient(100deg, var(--accent) 0%, var(--accent-3) 45%, var(--accent-2) 100%);
  -webkit-background-clip:text; background-clip:text; color:transparent;
}

/* Fluid vertical rhythm: every full section shares this same scale (120px desktop
   down to 68px on small phones) instead of jumping at a single breakpoint or being
   overridden per-section, so spacing stays visibly consistent at any width. */
.section{ position:relative; padding:clamp(68px, 5vw + 48px, 120px) 0; }
.section-tight{ padding:clamp(48px, 3.33vw + 32px, 80px) 0; }

[data-reveal]{
  opacity:0; transform:translateY(32px);
  transition:opacity .8s var(--ease-soft), transform .8s var(--ease-soft);
}
[data-reveal].is-revealed{ opacity:1; transform:none; }

/* =============================================================
   4. Typography
   ============================================================= */
.h-display{
  font-size:clamp(2.2rem, 6vw, 5rem);
  line-height:0.98;
}
.h-section{
  font-size:clamp(1.9rem, 4.4vw, 3.2rem);
  max-width:20ch;
}
.h-card{ font-size:clamp(1.15rem, 2vw, 1.5rem); }
.mono-tag{
  font-family:var(--font-mono); font-size:13px; letter-spacing:.06em;
  color:var(--accent-2);
}
.lede{
  font-size:clamp(1.02rem, 1.6vw, 1.2rem);
  line-height:1.7;
  color:var(--mute);
  max-width:52ch;
}

/* =============================================================
   5. Components
   ============================================================= */

/* --- Buttons --- */
.btn{
  display:inline-flex; align-items:center; gap:10px;
  font-family:var(--font-body); font-weight:600; font-size:14.5px;
  padding:16px 30px; border-radius:50px;
  transition:transform .4s var(--ease-soft), box-shadow .4s var(--ease-soft), background .3s ease;
  white-space:nowrap;
}
.btn-primary{
  background:linear-gradient(100deg, var(--accent), var(--accent-3), var(--accent-2));
  background-size:180% 180%;
  color:#fbfaff;
  box-shadow:0 0 0 rgba(111,71,230,0);
}
.btn-primary:hover{
  transform:translateY(-3px);
  box-shadow:0 16px 40px rgba(111,71,230,.32);
  background-position:100% 0;
}
.btn-ghost{
  border:1px solid var(--line-strong);
  color:var(--ink);
  padding:15px 28px;
}
.btn-ghost:hover{ border-color:var(--accent-2); background:rgba(14,157,134,.08); }
.btn-block{ width:100%; justify-content:center; }
.btn:disabled{ opacity:.5; pointer-events:none; }

/* --- Nav --- */
.nav{
  position:fixed; inset-inline:0; top:0; z-index:200;
  display:flex; align-items:center; justify-content:space-between;
  padding:26px clamp(20px,5vw,56px);
  transition:padding .4s var(--ease-out), background-color .4s var(--ease-out), backdrop-filter .4s var(--ease-out), border-color .4s var(--ease-out);
  border-bottom:1px solid transparent;
}
.nav.is-scrolled{
  padding-block:16px;
  background:rgba(248,247,251,.82);
  backdrop-filter:blur(16px) saturate(140%);
  -webkit-backdrop-filter:blur(16px) saturate(140%);
  border-bottom-color:var(--line);
}
.nav-logo{ display:flex; align-items:center; }
.nav-logo img{ display:block; height:26px; width:auto; }
.nav-links{ display:flex; align-items:center; gap:34px; }
.nav-link{ font-size:14px; color:var(--mute); position:relative; padding:.2rem 0; transition:color .3s ease; }
.nav-link::after{
  content:''; position:absolute; left:0; right:0; bottom:-2px; height:1px;
  background:var(--accent-2); transform:scaleX(0); transform-origin:right;
  transition:transform .4s var(--ease-out);
}
.nav-link:hover{ color:var(--ink); }
.nav-link:hover::after{ transform:scaleX(1); transform-origin:left; }
.nav-cta{
  font-size:13.5px; font-weight:600; padding:11px 22px;
  border:1px solid var(--line-strong); border-radius:50px; color:var(--ink);
  transition:all .3s ease;
}
.nav-cta:hover{ border-color:var(--accent-2); background:rgba(14,157,134,.1); }
.nav-burger{
  display:none; width:38px; height:38px; border-radius:50%;
  border:1px solid var(--line-strong); align-items:center; justify-content:center;
}
.nav-burger span, .nav-burger span::before, .nav-burger span::after{
  content:''; display:block; width:16px; height:1.5px; background:var(--ink); position:relative;
  transition:transform .3s ease, opacity .3s ease;
}
.nav-burger span::before{ position:absolute; top:-5px; }
.nav-burger span::after{ position:absolute; top:5px; }

.nav-mobile{
  position:fixed; inset:0; z-index:190; background:var(--bg);
  display:flex; flex-direction:column; align-items:center; justify-content:center; gap:28px;
  clip-path:inset(0 0 100% 0);
  transition:clip-path .6s var(--ease-soft);
}
.nav-mobile.is-open{ clip-path:inset(0); }
.nav-mobile a{ font-family:var(--font-display); font-size:1.6rem; font-weight:600; }

/* --- Cards --- */
.card{
  background:var(--bg-3);
  border:1px solid var(--line);
  border-radius:20px;
  padding:34px 30px;
  box-shadow:0 4px 24px rgba(21,18,31,.05);
}

/* --- Case card cover image (bleeds to the card's top edge) --- */
.case-img{
  display:block; width:calc(100% + 60px); max-width:calc(100% + 60px); margin:-34px -30px 6px;
  aspect-ratio:16/10; object-fit:cover;
  border-radius:19px 19px 0 0;
}

/* --- Photo slot (placeholder for real photos/screenshots) ---
   Swap the whole .photo-slot div for a real <img> when you have the asset;
   see the HTML comments right above each one for the suggested markup. */
.photo-slot{
  display:flex; flex-direction:column; align-items:center; justify-content:center; gap:10px;
  border:1.5px dashed var(--line-strong); border-radius:18px;
  background:linear-gradient(150deg, rgba(111,71,230,.07), rgba(14,157,134,.06));
  color:var(--mute-2); text-align:center; padding:20px;
}
.photo-slot svg{ width:26px; height:26px; opacity:.5; }
.photo-slot span{ font-family:var(--font-mono); font-size:11px; letter-spacing:.03em; line-height:1.5; max-width:20ch; }
.photo-slot--square{ aspect-ratio:1/1; }
.photo-slot--portrait{ aspect-ratio:3/4; }
.photo-slot--wide{ aspect-ratio:16/10; border-radius:16px; }
.photo-slot--video svg{ width:34px; height:34px; opacity:.55; color:var(--accent); transition:transform .35s var(--ease-soft), opacity .3s ease; }
.photo-slot--video span{ max-width:26ch; color:var(--ink); font-size:12px; }
.photo-slot--video em{ font-style:normal; font-family:var(--font-mono); font-size:10.5px; letter-spacing:.08em; text-transform:uppercase; color:var(--mute-2); }

/* --- WhatsApp floating button (replaces the AI chat widget below, which is
   now unused dead code — kept in place rather than stripped out, same as
   other retired sections this project has accumulated) ---
   WhatsApp's own green is used on purpose instead of the site's violet/teal
   palette: it's a universal, instantly-recognizable cue for "this opens
   WhatsApp", which matters more here than palette consistency. */
.whatsapp-fab{
  position:fixed; right:24px; bottom:24px; z-index:400;
  width:60px; height:60px; border-radius:50%;
  display:flex; align-items:center; justify-content:center;
  background:#25D366;
  box-shadow:0 12px 30px rgba(37,211,102,.45);
  transition:transform .35s var(--ease-bounce), box-shadow .35s ease;
}
.whatsapp-fab:hover{ transform:scale(1.08); box-shadow:0 16px 36px rgba(37,211,102,.55); }
.whatsapp-fab svg{ width:30px; height:30px; color:#fff; }

/* --- Chat widget (retired — see .whatsapp-fab above) --- */
.chat-fab{
  position:fixed; right:24px; bottom:24px; z-index:400;
  width:60px; height:60px; border-radius:50%;
  display:flex; align-items:center; justify-content:center;
  background:linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow:0 12px 30px rgba(111,71,230,.4);
  transition:transform .35s var(--ease-bounce);
}
.chat-fab:hover{ transform:scale(1.08); }
.chat-fab svg{ width:26px; height:26px; color:#fbfaff; }
.chat-fab .chat-fab-dot{
  position:absolute; top:6px; right:6px; width:10px; height:10px; border-radius:50%;
  background:var(--accent-2); box-shadow:0 0 0 3px var(--bg);
  animation:pulseDot 2.2s ease-in-out infinite;
}
@keyframes pulseDot{ 0%,100%{ opacity:1; } 50%{ opacity:.35; } }

.chat-panel{
  position:fixed; right:24px; bottom:96px; z-index:400;
  width:min(380px, calc(100vw - 40px));
  height:min(560px, calc(100vh - 150px));
  background:var(--bg-3); border:1px solid var(--line-strong); border-radius:22px;
  display:flex; flex-direction:column; overflow:hidden;
  box-shadow:0 30px 80px rgba(0,0,0,.5);
  opacity:0; transform:translateY(16px) scale(.97); pointer-events:none;
  transition:opacity .3s var(--ease-out), transform .35s var(--ease-out);
}
.chat-panel.is-open{ opacity:1; transform:none; pointer-events:auto; }
.chat-head{
  padding:18px 20px; border-bottom:1px solid var(--line);
  display:flex; align-items:center; gap:12px;
  background:linear-gradient(120deg, rgba(111,71,230,.14), rgba(14,157,134,.08));
}
.chat-head-dot{ width:9px; height:9px; border-radius:50%; background:var(--accent-2); box-shadow:0 0 0 3px rgba(14,157,134,.2); }
.chat-head strong{ font-family:var(--font-display); font-size:15px; }
.chat-head span{ display:block; font-size:12px; color:var(--mute); }
.chat-close{ margin-left:auto; width:28px; height:28px; display:grid; place-items:center; border-radius:50%; }
.chat-close:hover{ background:var(--line); }
.chat-body{ flex:1; overflow-y:auto; padding:18px 16px; display:flex; flex-direction:column; gap:12px; }
.chat-msg{ max-width:86%; font-size:13.8px; line-height:1.55; padding:11px 14px; border-radius:14px; }
.chat-msg.bot{ align-self:flex-start; background:var(--bg-2); border:1px solid var(--line); border-bottom-left-radius:4px; }
.chat-msg.user{ align-self:flex-end; background:linear-gradient(120deg, var(--accent), var(--accent-3)); color:#fbfaff; border-bottom-right-radius:4px; font-weight:500; }
.chat-suggestions{ display:flex; flex-wrap:wrap; gap:8px; padding:0 16px 12px; }
.chat-chip{
  font-size:12px; padding:7px 12px; border-radius:50px; border:1px solid var(--line-strong);
  color:var(--mute); transition:all .25s ease;
}
.chat-chip:hover{ border-color:var(--accent-2); color:var(--ink); }
.chat-typing{ display:flex; gap:4px; padding:11px 14px; }
.chat-typing span{
  width:6px; height:6px; border-radius:50%; background:var(--mute-2);
  animation:typingBounce 1.1s infinite ease-in-out;
}
.chat-typing span:nth-child(2){ animation-delay:.15s; }
.chat-typing span:nth-child(3){ animation-delay:.3s; }
@keyframes typingBounce{ 0%,60%,100%{ transform:translateY(0); opacity:.5; } 30%{ transform:translateY(-4px); opacity:1; } }
.chat-form{
  display:flex; gap:8px; padding:14px 16px; border-top:1px solid var(--line);
}
.chat-form input{
  flex:1; background:var(--bg-2); border:1px solid var(--line-strong); border-radius:12px;
  padding:11px 14px; font-size:13.5px;
}
.chat-form input:focus{ outline:none; border-color:var(--accent-2); }
.chat-form button{
  width:40px; height:40px; border-radius:12px; display:grid; place-items:center; flex-shrink:0;
  background:linear-gradient(135deg, var(--accent), var(--accent-2)); color:#fbfaff;
}
.chat-form button svg{ width:17px; height:17px; }

/* =============================================================
   6. Sections
   ============================================================= */

/* --- Hero --- */
.hero{
  position:relative; min-height:100svh; min-height:100vh;
  display:flex; align-items:center; overflow:clip;
  padding-top:var(--nav-h);
  background:var(--bg);
}
/* Same mouse-reactive color-mesh glow used (smaller, quieter, static) as the ambient
   background in Marcas/Lo que hacemos/Diagnóstico/Contacto — the Hero is the loudest,
   most intense version of that one shared effect, not a separate one-off treatment.
   The old .hero-photo texture layer and .hero-grid line overlay were dropped: neither
   motif repeats anywhere else in the site, so they read as a disconnected "extra
   production value" rather than part of one coherent visual system. */
.hero-gradient{
  position:absolute; inset:0; z-index:1;
  background:
    radial-gradient(circle 620px at var(--mx,50%) var(--my,42%), rgba(111,71,230,.42) 0%, transparent 55%),
    radial-gradient(circle 760px at calc(var(--mx,50%) + 14%) calc(var(--my,42%) - 12%), rgba(61,91,219,.32) 0%, transparent 55%),
    radial-gradient(circle 680px at calc(var(--mx,50%) - 16%) calc(var(--my,42%) + 16%), rgba(14,157,134,.30) 0%, transparent 55%);
  filter:blur(46px) saturate(140%);
}
.hero .wrap{ position:relative; z-index:3; width:100%; }
.hero-inner{ max-width:900px; }
.hero-title{
  /* Floor lowered from 2.4rem: on a narrow phone the old floor won
     over the 7vw preferred value (7vw < 2.4rem below ~493px), so this
     3-line balanced headline rendered at a fixed 38.4px regardless of
     how small the screen got — too dominant on a 375px phone. 1.9rem
     keeps the same vw slope and the same desktop max, it only softens
     the bottom end. */
  font-size:clamp(1.9rem, 7vw, 5.6rem);
  text-wrap:balance;
}
.hero-title .line-wrap{ overflow:hidden; display:block; }
.hero-title .line{ display:block; transform:translateY(108%); }
.hero-title em{ font-style:italic; font-weight:500; }
.hero-sub{
  margin-top:28px; max-width:56ch; font-size:clamp(1.02rem,1.7vw,1.22rem);
  line-height:1.7; color:var(--mute);
  opacity:0; transform:translateY(18px);
}
.hero-ctas{
  margin-top:40px; display:flex; gap:16px; flex-wrap:wrap; align-items:center;
  opacity:0; transform:translateY(18px);
}
.hero-meta{
  margin-top:56px; display:flex; gap:28px; flex-wrap:wrap;
  opacity:0; transform:translateY(18px);
}
.hero-meta-item{ display:flex; flex-direction:column; gap:2px; }
.hero-meta-item strong{ font-family:var(--font-mono); font-size:15px; color:var(--accent-2); }
.hero-meta-item span{ font-size:12px; color:var(--mute-2); }
.scroll-cue{
  position:absolute; bottom:36px; left:50%; transform:translateX(-50%); z-index:2;
  display:flex; flex-direction:column; align-items:center; gap:8px;
  font-family:var(--font-mono); font-size:10.5px; letter-spacing:.14em; text-transform:uppercase;
  color:var(--mute-2); opacity:0;
}
.scroll-cue .stem{ width:1px; height:34px; background:linear-gradient(var(--accent-2), transparent); }

/* --- Logos strip (client logo carousel) — one continuous row, with an
   ambient color wash behind it for a bit of life. --- */
.logos-strip{
  position:relative;
  /* Symmetric, fluid top/bottom padding (was an oversized, asymmetric 48px/58px) —
     same clamp() approach as .section, just on its own smaller scale since this is
     a compact strip, not a full section. */
  padding:clamp(28px, 1.1vw + 28px, 44px) 0; background:var(--bg);
  border-top:1px solid var(--line); border-bottom:1px solid var(--line);
  overflow:hidden;
}
.logos-strip::before{
  content:''; position:absolute; inset:-40% -10%; z-index:0; pointer-events:none;
  background:
    radial-gradient(closest-side, color-mix(in srgb, var(--accent) 10%, transparent), transparent),
    radial-gradient(closest-side, color-mix(in srgb, var(--accent-2) 9%, transparent), transparent);
  background-position:15% 30%, 85% 70%;
  background-repeat:no-repeat;
  background-size:42% 90%, 42% 90%;
  animation:logosGlow 16s ease-in-out infinite;
  opacity:.8;
  /* Subtle cursor-follow nudge, layered on top of the drift animation via the
     standalone `translate` property (composes additively with `transform`,
     so it never fights the keyframes above). --mx/--my are written by
     initReactiveGlows() in main.js; unset (no JS/no hover) = no offset. */
  translate: calc((var(--mx, 50%) - 50%) * 0.5) calc((var(--my, 50%) - 50%) * 0.5);
}
@keyframes logosGlow{
  0%, 100%{ transform:translate3d(0,0,0) scale(1); }
  50%{ transform:translate3d(2%,-3%,0) scale(1.08); }
}
.logos-track-wrap{
  position:relative; z-index:1;
  overflow:hidden;
  -webkit-mask-image:linear-gradient(90deg, transparent, black 10%, black 90%, transparent);
          mask-image:linear-gradient(90deg, transparent, black 10%, black 90%, transparent);
}
.logos-track{
  display:flex; align-items:center; gap:56px; width:max-content;
  animation:logosScroll 36s linear infinite;
}
.logos-strip:hover .logos-track{ animation-play-state:paused; }
.logo-item{
  height:68px; width:auto; flex-shrink:0; max-width:220px;
  object-fit:contain;
  filter:brightness(0) opacity(.7);
  transition:filter .3s ease, transform .3s ease;
}
.logo-item:hover{
  filter:brightness(0) opacity(1);
  transform:translateY(-4px) scale(1.06);
}
@keyframes logosScroll{
  from{ transform:translateX(0); }
  to{ transform:translateX(-50%); }
}

/* --- Problems (manifesto) — kept for reference, currently unused --- */
.problems{ background:var(--bg); border-top:1px solid var(--line); position:relative; overflow:hidden; }
.problems::before{
  content:''; position:absolute; top:-14%; left:50%; width:56%; aspect-ratio:1/1; z-index:0; pointer-events:none;
  background:radial-gradient(closest-side, color-mix(in srgb, var(--accent-2) 9%, transparent), transparent 72%);
  transform:translateX(-50%);
  animation:problemsOrb 20s ease-in-out infinite;
  filter:blur(6px);
  /* Same cursor-follow nudge as .logos-strip::before, additive with the
     translateX(-50%) + keyframe animation above. */
  translate: calc((var(--mx, 50%) - 50%) * 0.45) calc((var(--my, 50%) - 50%) * 0.45);
}
.problems .wrap{ position:relative; z-index:1; }
@keyframes problemsOrb{
  0%, 100%{ transform:translate(-50%,0) scale(1); }
  50%{ transform:translate(-42%,4%) scale(1.15); }
}
.problems-head{ max-width:680px; margin-bottom:56px; }
.problems-head .h-section{ font-size:clamp(1.6rem, 3vw, 2.35rem); max-width:26ch; }
/* Eyebrow/heading/lede reveal in sequence instead of as one flat block */
.problems-head > *:nth-child(1){ transition-delay:0s; }
.problems-head > *:nth-child(2){ transition-delay:.12s; }
.problems-head > *:nth-child(3){ transition-delay:.22s; }
[data-reveal].eyebrow::before{ transform-origin:left; transform:scaleX(0); transition:transform .6s .3s var(--ease-soft); }
[data-reveal].eyebrow.is-revealed::before{ transform:scaleX(1); }
.problems-list{ display:grid; grid-template-columns:repeat(2,1fr); gap:1px; background:var(--line); border:1px solid var(--line); border-radius:20px; overflow:hidden; }
.problem-row{
  display:grid; grid-template-columns:80px 1fr; gap:24px;
  padding:38px clamp(20px,3.5vw,44px); background:var(--bg);
  transition:background .35s ease;
}
.problem-row:hover{ background:var(--bg-2); }
.problem-row .n{ font-family:var(--font-mono); font-size:14px; color:var(--accent-2); padding-top:6px; }
.problem-row h3{ font-size:clamp(1.1rem,1.8vw,1.4rem); margin-bottom:8px; }
.problem-row p{ color:var(--mute); font-size:14.5px; line-height:1.65; }

/* --- Services preview (video per service, replaces the Problems list) ---
   Each card reveals on its own (staggered via nth-child transition-delay)
   and lifts with a colored glow + icon pop on hover, so the grid feels
   alive even before the real videos are dropped in. */
.services-preview-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:32px 28px; }
.service-preview-card{
  display:flex; flex-direction:column; gap:16px;
  transition:transform .4s var(--ease-soft);
}
.service-preview-card:hover{ transform:translateY(-8px); }
.service-preview-card:nth-child(1){ transition-delay:0s; }
.service-preview-card:nth-child(2){ transition-delay:.08s; }
.service-preview-card:nth-child(3){ transition-delay:.16s; }
.service-preview-card:nth-child(4){ transition-delay:.24s; }
.service-preview-card:nth-child(5){ transition-delay:.32s; }
.service-preview-card .photo-slot{
  transition:border-color .35s ease, box-shadow .35s ease, background .35s ease;
}
.service-preview-card:hover .photo-slot{
  border-color:rgba(14,157,134,.45);
  border-color:color-mix(in srgb, var(--accent-2) 45%, var(--line-strong));
  box-shadow:0 20px 44px -24px rgba(14,157,134,.45);
  box-shadow:0 20px 44px -24px color-mix(in srgb, var(--accent-2) 55%, transparent);
}
.service-preview-card:hover .photo-slot--video svg{ transform:scale(1.18); opacity:1; }
/* Real photo (replaces the .photo-slot placeholder above) — same 16:10 frame,
   same hover lift language as the rest of the card grid. */
.service-photo{
  display:block; width:100%; aspect-ratio:16/10; object-fit:cover;
  border-radius:16px; border:1.5px solid var(--line-strong);
  transition:border-color .35s ease, box-shadow .35s ease, transform .35s ease;
}
.service-preview-card:hover .service-photo{
  border-color:color-mix(in srgb, var(--accent-2) 45%, var(--line-strong));
  box-shadow:0 20px 44px -24px color-mix(in srgb, var(--accent-2) 55%, transparent);
  transform:scale(1.015);
}
.service-preview-body h3{ font-size:1.02rem; font-family:var(--font-display); font-weight:600; margin:6px 0 6px; }
.service-preview-body p{ color:var(--mute); font-size:13.5px; line-height:1.6; }
.service-preview-num{
  font-family:var(--font-mono); font-size:12px; letter-spacing:.05em; color:var(--accent-2);
  display:inline-block; transition:transform .35s var(--ease-soft);
}
.service-preview-card:hover .service-preview-num{ transform:translateX(4px); }

/* --- Services (horizontal expanding-panel accordion) --- */
.services{ background:var(--bg-2); border-top:1px solid var(--line); border-bottom:1px solid var(--line); }
.services-head{ max-width:680px; margin-bottom:56px; }

.solutions-accordion{
  display:flex; gap:3px; height:440px;
  border-radius:24px; overflow:hidden;
  background:var(--line); border:1px solid var(--line);
}
.solution-panel{
  position:relative;
  flex:1 1 0%; min-width:0;
  display:flex; flex-direction:column;
  padding:28px 22px;
  background:var(--bg-3);
  text-align:left;
  overflow:hidden;
  transition:flex .55s var(--ease-soft), background .35s ease;
}
.solution-panel:hover{ background:var(--bg-2); }
.solution-panel.is-active{ flex:4.4 1 0%; background:var(--bg-3); }
.solution-panel::before{
  content:''; position:absolute; top:0; left:0; right:0; height:3px;
  background:linear-gradient(90deg, var(--accent), var(--accent-3), var(--accent-2));
  transform:scaleX(0); transform-origin:left;
  transition:transform .5s var(--ease-soft);
}
.solution-panel.is-active::before{ transform:scaleX(1); }

.solution-panel-icon{
  width:28px; height:28px; flex-shrink:0;
  display:flex; align-items:center; justify-content:center;
  color:var(--accent-2);
}
.solution-panel-icon svg{ width:22px; height:22px; }
.solution-panel:nth-child(2) .solution-panel-icon{ color:var(--accent-3); }
.solution-panel:nth-child(3) .solution-panel-icon{ color:var(--accent); }
.solution-panel:nth-child(4) .solution-panel-icon{ color:var(--accent-3); }

.solution-panel-num{
  font-family:var(--font-mono); font-size:13px; color:var(--mute-2);
  margin-top:16px;
}
.solution-panel-body{ margin-top:auto; display:flex; flex-direction:column; }
.solution-panel-body h3{
  font-size:1.02rem; line-height:1.3; font-weight:600;
  writing-mode:vertical-rl; transform:rotate(180deg);
  white-space:nowrap;
  transition:color .3s ease;
}
.solution-panel.is-active .solution-panel-body h3{
  writing-mode:horizontal-tb; transform:none; white-space:normal;
  font-size:1.35rem; margin-bottom:14px; max-width:26ch;
}
.solution-panel-body p{
  color:var(--mute); font-size:14px; line-height:1.7; max-width:38ch;
  opacity:0; max-height:0; overflow:hidden;
  transition:opacity .25s ease;
}
.solution-panel.is-active .solution-panel-body p{
  opacity:1; max-height:240px;
  transition:opacity .4s ease .15s;
}

/* --- Process --- */
.process{ background:var(--bg); }
.process-head{ max-width:640px; margin-bottom:40px; }
.process-grid{ display:grid; gap:44px; grid-template-columns:repeat(4,1fr); }
.process-step{ display:flex; flex-direction:column; gap:18px; }
.process-num{
  width:52px; height:52px; border-radius:50%; border:1px solid var(--line-strong);
  display:flex; align-items:center; justify-content:center;
  font-family:var(--font-mono); font-weight:600; font-size:16px; color:var(--accent-2);
  transform:scale(0);
  flex-shrink:0;
}
.process-step h3{ font-size:1.15rem; }
.process-step p{ color:var(--mute); font-size:14px; line-height:1.7; }
.process-connector{ height:1px; background:linear-gradient(90deg, var(--line-strong), transparent); margin-top:-30px; display:none; }

/* Process, redesigned as an interactive timeline + supporting photo.
   Hover (or focus/tap) a step to switch the photo — see initProcessVisual in main.js.
   Each step gets its own brand color (--step-color, cycled from the gradient palette).
   .process-left bundles the heading + step list into one column so the photo
   (the other column) stretches and top-aligns against that WHOLE block via
   align-items:stretch — the photo now starts level with the heading itself,
   not just with the list below it, and its height naturally matches the
   combined heading+list column instead of leaving empty space. */
.process-layout{ display:grid; grid-template-columns:1fr .8fr; gap:64px; align-items:stretch; }
.process-left{ min-width:0; }

.process-list{ position:relative; display:grid; gap:10px; }
.process-list::before{
  content:''; position:absolute; left:25px; top:28px; bottom:28px; width:2px;
  background:linear-gradient(var(--line-strong), var(--line-strong));
  z-index:0;
}
.process-list .process-step{
  position:relative; z-index:1;
  --step-color: var(--accent);
  flex-direction:row; align-items:flex-start; gap:20px;
  padding:16px 18px 16px 14px; margin:0 -18px;
  border-radius:18px; border:1px solid transparent;
  opacity:.55; cursor:pointer;
  transition:opacity .35s ease, background .35s ease, border-color .35s ease, transform .35s ease;
}
.process-list .process-step:nth-child(2){ --step-color: var(--accent-3); }
.process-list .process-step:nth-child(3){ --step-color: var(--accent-2); }
.process-list .process-step:nth-child(4){ --step-color: var(--accent); }
.process-list .process-step:hover,
.process-list .process-step:focus-visible,
.process-list .process-step.is-active{
  opacity:1; transform:translateX(6px);
  background:rgba(111,71,230,.06);
  background:color-mix(in srgb, var(--step-color) 8%, transparent);
  border-color:rgba(111,71,230,.3);
  border-color:color-mix(in srgb, var(--step-color) 30%, transparent);
}
.process-list .process-step:focus-visible{ outline:none; }
.process-list .process-step > div{ display:flex; flex-direction:column; gap:4px; }
.process-step-head{ display:flex; align-items:center; gap:10px; }
.process-step-icon{
  width:18px; height:18px; flex-shrink:0; opacity:0; transform:scale(.7);
  color:var(--step-color);
  transition:opacity .3s ease, transform .3s ease;
}
.process-list .process-step:hover .process-step-icon,
.process-list .process-step:focus-visible .process-step-icon,
.process-list .process-step.is-active .process-step-icon{
  opacity:1; transform:scale(1);
}
.process-num{ background:var(--bg); transition:background .35s ease, border-color .35s ease, color .35s ease; }
.process-list .process-step:hover .process-num,
.process-list .process-step:focus-visible .process-num,
.process-list .process-step.is-active .process-num{
  background:var(--step-color); border-color:var(--step-color); color:#fff;
}
.process-visual .photo-slot{ max-width:460px; margin:0 auto; border-radius:24px; }

/* --active-color is set on .process-visual by initProcessVisual() in main.js and
   inherited by both the photo panel and the dots below it. Not position:sticky —
   the interaction is hover/tap-driven, not scroll-driven, so the panel stays level
   (top-aligned via .process-layout's align-items:stretch) with the heading+list
   column instead of detaching and drifting out of alignment as the page scrolls.
   On desktop/tablet the panel stretches to match .process-left's own height (heading
   + list combined), so it starts level with the heading and ends level with the last
   step — no fixed aspect-ratio, no leftover empty space. On mobile, where the photo
   sits below the list instead of beside it, it falls back to aspect-ratio:3/4 (see
   the max-width:719px breakpoint below) since there's no column height to match.
   max-height is a safety cap: if the column ever renders taller than a sane photo
   proportion (longer text wrap, different font metrics, a bug), the panel stops
   growing there instead of turning into an oversized box. */
.process-visual{ --active-color: var(--accent); display:flex; flex-direction:column; }
.process-visual-sticky{
  position:relative;
  max-width:460px; width:100%; margin:0 auto; max-height:760px;
  flex:1 1 auto; min-height:0;
  border-radius:24px;
}
.process-visual .process-visual-slot{
  position:absolute; inset:0; max-width:none; margin:0;
  aspect-ratio:auto; /* override .photo-slot--portrait's 3/4 ratio: inset:0 should fill
                         the sticky container exactly, not get squeezed to a fixed ratio */
  opacity:0; transition:opacity .5s ease, border-color .45s ease;
  pointer-events:none;
  border-radius:24px; border:1.5px solid var(--line-strong); overflow:hidden;
  background:var(--bg-2);
}
.process-visual .process-visual-slot.is-active{
  opacity:1; pointer-events:auto;
  border-color:color-mix(in srgb, var(--active-color) 55%, var(--line-strong));
}
/* The real <img> fills the slot exactly (slot itself keeps the border/radius/
   ::before "0X" badge below, since ::before doesn't render on <img> — a
   replaced element — so the photo has to live one level in). */
.process-visual .process-visual-slot img{
  display:block; width:100%; height:100%; object-fit:cover;
}
.process-visual .process-visual-slot::before{
  content:"0" attr(data-step-img);
  position:absolute; top:14px; left:14px;
  font-family:var(--font-mono); font-size:11px; font-weight:600; letter-spacing:.08em;
  color:var(--mute-2); color:var(--active-color);
  background:var(--bg-3); border:1px solid var(--line-strong);
  border-color:color-mix(in srgb, var(--active-color) 45%, var(--line-strong));
  padding:4px 10px; border-radius:50px;
}
.process-visual .process-visual-slot span{
  padding:6px 14px; border-radius:50px; border:1px solid var(--line-strong);
  border-color:color-mix(in srgb, var(--active-color) 35%, var(--line-strong));
  color:var(--ink);
}
.process-visual-dots{ display:flex; justify-content:center; gap:10px; margin-top:20px; flex-shrink:0; }
.process-visual-dot{
  width:9px; height:9px; border-radius:50%; border:none; padding:0;
  background:var(--line-strong); cursor:pointer;
  transition:background .3s ease, transform .3s ease;
}
.process-visual-dot.is-active{
  background:var(--active-color, var(--accent));
  transform:scale(1.35);
}

/* --- Cases --- */
.cases{ background:var(--bg-2); border-top:1px solid var(--line); border-bottom:1px solid var(--line); }
.cases-head{ display:flex; align-items:flex-end; justify-content:space-between; gap:24px; flex-wrap:wrap; margin-bottom:56px; }
.cases-grid{ display:grid; gap:24px; grid-template-columns:repeat(3,1fr); }
.case-card{ display:flex; flex-direction:column; gap:20px; }
.case-tag{
  align-self:flex-start; font-family:var(--font-mono); font-size:10.5px; letter-spacing:.1em; text-transform:uppercase;
  padding:5px 11px; border-radius:50px; border:1px solid rgba(111,71,230,.4); color:var(--accent);
  background:rgba(111,71,230,.08);
}
.case-industry{ font-family:var(--font-mono); font-size:12px; color:var(--mute-2); }
.case-card h3{ font-size:1.2rem; line-height:1.3; }
.case-card p{ color:var(--mute); font-size:14px; line-height:1.7; flex:1; }
.case-metric{ display:flex; align-items:baseline; gap:8px; border-top:1px solid var(--line); padding-top:18px; }
.case-metric strong{ font-family:var(--font-display); font-size:1.9rem; color:var(--accent-2); }
.case-metric span{ font-size:12px; color:var(--mute-2); max-width:16ch; }

/* Tools screenshots strip (inside Casos) */
.tools-strip{ display:grid; grid-template-columns:repeat(2,1fr); gap:20px; margin-top:24px; }

/* --- Diagnostic tool --- */
.diagnostic{ background:var(--bg); border-top:1px solid var(--line); position:relative; overflow:clip; }
.diagnostic-glow{
  position:absolute; inset:-30% -10% auto -10%; height:120%;
  background:radial-gradient(50% 50% at var(--mx, 50%) var(--my, 0%), rgba(111,71,230,.16), transparent 70%);
  filter:blur(20px); pointer-events:none;
}
.diagnostic-head{ max-width:680px; margin:0 auto 48px; text-align:center; }
.diagnostic-head .eyebrow{ justify-content:center; }
.diagnostic-box{
  position:relative; z-index:1;
  max-width:680px; margin:0 auto;
  background:var(--bg-3); border:1px solid var(--line-strong); border-radius:26px;
  padding:clamp(28px,5vw,52px);
}
.diag-progress{ display:flex; gap:6px; margin-bottom:32px; }
.diag-progress-seg{ flex:1; height:3px; border-radius:3px; background:var(--line-strong); overflow:hidden; }
.diag-progress-seg span{ display:block; height:100%; width:0%; background:linear-gradient(90deg, var(--accent), var(--accent-2)); transition:width .5s var(--ease-out); }
.diag-step{ display:none; }
.diag-step.is-active{ display:block; animation:diagFade .4s var(--ease-out); }
@keyframes diagFade{ from{ opacity:0; transform:translateX(12px); } to{ opacity:1; transform:none; } }
.diag-step h3{ font-size:clamp(1.2rem,2.4vw,1.6rem); margin-bottom:22px; }
.diag-options{ display:grid; gap:10px; }
.diag-option{
  display:flex; align-items:center; gap:12px;
  padding:15px 18px; border:1px solid var(--line-strong); border-radius:14px;
  font-size:14.5px; transition:all .25s ease; text-align:left;
}
.diag-option:hover{ border-color:var(--accent-2); }
.diag-option .mark{
  width:18px; height:18px; border-radius:50%; border:1.5px solid var(--line-strong); flex-shrink:0;
  display:grid; place-items:center; transition:all .2s ease;
}
.diag-option.is-selected{ border-color:var(--accent-2); background:rgba(14,157,134,.06); }
.diag-option.is-selected .mark{ border-color:var(--accent-2); background:var(--accent-2); }
.diag-option.is-selected .mark::after{ content:''; width:7px; height:7px; border-radius:50%; background:#fbfaff; }
.diag-option[data-multi] .mark{ border-radius:5px; }
.diag-nav{ display:flex; justify-content:space-between; align-items:center; margin-top:28px; gap:12px; }
.diag-back{ font-size:13.5px; color:var(--mute); }
.diag-back:hover{ color:var(--ink); }
.diag-fields{ display:grid; gap:14px; }
.diag-field label{ display:block; font-size:12px; color:var(--mute-2); margin-bottom:6px; letter-spacing:.03em; text-transform:uppercase; font-family:var(--font-mono); }
.diag-field input{
  width:100%; background:var(--bg-2); border:1px solid var(--line-strong); border-radius:12px;
  padding:13px 15px; font-size:14.5px;
}
.diag-field input:focus{ outline:none; border-color:var(--accent-2); }
.diag-consent{ display:flex; gap:10px; align-items:flex-start; font-size:12.5px; color:var(--mute); margin-top:6px; }
.diag-consent input{ margin-top:3px; width:15px; height:15px; accent-color:var(--accent-2); flex-shrink:0; }
.diag-loading{ display:flex; flex-direction:column; align-items:center; gap:18px; padding:30px 0; text-align:center; }
.diag-spinner{
  width:44px; height:44px; border-radius:50%;
  border:2.5px solid var(--line-strong); border-top-color:var(--accent-2);
  animation:spin .9s linear infinite;
}
@keyframes spin{ to{ transform:rotate(360deg); } }
.diag-report{ display:grid; gap:22px; }
.diag-report-badge{
  display:inline-flex; align-self:flex-start; gap:8px; align-items:center;
  font-family:var(--font-mono); font-size:11px; letter-spacing:.08em; text-transform:uppercase;
  padding:6px 12px; border-radius:50px; background:rgba(14,157,134,.1); color:var(--accent-2);
  border:1px solid rgba(14,157,134,.35);
}
.diag-report h3{ font-size:1.4rem; }
.diag-report-stat{
  display:flex; align-items:baseline; gap:10px; padding:18px; border-radius:16px;
  background:var(--bg-2); border:1px solid var(--line);
}
.diag-report-stat strong{ font-family:var(--font-display); font-size:2.1rem; color:var(--accent-2); white-space:nowrap; }
.diag-report-list{ display:grid; gap:10px; }
.diag-report-list li{
  display:flex; gap:10px; align-items:flex-start; font-size:14px; color:var(--mute); line-height:1.6;
  padding:12px 14px; background:var(--bg-2); border:1px solid var(--line); border-radius:12px;
}
.diag-report-list li::before{ content:'→'; color:var(--accent-2); flex-shrink:0; }
.diag-report-note{ font-size:12.5px; color:var(--mute-2); border-top:1px solid var(--line); padding-top:16px; line-height:1.6; }
.diag-error{ text-align:center; padding:20px 0; color:var(--mute); font-size:14px; }

/* --- FAQ ---
   Was a flat --bg-2 (grey) fill, sitting between two --bg (near-white)
   sections — the one block on the page with a hard, glow-less slab of
   colour. Switched to the same near-white background as its neighbours
   plus a quiet ambient glow (same language as Diagnóstico/Contacto), so
   it recedes into the page instead of reading as a grey band. */
.faq{ background:var(--bg); border-top:1px solid var(--line); position:relative; overflow:clip; }
.faq-glow{
  position:absolute; inset:-20% -10% auto -10%; height:90%;
  background:radial-gradient(50% 50% at var(--mx, 50%) var(--my, 0%), rgba(111,71,230,.13), transparent 70%);
  filter:blur(20px); pointer-events:none;
}
.faq .wrap{ position:relative; z-index:1; }
.faq-head{ max-width:600px; margin-bottom:48px; }
.faq-list{ max-width:820px; }
.faq-item{ border-top:1px solid var(--line); }
.faq-item:last-child{ border-bottom:1px solid var(--line); }
.faq-trigger{
  width:100%; display:flex; justify-content:space-between; align-items:center; gap:20px;
  padding:24px 2px; text-align:left; font-size:clamp(1rem,1.8vw,1.15rem); font-weight:500;
}
.faq-trigger:hover{ color:var(--accent-2); }
.faq-plus{
  width:24px; height:24px; position:relative; flex-shrink:0;
  transition:transform .35s var(--ease-soft);
}
.faq-plus::before, .faq-plus::after{ content:''; position:absolute; top:50%; left:50%; background:var(--ink); transform:translate(-50%,-50%); }
.faq-plus::before{ width:14px; height:1.4px; }
.faq-plus::after{ width:1.4px; height:14px; }
.faq-item.is-open .faq-plus{ transform:rotate(135deg); }
.faq-panel{ max-height:0; overflow:hidden; transition:max-height .45s var(--ease-soft); }
.faq-panel-inner{ padding:0 2px 26px; max-width:70ch; color:var(--mute); font-size:14.5px; line-height:1.75; }

/* --- Contact --- */
.contact{
  background:linear-gradient(160deg, var(--bg-2), var(--bg));
  border-top:1px solid var(--line);
  position:relative; overflow:clip;
}
.contact-glow{
  position:absolute; inset:0; z-index:0;
  background:radial-gradient(50% 60% at var(--mx, 50%) var(--my, 100%), rgba(111,71,230,.18), transparent 70%);
  pointer-events:none;
}
.contact .wrap{ position:relative; z-index:1; }
.contact-grid{ display:grid; gap:60px; grid-template-columns:1fr 1fr; align-items:start; }
.contact-headline{ font-size:clamp(2rem,4.6vw,3.4rem); }
.contact-email{
  display:inline-flex; align-items:center; gap:12px; margin-top:26px;
  font-family:var(--font-display); font-size:clamp(1.2rem,2.6vw,1.7rem); font-weight:600;
  border-bottom:1px solid var(--line-strong); padding-bottom:8px; transition:border-color .3s ease, color .3s ease;
}
.contact-email:hover{ border-color:var(--accent-2); color:var(--accent-2); }
.contact-note{ margin-top:20px; font-size:13.5px; color:var(--mute-2); max-width:44ch; line-height:1.7; }
.contact-form{ display:grid; gap:16px; }
.contact-form .field-row{ display:grid; gap:16px; grid-template-columns:1fr 1fr; }
.field label{ display:block; font-size:11.5px; color:var(--mute-2); margin-bottom:7px; letter-spacing:.06em; text-transform:uppercase; font-family:var(--font-mono); }
.field input, .field textarea{
  width:100%; background:var(--bg-2); border:1px solid var(--line-strong); border-radius:12px;
  padding:13px 15px; font-size:14.5px;
}
.field input:focus, .field textarea:focus{ outline:none; border-color:var(--accent-2); }
.field textarea{ resize:vertical; min-height:96px; }
.contact-status{ font-size:13px; min-height:18px; color:var(--accent-2); }
.contact-status.is-error{ color:#c93a3a; }

/* --- Footer --- */
.footer{
  padding:clamp(32px, 3vw + 20px, 56px) 0; border-top:1px solid var(--line);
  display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:20px;
}
.footer-logo{ display:flex; align-items:center; }
.footer-logo img{ display:block; height:22px; width:auto; }
.footer-meta{ display:flex; gap:26px; flex-wrap:wrap; font-size:13px; color:var(--mute-2); }
.footer-meta a{ color:var(--mute); transition:color .25s ease; }
.footer-meta a:hover{ color:var(--accent-2); }

/* =============================================================
   7. Effects
   ============================================================= */
.count-up{ font-variant-numeric:tabular-nums; }

/* svg bridge illustration wrapper */
.svg-visual{ width:100%; height:auto; display:block; }
.svg-visual .glow-line{ filter:drop-shadow(0 0 6px rgba(111,71,230,.5)); }

.solucion-visual{ position:relative; }
.solucion-photo{
  position:absolute; left:-8px; bottom:-28px; z-index:2;
  width:132px; padding:12px 12px 16px;
  background:var(--bg-3); border-radius:4px;
  box-shadow:0 20px 40px rgba(21,18,31,.18);
  transform:rotate(-4deg);
}
.solucion-photo img{
  display:block; width:100%; aspect-ratio:1/1; object-fit:cover; border-radius:2px;
}

/* =============================================================
   8. Responsive (mobile-first overrides via max-width for this
      near-desktop-first layout; using the mandated breakpoints)
   ============================================================= */
@media (max-width: 1279px){
  .process-grid{ grid-template-columns:repeat(2,1fr); row-gap:44px; }
  .cases-grid{ grid-template-columns:repeat(2,1fr); }
  .tools-strip{ grid-template-columns:repeat(2,1fr); }
  .services-preview-grid{ grid-template-columns:repeat(2,1fr); }
}
@media (max-width: 959px){
  .nav-links{ display:none; }
  .nav-burger{ display:flex; }
  .contact-grid{ grid-template-columns:1fr; gap:44px; }
  .problems-list{ grid-template-columns:1fr; }
  .problem-row{ grid-template-columns:52px 1fr; padding-inline:24px; }
  #solucion .wrap{ grid-template-columns:1fr!important; gap:48px!important; }
  .process-layout{ grid-template-columns:1fr .8fr; gap:36px; }
  .process-visual .photo-slot{ max-width:360px; }
  .process-visual-sticky{ max-width:360px; }
  .solutions-accordion{ height:380px; }
}
@media (max-width: 719px){
  .process-grid{ grid-template-columns:1fr; }
  .process-layout{ grid-template-columns:1fr; gap:28px; }
  .process-visual .photo-slot{ max-width:360px; }
  .process-visual-sticky{ max-width:360px; aspect-ratio:3/4; flex:none; }
  .cases-grid{ grid-template-columns:1fr; }
  .tools-strip{ grid-template-columns:1fr; }
  .services-preview-grid{ grid-template-columns:1fr; }
  .contact-form .field-row{ grid-template-columns:1fr; }
  .hero-meta{ gap:20px; }
  .logos-track{ gap:36px; animation-duration:26s; }
  .logo-item{ height:48px; max-width:160px; }

  .solutions-accordion{ flex-direction:column; height:auto; gap:2px; }
  .solution-panel{
    flex:none; height:auto; display:grid;
    grid-template-columns:26px 30px 1fr; align-items:start; column-gap:12px;
    padding:20px;
  }
  .solution-panel-icon, .solution-panel-num{ margin-top:2px; }
  .solution-panel-body{ margin-top:0; }
  .solution-panel-body h3{
    writing-mode:horizontal-tb!important; transform:none!important; white-space:normal!important;
    font-size:1rem; max-width:none;
  }
  .solution-panel.is-active .solution-panel-body h3{ font-size:1.05rem; margin-bottom:10px; }
  .chat-panel{ right:16px; bottom:88px; width:calc(100vw - 32px); }
  .chat-fab{ right:16px; bottom:16px; }
  .whatsapp-fab{ right:16px; bottom:16px; width:54px; height:54px; }
  .whatsapp-fab svg{ width:27px; height:27px; }

  /* The Hero's cursor-follow gradient uses circle radii tuned for a
     desktop-sized viewport (620-760px). On a narrow phone screen those
     same circles are several times wider than the viewport itself, so
     only their solid-color centers are visible — it reads as a flat
     blue background instead of a soft glow. Shrink the circles (and
     soften them slightly) so the effect stays a subtle accent instead
     of a wash, without removing it outright. */
  .hero-gradient{
    background:
      radial-gradient(circle 130px at var(--mx,50%) var(--my,42%), rgba(111,71,230,.30) 0%, transparent 68%),
      radial-gradient(circle 155px at calc(var(--mx,50%) + 14%) calc(var(--my,42%) - 12%), rgba(61,91,219,.22) 0%, transparent 68%),
      radial-gradient(circle 135px at calc(var(--mx,50%) - 16%) calc(var(--my,42%) + 16%), rgba(14,157,134,.20) 0%, transparent 68%);
    filter:blur(20px) saturate(140%);
  }

  /* The Polaroid photo pinned on "El puente" overlaps the bottom-left
     corner of the bridge illustration — that only reads well when the
     illustration has enough width for the overlap to look intentional.
     On a narrow phone the two compete for the same small area, so the
     photo is hidden here and the illustration stands on its own. */
  .solucion-photo{ display:none; }
}
@media (max-width: 539px){
  .diagnostic-box{ padding:24px 18px; }
}

/* =============================================================
   9. Reduced-motion (only intrusive effects)
   ============================================================= */
@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior:auto; }
  .hero-gradient{ transition:none; }
  .chat-fab-dot{ animation:none; }
  .logos-track{ animation:none; flex-wrap:wrap; justify-content:center; width:auto; }
  .logos-track-wrap{ overflow-x:auto; -webkit-mask-image:none; mask-image:none; }
  .logos-strip::before, .problems::before{ animation:none; }
}
