/* ==========================================================================
   PICODAVI · styles.css
   Clean Editorial Blue — blanco dominante, azul eléctrico único como acento,
   Syne en titulares, Inter en cuerpo, Space Mono en datos.
   ========================================================================== */

/* --- Tokens ------------------------------------------------------------- */
:root {
  /* Color */
  --bg:        #FFFFFF;
  --surface:   #F5F5F3;
  --ink:       #0A0A0A;   /* negro editorial — titulares */
  --text:      #27272A;   /* cuerpo (≈13:1 sobre blanco) */
  --muted:     #6B7280;   /* secundario (AA sobre blanco) */
  --blue:      #2563EB;   /* acento primario */
  --blue-700:  #1D4ED8;   /* hover azul */
  --blue-tint: #EFF6FF;   /* highlight */
  --border:    #E5E7EB;
  --watermark: #F0F0EE;

  --yes:       #16A34A;   /* check verde (fit) */

  /* Tipografía */
  --font-display: "Syne", "Segoe UI", system-ui, sans-serif;
  --font-body:    "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono:    "Space Mono", ui-monospace, "Cascadia Mono", monospace;

  /* Espaciado (ritmo vertical) */
  --s-1: .25rem; --s-2: .5rem;  --s-3: .75rem; --s-4: 1rem;
  --s-5: 1.5rem; --s-6: 2rem;   --s-7: 3rem;   --s-8: 4rem;
  --s-9: 6rem;   --s-10: 8rem;

  --wrap: 1200px;
  --gutter: clamp(1.25rem, 5vw, 4rem);
  --section-y: clamp(4.5rem, 9vw, 8rem);

  --radius: 14px;
  --radius-sm: 10px;
  --radius-lg: 22px;

  /* Easing — ease-out exponencial, sin bounce */
  --ease: cubic-bezier(.22, 1, .36, 1);
  --ease-soft: cubic-bezier(.4, 0, .2, 1);

  /* Z-index semántico */
  --z-base: 1;
  --z-marquee: 5;
  --z-float: 60;
  --z-nav: 100;
  --z-cursor: 9000;
  --z-splash: 9500;
}

/* --- Reset -------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
html.is-locked { overflow: hidden; }

body {
  font-family: var(--font-body);
  font-size: clamp(1rem, 0.97rem + 0.2vw, 1.0625rem);
  line-height: 1.62;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

/* Foco de teclado visible (a11y) */
:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
  border-radius: 4px;
}

/* --- Utilidades --------------------------------------------------------- */
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.mono { font-family: var(--font-mono); font-weight: 400; }
.lead { font-size: clamp(1.0625rem, 1rem + 0.5vw, 1.375rem); line-height: 1.55; color: var(--muted); max-width: 56ch; text-wrap: pretty; }
.lead--light { color: rgba(255,255,255,.72); }

/* --- Tipografía base ---------------------------------------------------- */
h1, h2, h3, h4 { font-family: var(--font-display); color: var(--ink); line-height: 1.05; letter-spacing: -0.03em; text-wrap: balance; font-weight: 700; }

.section__title { font-size: clamp(1.9rem, 1.3rem + 2.6vw, 3.25rem); font-weight: 800; letter-spacing: -0.035em; }
.section__title--light { color: #fff; }

/* ==========================================================================
   SPLASH
   ========================================================================== */
.splash {
  position: fixed; inset: 0; z-index: var(--z-splash);
  display: grid; place-items: center;
  background: var(--bg);
  transition: opacity .6s var(--ease), visibility .6s;
  /* Red de seguridad en CSS puro: si el JS no se ejecuta (o un buscador
     no lo espera), el splash se oculta solo a los 4,5 s y deja ver la web. */
  animation: splashSafetyHide .6s var(--ease) 4.5s forwards;
}
.splash.is-done { opacity: 0; visibility: hidden; pointer-events: none; }
@keyframes splashSafetyHide { to { opacity: 0; visibility: hidden; pointer-events: none; } }
.splash__inner { width: min(80vw, 520px); text-align: center; }
.splash__word { font-family: var(--font-display); font-weight: 800; color: var(--ink);
  font-size: clamp(2.5rem, 11vw, 6rem); letter-spacing: -0.04em; display: flex; justify-content: center; }
.splash__word span {
  display: inline-block; opacity: 0; transform: translateY(0.5em);
  animation: splashLetter .5s var(--ease) forwards;
}
.splash__word span:nth-child(1){animation-delay:.05s}
.splash__word span:nth-child(2){animation-delay:.13s}
.splash__word span:nth-child(3){animation-delay:.21s}
.splash__word span:nth-child(4){animation-delay:.29s}
.splash__word span:nth-child(5){animation-delay:.37s}
.splash__word span:nth-child(6){animation-delay:.45s}
.splash__word span:nth-child(7){animation-delay:.53s}
.splash__word span:nth-child(8){animation-delay:.61s}
@keyframes splashLetter { to { opacity: 1; transform: translateY(0); } }

.splash__bar { margin-top: var(--s-5); height: 2px; width: 100%; background: var(--border); overflow: hidden; border-radius: 2px; }
.splash__bar i { display: block; height: 100%; width: 100%; background: var(--blue); transform: scaleX(0); transform-origin: left;
  animation: splashBar 3.4s var(--ease-soft) .3s forwards; }
@keyframes splashBar { to { transform: scaleX(1); } }

/* ==========================================================================
   CURSOR PERSONALIZADO
   ========================================================================== */
.cursor { position: fixed; top: 0; left: 0; z-index: var(--z-cursor); pointer-events: none;
  width: 34px; height: 34px; border: 1.5px solid var(--blue); border-radius: 50%;
  transform: translate(-50%, -50%) scale(0.6); opacity: 0;
  transition: transform .18s var(--ease), opacity .25s, background-color .2s, width .2s, height .2s; }
.cursor.is-active { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.cursor.is-hover { width: 64px; height: 64px; background: var(--blue); border-color: var(--blue); }
.cursor__label { font-family: var(--font-mono); font-size: 10px; color: #fff; opacity: 0; transition: opacity .15s;
  text-transform: lowercase; letter-spacing: .02em; }
.cursor.is-hover .cursor__label { opacity: 1; }
@media (hover: none), (pointer: coarse) { .cursor { display: none !important; } }

/* ==========================================================================
   NAV
   ========================================================================== */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: var(--z-nav);
  transition: background-color .35s var(--ease), box-shadow .35s, border-color .35s;
  border-bottom: 1px solid transparent; }
.nav.is-solid { background: rgba(255,255,255,.92); backdrop-filter: saturate(180%) blur(10px);
  box-shadow: 0 1px 0 rgba(10,10,10,.04), 0 8px 24px -16px rgba(10,10,10,.25); border-bottom-color: var(--border); }
.nav__inner { max-width: var(--wrap); margin-inline: auto; padding: 0 var(--gutter);
  height: 68px; display: flex; align-items: center; justify-content: space-between; gap: var(--s-5); }

.nav__brand { font-family: var(--font-display); font-weight: 800; font-size: 1.3rem; letter-spacing: -0.04em; color: var(--ink); }
.nav__dot { color: var(--blue); }

.nav__links { display: flex; gap: clamp(.75rem, 2vw, 2rem); }
.nav__links a { font-size: .9rem; font-weight: 500; color: var(--text); display: inline-flex; align-items: baseline; gap: 5px;
  padding: 6px 2px; position: relative; }
.nav__num { font-family: var(--font-mono); font-size: .68rem; color: var(--muted); }
.nav__links a::after { content: ""; position: absolute; left: 2px; right: 2px; bottom: 0; height: 2px; background: var(--blue);
  transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
.nav__links a:hover::after, .nav__links a:focus-visible::after { transform: scaleX(1); }

.nav__actions { display: flex; align-items: center; gap: var(--s-4); }
.nav__lang { font-family: var(--font-mono); font-size: .8rem; font-weight: 700; letter-spacing: .04em;
  border: 1px solid var(--border); border-radius: 999px; padding: 6px 12px; color: var(--ink); transition: border-color .2s, background-color .2s; }
.nav__lang:hover { border-color: var(--blue); background: var(--blue-tint); }

.nav__burger { display: none; width: 40px; height: 40px; flex-direction: column; justify-content: center; align-items: center; gap: 5px; }
.nav__burger span { width: 22px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .3s var(--ease), opacity .2s; }
.nav__burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav__mobile { display: none; flex-direction: column; gap: var(--s-2); padding: var(--s-4) var(--gutter) var(--s-6);
  background: rgba(255,255,255,.98); backdrop-filter: blur(10px); border-bottom: 1px solid var(--border); }
.nav__mobile a { padding: 12px 4px; font-weight: 600; font-size: 1.05rem; border-bottom: 1px solid var(--border); }
.nav__mobile a.btn { border-bottom: 0; margin-top: var(--s-3); justify-content: center; }

/* ==========================================================================
   BOTONES
   ========================================================================== */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  font-weight: 600; font-size: .95rem; border-radius: 999px; padding: 11px 20px; line-height: 1;
  transition: transform .2s var(--ease), background-color .2s, color .2s, box-shadow .2s, border-color .2s;
  border: 1px solid transparent; }
.btn--lg { padding: 15px 26px; font-size: 1rem; }
.btn--block { width: 100%; }
.btn--primary { background: var(--blue); color: #fff; box-shadow: 0 10px 24px -12px rgba(37,99,235,.7); }
.btn--primary:hover { background: var(--blue-700); transform: translateY(-2px); box-shadow: 0 16px 30px -12px rgba(37,99,235,.65); }
.btn--ghost { color: var(--ink); border-color: var(--border); background: #fff; }
.btn--ghost:hover { border-color: var(--ink); transform: translateY(-2px); }

.link-strong { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.05rem, 1rem + .8vw, 1.4rem);
  color: var(--ink); letter-spacing: -.02em; border-bottom: 2px solid var(--blue); padding-bottom: 3px; transition: color .2s; }
.link-strong:hover { color: var(--blue); }

/* ==========================================================================
   SECCIÓN genérica + watermark + tags
   ========================================================================== */
.section { position: relative; padding-block: var(--section-y); overflow: clip; }

.watermark { position: absolute; top: clamp(-1rem, -2vw, 0rem); right: var(--gutter); z-index: 0;
  font-family: var(--font-display); font-weight: 800; font-size: clamp(7rem, 22vw, 16rem);
  line-height: .8; color: var(--watermark); letter-spacing: -.05em; pointer-events: none; user-select: none; }
.watermark--dark { color: rgba(255,255,255,.05); }

.section > .wrap { position: relative; z-index: 1; }

.section__head { max-width: 760px; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section__tag { display: inline-flex; align-items: center; gap: .55em; font-family: var(--font-mono); font-size: .82rem;
  color: var(--blue); font-weight: 700; letter-spacing: .02em; margin-bottom: var(--s-4); }
.section__tag-num { background: var(--blue-tint); color: var(--blue); border-radius: 6px; padding: 2px 7px; }
.section__tag--light { color: #fff; }
.section__tag--light .section__tag-num { background: rgba(255,255,255,.12); color: #fff; }
.section__title { margin-bottom: var(--s-4); }
.section__lead { margin-top: var(--s-2); }

.note { margin-top: clamp(1.75rem, 3vw, 2.5rem); font-size: .9rem; color: var(--muted); max-width: 70ch; line-height: 1.55; text-wrap: pretty; }
.note--star { font-style: italic; }

/* ==========================================================================
   HERO
   ========================================================================== */
.hero { position: relative; padding-top: clamp(7rem, 14vh, 11rem); padding-bottom: clamp(3rem, 7vw, 6rem);
  background-image: radial-gradient(circle at center, var(--border) 1.1px, transparent 1.1px);
  background-size: 26px 26px; }
.hero__grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; }

.kicker { display: inline-block; font-family: var(--font-mono); font-size: .82rem; color: var(--muted);
  background: #fff; border: 1px solid var(--border); border-radius: 999px; padding: 7px 14px; margin-bottom: var(--s-5); }

.hero__title { font-size: clamp(2.6rem, 1.4rem + 6vw, 5.25rem); font-weight: 800; letter-spacing: -0.04em;
  line-height: .96; color: var(--ink); margin-bottom: var(--s-5); }
.hero__title span { display: block; }
.hero__title-offset { padding-left: clamp(1.5rem, 9vw, 7rem); color: var(--blue); }

.hero__lead { margin-bottom: var(--s-6); max-width: 44ch; }
.hero__cta { display: flex; flex-wrap: wrap; gap: var(--s-4); }
/* Gancho de venta bajo los CTAs: precio + velocidad + sin riesgo, de un vistazo */
.hero__hook { margin-top: var(--s-4); font-size: .82rem; color: var(--muted); letter-spacing: .01em; }

.hero__art { position: relative; }
.browser { width: 100%; height: auto; filter: drop-shadow(0 40px 60px -30px rgba(10,10,10,.3)); }
.browser__btn { animation: heroBtn 3.6s var(--ease-soft) infinite; transform-box: fill-box; transform-origin: center; }
@keyframes heroBtn { 0%,100%{opacity:1} 50%{opacity:.6} }

/* ==========================================================================
   MARQUEE
   ========================================================================== */
.marquee { overflow: hidden; background: var(--ink); color: #fff; padding-block: var(--s-4);
  border-block: 1px solid var(--ink); position: relative; z-index: var(--z-marquee); }
.marquee--light { background: var(--surface); color: var(--ink); border-color: var(--border); }
.marquee__track { display: flex; width: max-content; gap: 0; will-change: transform; animation: marquee 38s linear infinite; }
.marquee--reverse .marquee__track { animation-direction: reverse; animation-duration: 30s; }
.marquee__track span { font-family: var(--font-mono); font-size: clamp(.85rem, 1.4vw, 1.05rem); white-space: nowrap;
  padding-right: 2.5rem; letter-spacing: .01em; }
@keyframes marquee { to { transform: translateX(-50%); } }
.marquee:hover .marquee__track { animation-play-state: paused; }

/* ==========================================================================
   01 · SERVICIOS — tarjetas
   ========================================================================== */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: clamp(1rem, 2vw, 1.5rem); }

.card { position: relative; background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 2.5vw, 2.25rem); transition: transform .3s var(--ease), box-shadow .3s, border-color .3s;
  display: flex; flex-direction: column; }
.card:hover { transform: translateY(-4px); box-shadow: 0 30px 50px -34px rgba(10,10,10,.4); border-color: #d9dde3; }
.card--feature { border-color: var(--blue); box-shadow: 0 24px 48px -30px rgba(37,99,235,.55); }
.card--feature:hover { border-color: var(--blue); }

.card__badge { position: absolute; top: -12px; left: clamp(1.5rem, 2.5vw, 2.25rem);
  font-family: var(--font-mono); font-size: .72rem; font-weight: 700; letter-spacing: .03em;
  background: var(--blue); color: #fff; padding: 5px 11px; border-radius: 999px; }
.card__icon { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 12px;
  background: var(--blue-tint); color: var(--blue); margin-bottom: var(--s-5); }
.card__icon svg { width: 28px; height: 28px; }
.card__title { font-size: 1.4rem; font-weight: 700; margin-bottom: var(--s-3); }
.card__desc { color: var(--text); margin-bottom: var(--s-5); font-size: .98rem; flex: 1; }
.card__price { display: flex; align-items: baseline; flex-wrap: wrap; gap: .5em; padding-top: var(--s-4); border-top: 1px solid var(--border); }
.card__price .mono { font-size: 1.45rem; font-weight: 700; color: var(--ink); }
.card__price em { font-style: normal; font-size: .82rem; color: var(--muted); }
.card__small { margin-top: var(--s-3); font-size: .78rem; color: var(--muted); line-height: 1.5; }

/* ==========================================================================
   02 · PROCESO — carrusel horizontal
   ========================================================================== */
.process { background: var(--surface); padding-bottom: 0; }
.process__head { display: flex; justify-content: space-between; align-items: flex-end; gap: var(--s-5); }
.process__progress { font-size: 1.1rem; font-weight: 700; color: var(--blue); background: #fff; border: 1px solid var(--border);
  padding: 8px 14px; border-radius: 999px; white-space: nowrap; }

.process__viewport { margin-top: clamp(2rem, 4vw, 3rem); overflow-x: auto; overflow-y: hidden;
  scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.process__viewport::-webkit-scrollbar { display: none; }
.process__track { display: flex; gap: clamp(1rem, 2vw, 1.5rem); padding-inline: var(--gutter); width: max-content; }

.step { position: relative; flex: 0 0 min(86vw, 560px); scroll-snap-align: center;
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: clamp(1.75rem, 3vw, 2.75rem); overflow: hidden; min-height: 420px;
  display: grid; grid-template-rows: auto 1fr; }
.step__bgnum { position: absolute; top: -.15em; right: .05em; font-family: var(--font-display); font-weight: 800;
  font-size: clamp(9rem, 18vw, 15rem); line-height: 1; color: var(--watermark); pointer-events: none; z-index: 0; }
.step__body { position: relative; z-index: 1; }
.step[data-accent="blue"] { box-shadow: inset 0 3px 0 var(--blue); }
.step[data-accent="ink"]  { box-shadow: inset 0 3px 0 var(--ink); }
.step__tag { font-size: .8rem; color: var(--muted); margin-bottom: var(--s-4); }
.step__icon { width: 60px; height: 60px; display: grid; place-items: center; border-radius: 14px; margin-bottom: var(--s-5); }
.step__icon[data-accent="blue"] { background: var(--blue-tint); color: var(--blue); }
.step__icon[data-accent="ink"]  { background: #f0f0ee; color: var(--ink); }
.step__icon svg { width: 32px; height: 32px; }
.step__title { font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); font-weight: 800; margin-bottom: var(--s-3); }
.step__desc { color: var(--text); max-width: 42ch; }
.step__art { position: relative; z-index: 1; align-self: end; margin-top: var(--s-5); }
.step__art svg { width: 100%; max-width: 320px; height: auto; margin-inline: auto; }

.pulse { transform-box: fill-box; transform-origin: center; animation: pulse 2.2s var(--ease-soft) infinite; }
@keyframes pulse { 0%,100%{ transform: scale(1); opacity:.5 } 50%{ transform: scale(2.2); opacity:0 } }
.rocket { animation: floaty 3.2s var(--ease-soft) infinite; }
@keyframes floaty { 0%,100%{ transform: translateY(0) } 50%{ transform: translateY(-6px) } }

.process__hint { text-align: center; color: var(--muted); font-size: .82rem; padding: var(--s-5) 0 var(--s-7); }

/* Estado "pin" en desktop (lo activa JS con GSAP) */
.process.is-pinned .process__viewport { overflow: visible; scroll-snap-type: none; }
.process.is-pinned .process__hint { display: none; }

/* ==========================================================================
   03 · PARA QUIÉN
   ========================================================================== */
.fit__cols { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1rem, 2.5vw, 2rem); }
.fit__col { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: clamp(1.5rem, 2.5vw, 2.25rem); }
.fit__col--yes { background: #fff; }
.fit__col--no { background: var(--surface); }
.fit__colTitle { font-size: 1.25rem; font-weight: 700; margin-bottom: var(--s-5); }
.fit__list { display: flex; flex-direction: column; gap: var(--s-4); }
.fit__list li { display: flex; gap: var(--s-3); align-items: flex-start; line-height: 1.5; }
.fit__mark { flex: 0 0 26px; width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; font-size: .85rem; font-weight: 700; margin-top: 1px; }
.fit__mark--yes { background: #DCFCE7; color: var(--yes); }
.fit__mark--no { background: #F1F1F0; color: var(--muted); }
.fit__close { margin-top: clamp(1.75rem, 3vw, 2.5rem); font-size: 1.05rem; color: var(--ink); font-weight: 500; max-width: 64ch; text-wrap: pretty; }

/* ==========================================================================
   04 · PORTFOLIO
   ========================================================================== */
.work__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: clamp(1.25rem, 2.5vw, 2rem); }
.project { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden;
  display: flex; flex-direction: column; transition: transform .3s var(--ease), box-shadow .3s, border-color .3s; }
.project:hover { transform: translateY(-5px); box-shadow: 0 36px 60px -38px rgba(10,10,10,.45); border-color: #d9dde3; }
.project__shot { background: var(--surface); border-bottom: 1px solid var(--border); }
.project__shot svg { width: 100%; height: auto; }
.project__body { padding: clamp(1.4rem, 2.4vw, 2rem); display: flex; flex-direction: column; flex: 1; }
.project__top { display: flex; align-items: center; gap: .4em; margin-bottom: var(--s-3); }
.status { font-family: var(--font-mono); font-size: .72rem; font-weight: 700; letter-spacing: .02em; padding: 4px 10px; border-radius: 999px; }
.status--real { background: #DCFCE7; color: #15803D; }
.status--demo { background: #F1F1F0; color: var(--muted); }
.status__star { color: var(--muted); font-weight: 700; }
.project__name { font-size: 1.35rem; font-weight: 700; margin-bottom: var(--s-2); }
.project__type { font-size: .8rem; color: var(--muted); margin-bottom: var(--s-3); }
.project__desc { color: var(--text); font-size: .95rem; margin-bottom: var(--s-5); flex: 1; }
.project__cta { font-weight: 600; color: var(--blue); align-self: flex-start; border-bottom: 2px solid transparent; transition: border-color .2s; }
.project:hover .project__cta { border-color: var(--blue); }

/* ==========================================================================
   05 · POR QUÉ (oscura)
   ========================================================================== */
.why { background: var(--ink); color: #fff; }
.why .section__lead { color: rgba(255,255,255,.72); }
.why__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); gap: clamp(1.5rem, 3vw, 2.5rem); }
.why__item { padding-top: var(--s-5); border-top: 1px solid rgba(255,255,255,.14); }
.why__icon { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px;
  background: rgba(37,99,235,.18); color: #93b4ff; margin-bottom: var(--s-5); }
.why__icon svg { width: 24px; height: 24px; }
.why__num { font-size: 2.4rem; font-weight: 700; color: #fff; letter-spacing: -.03em; line-height: 1; margin-bottom: var(--s-4); }
.why__num em { font-style: normal; font-size: .85rem; color: #93b4ff; letter-spacing: 0; }
.why__title { font-size: 1.2rem; font-weight: 700; color: #fff; margin-bottom: var(--s-2); }
.why__desc { color: rgba(255,255,255,.66); font-size: .92rem; line-height: 1.55; }

/* ==========================================================================
   06 · PRECIOS — tabla
   ========================================================================== */
.ptable { margin-top: var(--s-5); }
.ptable__scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: var(--radius-lg); }
.ptable__grid { width: 100%; min-width: 620px; border-collapse: separate; border-spacing: 0; background: #fff;
  border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; }
.ptable__grid th, .ptable__grid td { padding: clamp(.85rem, 1.6vw, 1.2rem) clamp(.85rem, 1.6vw, 1.4rem); text-align: center; border-bottom: 1px solid var(--border); }
.ptable__grid thead th { font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; color: var(--ink);
  background: var(--surface); vertical-align: bottom; position: relative; }
.ptable__grid tbody th[scope="row"], .ptable__rowhead { text-align: left; font-family: var(--font-body); font-weight: 600; color: var(--ink); font-size: .92rem; background: #fff; }
.ptable__grid tbody tr:last-child th, .ptable__grid tbody tr:last-child td { border-bottom: 0; }
.ptable__price td, .ptable__price th { background: #fafafa; }
.ptable__price .mono { font-size: 1.05rem; font-weight: 700; color: var(--ink); }
.ptable__feat { background: var(--blue-tint) !important; box-shadow: inset 1px 0 0 var(--blue), inset -1px 0 0 var(--blue); }
thead .ptable__feat { box-shadow: inset 1px 0 0 var(--blue), inset -1px 0 0 var(--blue), inset 0 2px 0 var(--blue); padding-top: 2rem; }
.ptable__featbadge { position: absolute; top: 8px; left: 50%; transform: translateX(-50%); white-space: nowrap;
  font-family: var(--font-mono); font-size: .64rem; font-weight: 700; letter-spacing: .04em; color: var(--blue); }
.ptable .yes { color: var(--blue); font-weight: 700; font-size: 1.05rem; }
.ptable .no { color: var(--border); font-weight: 700; }
.ptable .mono { font-family: var(--font-mono); }

.pricing__cta { margin-top: clamp(2rem, 4vw, 3rem); text-align: center; }

/* ==========================================================================
   07 · CONTACTO
   ========================================================================== */
.contact__grid { display: grid; grid-template-columns: 1.4fr .85fr; gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.form { display: flex; flex-direction: column; gap: var(--s-5); }
.field { display: flex; flex-direction: column; gap: var(--s-2); }
.field label { font-weight: 600; font-size: .95rem; color: var(--ink); display: flex; align-items: baseline; gap: .5em; }
.field__num { font-size: .72rem; color: var(--blue); }
.field__opt { font-style: normal; font-weight: 400; font-size: .8rem; color: var(--muted); }
.field input, .field textarea { font-family: var(--font-body); font-size: 1rem; color: var(--ink);
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 13px 15px; width: 100%;
  transition: border-color .2s, box-shadow .2s; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: #9aa0aa; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(37,99,235,.12); }
.field input:user-invalid { border-color: #dc2626; }
.form__alt { font-size: .92rem; color: var(--muted); }
.form__alt a { color: var(--blue); font-weight: 600; border-bottom: 1px solid transparent; }
.form__alt a:hover { border-bottom-color: var(--blue); }

.contact__side { background: var(--ink); color: #fff; border-radius: var(--radius-lg); padding: clamp(1.75rem, 3vw, 2.5rem); position: sticky; top: 90px; }
.contact__sideTitle { color: #fff; font-size: 1.4rem; font-weight: 700; margin-bottom: var(--s-6); }
.contact__info { display: flex; flex-direction: column; gap: var(--s-5); }
.contact__info li { display: flex; flex-direction: column; gap: 3px; padding-bottom: var(--s-5); border-bottom: 1px solid rgba(255,255,255,.12); }
.contact__info li:last-child { border-bottom: 0; padding-bottom: 0; }
.contact__infoLabel { font-size: .72rem; color: #93b4ff; letter-spacing: .04em; }
.contact__info a { color: #fff; font-weight: 600; border-bottom: 1px solid rgba(255,255,255,.3); align-self: flex-start; transition: border-color .2s; }
.contact__info a:hover { border-bottom-color: var(--blue); }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer { background: var(--bg); border-top: 1px solid var(--border); padding-top: clamp(3rem, 6vw, 5rem); overflow: hidden; }
.footer__display { overflow: hidden; margin-bottom: clamp(2.5rem, 5vw, 4rem); opacity: .07; }
.footer__display .marquee__track { animation: marquee 45s linear infinite; }
.footer__display span { font-family: var(--font-display); font-weight: 800; font-size: clamp(3rem, 12vw, 9rem);
  letter-spacing: -.04em; color: var(--ink); white-space: nowrap; padding-right: .3em; line-height: 1; }

.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: clamp(1.5rem, 4vw, 3rem); padding-bottom: clamp(2.5rem, 5vw, 4rem); }
.footer__logo { font-family: var(--font-display); font-weight: 800; font-size: 1.6rem; letter-spacing: -.04em; color: var(--ink); margin-bottom: var(--s-3); }
.footer__tagline { color: var(--muted); font-size: .95rem; max-width: 34ch; }
.footer__colTitle { font-size: .75rem; font-weight: 700; letter-spacing: .04em; color: var(--muted); margin-bottom: var(--s-4); text-transform: uppercase; }
.footer__col ul { display: flex; flex-direction: column; gap: var(--s-3); }
.footer__col li, .footer__col a { color: var(--text); font-size: .95rem; }
.footer__col a:hover { color: var(--blue); }

.footer__bottom { display: flex; justify-content: space-between; align-items: center; gap: var(--s-4); flex-wrap: wrap;
  padding-block: var(--s-6); border-top: 1px solid var(--border); }
.footer__legal { font-size: .85rem; color: var(--muted); }
.footer__top { font-weight: 600; font-size: .9rem; color: var(--ink); }
.footer__top:hover { color: var(--blue); }

/* ==========================================================================
   BOTÓN FLOTANTE WHATSAPP (móvil)
   ========================================================================== */
.wa-float { position: fixed; right: 18px; bottom: 18px; z-index: var(--z-float);
  width: 56px; height: 56px; border-radius: 50%; display: none; place-items: center;
  background: #25D366; color: #fff; box-shadow: 0 14px 30px -10px rgba(37,211,102,.7);
  transform: translateY(120%); transition: transform .4s var(--ease); }
.wa-float.is-visible { transform: translateY(0); }
.wa-float:hover { background: #1eb858; }

/* ==========================================================================
   REVEAL — solo se oculta cuando JS confirma motion (.anim en <html>).
   Sin JS o con reduced-motion: el contenido es visible por defecto.
   ========================================================================== */
.anim .reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); will-change: opacity, transform; }
.anim .reveal.is-in { opacity: 1; transform: none; }
/* Red de seguridad defensiva: estos nunca quedan invisibles */
.reveal[data-split] { opacity: 1; transform: none; }
.anim .reveal[data-split] { opacity: 0; transform: translateY(22px); }
.anim .reveal[data-split].is-in { opacity: 1; transform: none; }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 960px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__art { order: -1; max-width: 460px; }
  .contact__grid { grid-template-columns: 1fr; }
  .contact__side { position: static; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .nav__links { display: none; }
  .nav__cta { display: none; }
  .nav__burger { display: flex; }
  .nav.is-open .nav__mobile { display: flex; }
  .wa-float { display: grid; }
  .fit__cols { grid-template-columns: 1fr; }
  .process__head { flex-direction: column; align-items: flex-start; }
  .hero__title-offset { padding-left: clamp(1.25rem, 12vw, 4rem); }
}

@media (max-width: 480px) {
  .footer__grid { grid-template-columns: 1fr; }
  .footer__bottom { flex-direction: column; align-items: flex-start; }
}

/* ==========================================================================
   MOVIMIENTO REDUCIDO — degrada con elegancia, no apaga el contenido.
   Mantiene micro-interacciones (hover, color); corta lo intenso.
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .splash__word span { animation: none; opacity: 1; transform: none; }
  .splash__bar i { animation: none; transform: scaleX(1); }
  .marquee__track, .footer__display .marquee__track { animation: none; transform: none; }
  .marquee__track { white-space: normal; flex-wrap: wrap; }
  .pulse, .rocket, .browser__btn { animation: none; }
  .anim .reveal, .anim .reveal[data-split] { opacity: 1 !important; transform: none !important; transition: opacity .3s ease; }
  * { scroll-behavior: auto !important; }
}

/* ==========================================================================
   ============================  ITERACIÓN 2  ===============================
   Barra de confianza · "Qué incluye" · Sobre mí · Tecnología · FAQ
   · Placeholders de imagen · Páginas de detalle de proyecto.
   ========================================================================== */

/* --- Barra de confianza --------------------------------------------------- */
.trustbar { background: #fff; border-bottom: 1px solid var(--border); }
.trustbar__list { display: flex; flex-wrap: wrap; justify-content: center; align-items: center;
  gap: clamp(.85rem, 2.5vw, 2.25rem); padding-block: var(--s-4); }
.trustbar__list li { display: inline-flex; align-items: center; gap: .5em;
  font-family: var(--font-mono); font-size: .8rem; color: var(--muted); white-space: nowrap; }
.trustbar__list svg { width: 17px; height: 17px; color: var(--blue); flex: 0 0 auto; }

/* --- "Qué incluye siempre cualquier web" --------------------------------- */
.includes { margin-top: clamp(2rem, 4vw, 3rem); background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--radius-lg); padding: clamp(1.75rem, 3.5vw, 3rem); }
.includes__title { font-size: clamp(1.4rem, 1.1rem + 1.2vw, 1.9rem); font-weight: 800; margin-bottom: var(--s-2); }
.includes__lead { color: var(--muted); margin-bottom: clamp(1.5rem, 3vw, 2.25rem); }
.includes__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); gap: clamp(1.1rem, 2.4vw, 1.75rem); }
.includes__grid li { display: flex; gap: var(--s-3); align-items: flex-start; }
.includes__icon { flex: 0 0 40px; width: 40px; height: 40px; display: grid; place-items: center;
  border-radius: 10px; background: var(--blue-tint); color: var(--blue); }
.includes__icon svg { width: 22px; height: 22px; }
.includes__grid div { display: flex; flex-direction: column; gap: 2px; }
.includes__grid strong { font-weight: 600; color: var(--ink); font-size: .98rem; }
.includes__grid span { color: var(--muted); font-size: .88rem; line-height: 1.45; }

/* --- Sobre mí ------------------------------------------------------------- */
.about__grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.about__p { color: var(--text); margin-top: var(--s-4); max-width: 60ch; }
.about__stats { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; margin-top: clamp(1.75rem, 3vw, 2.5rem);
  background: var(--border); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.about__stats li { background: #fff; padding: var(--s-4) var(--s-5); display: flex; flex-direction: column; gap: 3px; }
.about__statL { font-size: .72rem; color: var(--muted); letter-spacing: .03em; }
.about__statV { font-size: 1.15rem; font-weight: 700; color: var(--ink); }

/* --- Placeholder de imagen (.ph) — funciona con o sin foto --------------- */
.ph { position: relative; margin: 0; border-radius: var(--radius-lg); overflow: hidden;
  background: var(--surface); border: 1px solid var(--border); }
.ph--portrait { aspect-ratio: 4 / 5; }
.ph--wide { aspect-ratio: 16 / 10; }
.ph--square { aspect-ratio: 1 / 1; }
.ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1;
  box-shadow: 0 30px 60px -40px rgba(10,10,10,.5); }
.ph__hint { position: absolute; inset: 0; z-index: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: var(--s-3); color: var(--muted); padding: var(--s-5); text-align: center; }
.ph__hint svg { width: 46px; height: 46px; opacity: .55; }
.ph__name { font-family: var(--font-mono); font-size: .78rem; color: var(--muted);
  background: #fff; border: 1px solid var(--border); border-radius: 999px; padding: 4px 11px; }
.ph--empty { background: var(--blue-tint); border-style: dashed; border-color: #c7d8f7; }

/* --- Banda Tecnología / Cómo trabajo ------------------------------------- */
.techband { background: var(--surface); border-block: 1px solid var(--border); padding-block: clamp(3rem, 6vw, 5rem); }
.techband__inner { max-width: 820px; text-align: center; margin-inline: auto; }
.techband__title { font-size: clamp(1.6rem, 1.2rem + 1.8vw, 2.6rem); font-weight: 800; letter-spacing: -.035em; margin-bottom: var(--s-4); }
.techband__text { color: var(--text); font-size: clamp(1rem, .97rem + .4vw, 1.2rem); max-width: 62ch; margin-inline: auto; text-wrap: pretty; }

/* --- FAQ (acordeón nativo <details>) ------------------------------------- */
.faq__list { max-width: 820px; margin-inline: auto; border-top: 1px solid var(--border); }
.faq__item { border-bottom: 1px solid var(--border); }
.faq__item summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between;
  gap: var(--s-4); padding: clamp(1.1rem, 2vw, 1.5rem) 0; font-family: var(--font-display); font-weight: 700;
  font-size: clamp(1.05rem, 1rem + .5vw, 1.3rem); color: var(--ink); letter-spacing: -.02em; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary:hover { color: var(--blue); }
.faq__plus { position: relative; flex: 0 0 22px; width: 22px; height: 22px; }
.faq__plus::before, .faq__plus::after { content: ""; position: absolute; top: 50%; left: 50%; background: var(--blue);
  border-radius: 2px; transition: transform .3s var(--ease); }
.faq__plus::before { width: 14px; height: 2px; transform: translate(-50%, -50%); }
.faq__plus::after  { width: 2px; height: 14px; transform: translate(-50%, -50%); }
.faq__item[open] .faq__plus::after { transform: translate(-50%, -50%) rotate(90deg); opacity: 0; }
.faq__a { padding: 0 0 clamp(1.1rem, 2vw, 1.5rem); }
.faq__a p { color: var(--text); max-width: 70ch; text-wrap: pretty; }
.faq__item[open] summary { color: var(--blue); }

@media (max-width: 860px) {
  .about__grid { grid-template-columns: 1fr; }
  .about__media { max-width: 420px; }
}

/* ==========================================================================
   PÁGINAS DE DETALLE DE PROYECTO  (proyectos/*.html)
   ========================================================================== */
.detailnav { position: sticky; top: 0; z-index: var(--z-nav); background: rgba(255,255,255,.92);
  backdrop-filter: saturate(180%) blur(10px); border-bottom: 1px solid var(--border); }
.detailnav__inner { max-width: var(--wrap); margin-inline: auto; padding: 0 var(--gutter);
  height: 64px; display: flex; align-items: center; justify-content: space-between; gap: var(--s-4); }
.detailnav__brand { font-family: var(--font-display); font-weight: 800; font-size: 1.25rem; letter-spacing: -.04em; color: var(--ink); }
.detailnav__back { font-weight: 600; font-size: .92rem; color: var(--ink); display: inline-flex; align-items: center; gap: .4em; }
.detailnav__back:hover { color: var(--blue); }

.dhero { padding-top: clamp(3rem, 7vw, 5rem); padding-bottom: clamp(1.5rem, 3vw, 2.5rem); }
.dhero__meta { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-3); margin-bottom: var(--s-5); }
.dhero__type { font-family: var(--font-mono); font-size: .85rem; color: var(--muted); }
.dhero__title { font-size: clamp(2.2rem, 1.4rem + 4vw, 4rem); font-weight: 800; letter-spacing: -.04em; line-height: .98; margin-bottom: var(--s-4); }
.dhero__lead { color: var(--muted); max-width: 60ch; font-size: clamp(1.05rem, 1rem + .5vw, 1.3rem); }

.demo-banner { display: flex; gap: var(--s-3); align-items: flex-start; max-width: var(--wrap);
  margin: var(--s-5) auto 0; background: #FFFBEB; border: 1px solid #FDE68A; border-radius: var(--radius);
  padding: var(--s-4) var(--s-5); color: #92660A; font-size: .92rem; line-height: 1.5; }
.demo-banner svg { flex: 0 0 22px; width: 22px; height: 22px; color: #D97706; margin-top: 1px; }

.dshot { margin-block: clamp(1.5rem, 3vw, 2.5rem); }
.dshot .ph { aspect-ratio: 16 / 9; }

.dsection { padding-block: clamp(2rem, 4vw, 3.5rem); }
.dsection--alt { background: var(--surface); border-block: 1px solid var(--border); }
.dgrid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.dsection__tag { font-family: var(--font-mono); font-size: .82rem; color: var(--blue); font-weight: 700; margin-bottom: var(--s-3); }
.dsection__title { font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.4rem); font-weight: 800; letter-spacing: -.035em; margin-bottom: var(--s-4); }
.dsection__text { color: var(--text); max-width: 62ch; text-wrap: pretty; }
.dsection__text + .dsection__text { margin-top: var(--s-4); }

.sol-list { display: flex; flex-direction: column; gap: var(--s-4); }
.sol-list li { display: flex; gap: var(--s-3); align-items: flex-start; line-height: 1.5; color: var(--text); }
.sol-list .fit__mark { flex: 0 0 26px; }

.dgallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: clamp(1rem, 2vw, 1.5rem); }
.dgallery .ph { aspect-ratio: 4 / 3; }

.dcta { text-align: center; padding-block: clamp(3rem, 6vw, 5rem); }
.dcta__title { font-size: clamp(1.7rem, 1.3rem + 2vw, 2.8rem); font-weight: 800; letter-spacing: -.035em; margin-bottom: var(--s-6); max-width: 18ch; margin-inline: auto; }
.dfoot { background: var(--ink); color: #fff; padding-block: clamp(2.5rem, 5vw, 4rem); }
.dfoot__inner { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter);
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: var(--s-5); }
.dfoot__brand { font-family: var(--font-display); font-weight: 800; font-size: 1.4rem; letter-spacing: -.04em; }
.dfoot__brand .nav__dot { color: var(--blue); }
.dfoot__links { display: flex; flex-wrap: wrap; gap: var(--s-5); }
.dfoot__links a { color: rgba(255,255,255,.8); font-weight: 600; font-size: .95rem; }
.dfoot__links a:hover { color: #fff; }

@media (max-width: 860px) {
  .dgrid { grid-template-columns: 1fr; }
}

/* --- Movimiento reducido para los componentes de la iteración 2 ---------- */
@media (prefers-reduced-motion: reduce) {
  .faq__plus::before, .faq__plus::after { transition: none; }
}

/* ==========================================================================
   ============================  ITERACIÓN 3  ===============================
   Beneficios (valuegrid) · intro de planes · card "tu proyecto" ·
   banner de cookies · enlaces legales · nota de privacidad · páginas legales.
   ========================================================================== */

/* --- "Lo que tu negocio gana" (valuegrid) -------------------------------- */
.valuegrid { margin-top: clamp(2rem, 4vw, 3rem); }
.valuegrid__title { font-size: clamp(1.4rem, 1.1rem + 1.2vw, 1.9rem); font-weight: 800; letter-spacing: -.03em; margin-bottom: var(--s-2); }
.valuegrid__lead { color: var(--muted); margin-bottom: clamp(1.5rem, 3vw, 2.25rem); max-width: 60ch; }
.valuegrid__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: clamp(1.25rem, 2.5vw, 2rem); }
.valuegrid__grid li { display: flex; gap: var(--s-4); align-items: flex-start; }
.valuegrid__icon { flex: 0 0 48px; width: 48px; height: 48px; display: grid; place-items: center;
  border-radius: 12px; background: var(--blue-tint); color: var(--blue); }
.valuegrid__icon svg { width: 26px; height: 26px; }
.valuegrid__grid div { display: flex; flex-direction: column; gap: 4px; }
.valuegrid__grid strong { font-family: var(--font-display); font-weight: 700; font-size: 1.08rem; color: var(--ink); letter-spacing: -.01em; }
.valuegrid__grid span { color: var(--text); font-size: .94rem; line-height: 1.5; }

/* --- Intro de planes ------------------------------------------------------ */
.plans-intro { margin-top: clamp(2.5rem, 5vw, 4rem); margin-bottom: var(--s-6); padding-top: clamp(1.5rem, 3vw, 2.5rem); border-top: 1px solid var(--border); }
.plans-intro__title { font-size: clamp(1.3rem, 1.05rem + 1vw, 1.7rem); font-weight: 800; letter-spacing: -.03em; margin-bottom: var(--s-2); }
.plans-intro__lead { color: var(--muted); max-width: 56ch; }

/* --- Nota de privacidad del formulario ----------------------------------- */
.form__privacy { font-size: .82rem; color: var(--muted); line-height: 1.5; }
.form__privacy a { color: var(--blue); border-bottom: 1px solid transparent; }
.form__privacy a:hover { border-bottom-color: var(--blue); }

/* --- Enlaces legales del footer ------------------------------------------ */
.footer__legalLinks { display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-5); }
.footer__legalLinks a { font-size: .82rem; color: var(--muted); border-bottom: 1px solid transparent; }
.footer__legalLinks a:hover { color: var(--blue); border-bottom-color: var(--blue); }

/* --- Banner de cookies ---------------------------------------------------- */
.cookie-banner { position: fixed; left: 50%; bottom: 16px; transform: translate(-50%, 160%);
  z-index: var(--z-nav); width: min(680px, calc(100% - 32px));
  background: var(--ink); color: #fff; border-radius: var(--radius); padding: var(--s-4) var(--s-5);
  display: flex; align-items: center; gap: var(--s-5); flex-wrap: wrap; justify-content: space-between;
  box-shadow: 0 24px 50px -18px rgba(10,10,10,.6); transition: transform .45s var(--ease); }
.cookie-banner.is-in { transform: translate(-50%, 0); }
.cookie-banner__text { font-size: .86rem; color: rgba(255,255,255,.82); line-height: 1.5; flex: 1 1 320px; margin: 0; }
.cookie-banner__more { color: #93b4ff; text-decoration: underline; white-space: nowrap; }
.cookie-banner__more:hover { color: #fff; }
.cookie-banner__btn { flex: 0 0 auto; padding: 10px 22px; }
@media (max-width: 560px) {
  .cookie-banner { flex-direction: column; align-items: stretch; text-align: left; }
  .cookie-banner__btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .cookie-banner { transition: none; }
}

/* ==========================================================================
   PÁGINAS LEGALES (legal/*.html)
   ========================================================================== */
.legalpage { padding-top: clamp(2.5rem, 6vw, 4.5rem); padding-bottom: clamp(3rem, 7vw, 6rem); }
.legal { max-width: 760px; margin-inline: auto; }
.legal__kicker { font-family: var(--font-mono); font-size: .82rem; color: var(--blue); font-weight: 700; margin-bottom: var(--s-3); }
.legal__title { font-size: clamp(2rem, 1.4rem + 3vw, 3.25rem); font-weight: 800; letter-spacing: -.035em; margin-bottom: var(--s-4); }
.legal__updated { font-family: var(--font-mono); font-size: .8rem; color: var(--muted); margin-bottom: clamp(2rem, 4vw, 3rem); }
.legal h2 { font-size: clamp(1.3rem, 1.1rem + 1vw, 1.6rem); font-weight: 700; letter-spacing: -.02em; margin: clamp(2rem, 3.5vw, 2.75rem) 0 var(--s-3); }
.legal h3 { font-size: 1.1rem; font-weight: 700; margin: var(--s-5) 0 var(--s-2); }
.legal p, .legal li { color: var(--text); line-height: 1.65; }
.legal p { margin-bottom: var(--s-4); max-width: 68ch; }
.legal ul { list-style: disc; padding-left: 1.4em; margin-bottom: var(--s-4); display: flex; flex-direction: column; gap: var(--s-2); }
.legal a { color: var(--blue); border-bottom: 1px solid transparent; }
.legal a:hover { border-bottom-color: var(--blue); }
.legal__todo { display: inline-block; font-family: var(--font-mono); font-size: .85rem; font-weight: 700;
  background: #FFFBEB; color: #92660A; border: 1px dashed #FDE68A; border-radius: 6px; padding: 1px 7px; }
.legal__box { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: clamp(1.25rem, 2.5vw, 1.75rem); margin-bottom: var(--s-5); }
.legal__box p:last-child { margin-bottom: 0; }

/* --- ¿A quién va dirigido? (audience, solo positivo) --------------------- */
.audience { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: clamp(1.25rem, 2.5vw, 2rem); }
.audience__item { display: flex; gap: var(--s-4); align-items: flex-start;
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: clamp(1.25rem, 2.2vw, 1.75rem); transition: transform .3s var(--ease), box-shadow .3s, border-color .3s; }
.audience__item:hover { transform: translateY(-3px); box-shadow: 0 26px 46px -34px rgba(10,10,10,.4); border-color: #d9dde3; }
.audience__check { flex: 0 0 36px; width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%;
  background: #DCFCE7; color: var(--yes); }
.audience__check svg { width: 19px; height: 19px; }
.audience__item div { display: flex; flex-direction: column; gap: 5px; }
.audience__item strong { font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; color: var(--ink); letter-spacing: -.01em; }
.audience__item span { color: var(--text); font-size: .94rem; line-height: 1.5; }
.audience__close { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-5);
  margin-top: clamp(2rem, 4vw, 3rem); padding: clamp(1.5rem, 3vw, 2.25rem) clamp(1.5rem, 3vw, 2.5rem);
  background: var(--blue-tint); border: 1px solid #DBEAFE; border-radius: var(--radius-lg); }
.audience__close p { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.1rem, 1rem + .7vw, 1.45rem);
  color: var(--ink); letter-spacing: -.02em; max-width: 40ch; margin: 0; }
.audience__close .btn { flex: 0 0 auto; }

/* --- Garantías (tira de tranquilidad en Precios) ------------------------- */
.guarantees { display: flex; flex-wrap: wrap; gap: var(--s-3) clamp(1rem, 2.5vw, 2rem);
  margin-top: clamp(1.5rem, 3vw, 2.25rem); padding: clamp(1rem, 2vw, 1.4rem) clamp(1.25rem, 2.5vw, 1.75rem);
  background: var(--blue-tint); border: 1px solid #DBEAFE; border-radius: var(--radius); justify-content: center; }
.guarantees li { display: inline-flex; align-items: center; gap: .55em; font-size: .9rem; font-weight: 600; color: var(--ink); }
.guarantees svg { width: 18px; height: 18px; color: var(--blue); flex: 0 0 auto; }

/* --- Comparador Antes / Después (deslizable) ----------------------------- */
.ba { max-width: 980px; margin-inline: auto; }
.ba__frame { position: relative; aspect-ratio: 16 / 10; border-radius: var(--radius-lg); overflow: hidden;
  border: 1px solid var(--border); box-shadow: 0 34px 64px -40px rgba(10,10,10,.5); --pos: 50%; touch-action: none; background: #fff; }
.ba__layer { position: absolute; inset: 0; }
.ba__layer svg { width: 100%; height: 100%; display: block; }
.ba__before { clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.ba__label { position: absolute; top: 14px; font-family: var(--font-mono); font-size: .72rem; font-weight: 700;
  letter-spacing: .04em; padding: 5px 11px; border-radius: 999px; color: #fff; z-index: 4; pointer-events: none; }
.ba__label--before { left: 14px; background: rgba(10,10,10,.72); }
.ba__label--after { right: 14px; background: var(--blue); }
.ba__divider { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 3px; background: #fff;
  transform: translateX(-1.5px); z-index: 3; pointer-events: none; box-shadow: 0 0 0 1px rgba(10,10,10,.08); }
.ba__handle { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 46px; height: 46px;
  border-radius: 50%; background: #fff; box-shadow: 0 8px 20px -4px rgba(10,10,10,.55); }
.ba__handle::before, .ba__handle::after { content: ""; position: absolute; top: 50%; width: 0; height: 0;
  border-block: 5px solid transparent; transform: translateY(-50%); }
.ba__handle::before { left: 11px; border-right: 7px solid var(--blue); }
.ba__handle::after { right: 11px; border-left: 7px solid var(--blue); }
.ba__range { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; padding: 0; opacity: 0;
  cursor: ew-resize; z-index: 5; -webkit-appearance: none; appearance: none; background: transparent; }
.ba__range::-webkit-slider-thumb { -webkit-appearance: none; width: 48px; height: 100%; cursor: ew-resize; }
.ba__range::-moz-range-thumb { width: 48px; height: 240px; border: 0; background: transparent; cursor: ew-resize; }
.ba__frame:focus-within .ba__handle { outline: 3px solid var(--blue); outline-offset: 3px; }
.ba__hint { text-align: center; font-family: var(--font-mono); font-size: .78rem; color: var(--muted); margin-top: var(--s-4); }
@media (max-width: 560px) { .ba__frame { aspect-ratio: 4 / 3; } }

/* --- Planes recurrentes (Tranquilidad / Mantenimiento) ------------------- */
.recurring { margin-top: clamp(2rem, 4vw, 3rem); padding-top: clamp(1.75rem, 3.5vw, 2.5rem); border-top: 1px solid var(--border); }
.recurring__title { font-size: clamp(1.3rem, 1.05rem + 1vw, 1.7rem); font-weight: 800; letter-spacing: -.03em; margin-bottom: var(--s-2); }
.recurring__lead { color: var(--muted); max-width: 56ch; margin-bottom: clamp(1.5rem, 3vw, 2rem); }
.recurring__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: clamp(1rem, 2vw, 1.5rem); align-items: start; }
.reccard { position: relative; background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: clamp(1.4rem, 2.4vw, 2rem); transition: transform .3s var(--ease), box-shadow .3s, border-color .3s; }
.reccard:hover { transform: translateY(-3px); box-shadow: 0 26px 46px -34px rgba(10,10,10,.4); border-color: #d9dde3; }
.reccard--feature { border-color: var(--blue); box-shadow: 0 22px 44px -30px rgba(37,99,235,.5); }
.reccard--feature:hover { border-color: var(--blue); }
.reccard__badge { position: absolute; top: -12px; left: clamp(1.4rem, 2.4vw, 2rem); font-family: var(--font-mono);
  font-size: .7rem; font-weight: 700; letter-spacing: .03em; background: var(--blue); color: #fff; padding: 5px 11px; border-radius: 999px; }
.reccard__name { font-size: 1.25rem; font-weight: 700; margin-bottom: var(--s-2); }
.reccard__price { margin-bottom: var(--s-4); padding-bottom: var(--s-4); border-bottom: 1px solid var(--border); }
.reccard__price .mono { font-size: 1.4rem; font-weight: 700; color: var(--ink); }
.reccard__desc { color: var(--text); font-size: .95rem; line-height: 1.55; }
.recurring__note { margin-top: clamp(1.25rem, 2.5vw, 1.75rem); font-size: .85rem; color: var(--muted); line-height: 1.55; max-width: 72ch; text-wrap: pretty; }

/* --- FAQ en dos columnas temáticas (más corta y ordenada) ---------------- */
.faq__groups { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem) clamp(2.5rem, 5vw, 4.5rem); align-items: start; }
.faq__group { min-width: 0; }
.faq__groupTitle { font-family: var(--font-mono); font-size: .8rem; font-weight: 700; letter-spacing: .04em;
  color: var(--blue); text-transform: uppercase; padding-bottom: var(--s-3); margin-bottom: var(--s-2);
  border-bottom: 2px solid var(--ink); }
.faq__groups .faq__list { max-width: none; margin: 0; border-top: 0; }
/* Filas con un punto de calidez al pasar el ratón */
.faq__groups .faq__item summary { padding-inline: 6px; border-radius: 8px; transition: background-color .2s, color .2s; }
.faq__groups .faq__item summary:hover { background: var(--surface); }
.faq__groups .faq__item[open] summary { background: var(--blue-tint); }
.faq__groups .faq__a { padding-inline: 6px; }
@media (max-width: 760px) {
  .faq__groups { grid-template-columns: 1fr; gap: clamp(1.75rem, 6vw, 2.5rem); }
}

/* ==========================================================================
   PULIDO MÓVIL FINAL — targets táctiles cómodos y cero desbordes en pantallas
   muy estrechas (320 px). El <body> ya recorta, esto lo deja pixel-perfecto.
   ========================================================================== */
/* Objetivo táctil del toggle de idioma (mín. ~44 px de alto cómodo en el dedo) */
.nav__lang { min-height: 40px; display: inline-flex; align-items: center; justify-content: center; }
/* Botón flotante de WhatsApp un pelín más separado del borde en móvil */
@media (max-width: 480px) {
  .hero__title-offset { padding-left: clamp(0.4rem, 6vw, 2.5rem); }
  .wa-float { right: 14px; bottom: 14px; }
}
/* Red de seguridad: ningún medio (imagen/svg/tabla/pre) puede desbordar su caja */
img, svg, video, table { max-width: 100%; }
.hero__title, .section__title, .dhero__title, .step__title { overflow-wrap: break-word; }


/* ==========================================================================
   PORTFOLIO REAL · caso destacado + sectores + compromiso
   ========================================================================== */

/* --- Caso destacado: Xalet La Coromina (web real, visitable) -------------- */
.featured { display: grid; grid-template-columns: 1.15fr 0.85fr; background: #fff;
  border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: 0 36px 70px -46px rgba(10,10,10,.55); }
.featured__shot { position: relative; display: block; border-right: 1px solid var(--border); background: #FBF7F1; }
.featured__shot svg { width: 100%; height: 100%; display: block; }
.featured__shot::after { content: ""; position: absolute; inset: 0; transition: background-color .3s var(--ease); }
.featured__shot:hover::after, .featured__shot:focus-visible::after { background: rgba(37,99,235,.07); }
.featured__live { position: absolute; top: 14px; right: 14px; z-index: 2; display: inline-flex; align-items: center; gap: .5em;
  font-family: var(--font-mono); font-size: .72rem; font-weight: 700; color: #15803D;
  background: #fff; border: 1px solid #BBE5C8; padding: 5px 12px; border-radius: 999px;
  box-shadow: 0 6px 16px -8px rgba(10,10,10,.35); }
.featured__live i { width: 8px; height: 8px; border-radius: 50%; background: #16A34A; animation: livePulse 2s var(--ease-soft) infinite; }
@keyframes livePulse { 0%,100%{opacity:1} 50%{opacity:.3} }
.featured__body { padding: clamp(1.75rem, 3vw, 2.75rem); display: flex; flex-direction: column; gap: var(--s-4); }
.featured__name { font-size: clamp(1.6rem, 1.3rem + 1.4vw, 2.3rem); font-weight: 800; letter-spacing: -.03em; }
.featured__desc { color: var(--text); max-width: 52ch; }
.featured__feats { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.featured__feats li { font-family: var(--font-mono); font-size: .72rem; font-weight: 700; color: var(--blue);
  background: var(--blue-tint); border: 1px solid #DBEAFE; padding: 5px 11px; border-radius: 999px; }
.featured__cta { display: flex; flex-wrap: wrap; gap: var(--s-3); margin-top: auto; padding-top: var(--s-2); }

/* --- Sectores (capacidades, sin ejemplos ficticios) ------------------------ */
.sectors { margin-top: clamp(2.5rem, 5vw, 4rem); }
.sectors__title { font-size: clamp(1.4rem, 1.1rem + 1.2vw, 1.9rem); font-weight: 800; letter-spacing: -.03em; margin-bottom: var(--s-2); }
.sectors__lead { color: var(--muted); margin-bottom: clamp(1.5rem, 3vw, 2.25rem); max-width: 56ch; }
.sectors__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); gap: clamp(1rem, 2vw, 1.5rem); margin-bottom: clamp(2rem, 4vw, 3rem); }
.sector { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: clamp(1.4rem, 2.4vw, 1.9rem); transition: transform .3s var(--ease), box-shadow .3s, border-color .3s; }
.sector:hover { transform: translateY(-4px); box-shadow: 0 26px 46px -34px rgba(10,10,10,.4); border-color: #d9dde3; }
.sector__icon { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 12px;
  background: var(--blue-tint); color: var(--blue); margin-bottom: var(--s-4); }
.sector__icon svg { width: 24px; height: 24px; }
.sector h4 { font-size: 1.12rem; font-weight: 700; letter-spacing: -.01em; margin-bottom: var(--s-2); }
.sector p { color: var(--text); font-size: .92rem; line-height: 1.55; }

/* --- Mi compromiso (sustituto honesto de las reseñas) ---------------------- */
.commitment { background: var(--surface); }
.commit__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: clamp(1.25rem, 2.5vw, 2rem); }
.commit { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: clamp(1.5rem, 2.6vw, 2.25rem); }
.commit__num { display: inline-block; font-size: .78rem; font-weight: 700; color: var(--blue);
  background: var(--blue-tint); border-radius: 8px; padding: 4px 10px; margin-bottom: var(--s-4); }
.commit__title { font-size: 1.18rem; font-weight: 700; letter-spacing: -.015em; margin-bottom: var(--s-3); }
.commit__desc { color: var(--text); font-size: .95rem; line-height: 1.6; }
.commit__sign { margin-top: clamp(1.5rem, 3vw, 2.25rem); text-align: right;
  font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; color: var(--ink); letter-spacing: -.01em; }

/* --- Botón "Visitar la web" en el caso de estudio --------------------------- */
.dhero__visit { margin-top: var(--s-5); }

@media (max-width: 860px) {
  .featured { grid-template-columns: 1fr; }
  .featured__shot { border-right: 0; border-bottom: 1px solid var(--border); }
}
@media (prefers-reduced-motion: reduce) {
  .featured__live i { animation: none; }
}
