/* ==========================================================================
   Cinkit — hoja de estilos única para /es/, /en/ y páginas legales.
   Paleta derivada de los stops reales del logo: #6366F1 → #4DA2DE → #42EBD2.
   Los ratios de contraste anotados son sobre blanco salvo que se indique.
   ========================================================================== */

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('/assets/fonts/inter-var-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
                 U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193,
                 U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  color-scheme: light;

  /* --- Índigo: rampa principal ------------------------------------------ */
  --brand-50:  #EEF1FE;
  --brand-100: #E3E7FD;
  --brand-200: #C7CEFB;
  --brand-300: #A5ACF8;   /* 8.38:1 sobre --ink → eyebrow en banda oscura   */
  --brand-400: #818BF4;   /* 3.03:1 → bordes de control (WCAG 1.4.11)       */
  --brand-500: #6366F1;   /* 4.47:1 → COLOR DE LOGO. Solo gráficos          */
  --brand-600: #4F46E5;   /* 6.29:1 → relleno de botón primario             */
  --brand-700: #4338CA;   /* 7.90:1 → enlaces, hover, focus, texto de marca */
  --brand-800: #3730A3;   /* 9.93:1 → pressed                              */
  --brand-900: #312E81;   /* 11.42:1                                        */

  /* --- Azul del logo ----------------------------------------------------- */
  --sky-100: #E6F2FB;
  --sky-300: #8FC7EA;
  --sky-400: #4DA2DE;     /* solo gradiente / gráfico                       */
  --sky-500: #3E95D5;     /* solo gradiente / gráfico                       */
  --sky-600: #2E86C9;     /* 3.91:1 → iconografía, nunca texto              */
  --sky-700: #1F76B8;     /* 4.84:1 → texto secundario de marca             */
  --sky-800: #155E93;     /* 6.88:1                                         */

  /* --- Turquesa: decorativo exclusivamente ------------------------------- */
  --teal-400: #42EBD2;
  --teal-500: #45CAD7;
  --teal-600: #3AC6B7;
  --teal-800: #0B6B74;    /* 6.23:1 → única variante apta para texto        */

  /* --- Neutros ----------------------------------------------------------- */
  --white: #FFFFFF;
  --surface: #F8FAFC;
  --surface-brand: #F5F7FF;
  --ink: #0F172A;         /* 17.85:1                                        */
  --ink-soft: #334155;    /* 10.35:1                                        */
  --muted: #475569;       /*  7.58:1                                        */
  --faint: #64748B;       /*  4.76:1 → nunca por debajo de 16px             */
  --line: #E2E8F0;
  --line-strong: #CBD5E1;
  --line-control: #64748B; /* #CBD5E1 da 1.48:1 y NO cumple 1.4.11          */
  --danger: #B42318;      /*  6.57:1                                        */
  --success: #067647;     /*  5.69:1                                        */
  --focus: #4338CA;       /*  7.90:1                                        */

  /* --- Gradientes --------------------------------------------------------
     REGLA: --grad-brand nunca toca texto. Solo blobs, bordes de 2px, línea
     superior de tarjeta y halo del logo. Para texto con gradiente se usa
     --grad-text, cuyo extremo más claro (#1F76B8) cumple AA a 4.84:1.        */
  --grad-brand: linear-gradient(135deg, #6366F1 0%, #4DA2DE 55%, #42EBD2 100%);
  --grad-text:  linear-gradient(120deg, #4338CA 0%, #1F76B8 100%);
  --grad-soft:  linear-gradient(135deg, rgba(99,102,241,.08), rgba(66,235,210,.10));

  /* --- Tipografía --------------------------------------------------------- */
  --font-sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-mono: ui-monospace, 'JetBrains Mono', Menlo, Consolas, monospace;

  --fs-xs: .8125rem;
  --fs-sm: .875rem;
  --fs-base: 1.0625rem;
  --fs-lg: 1.1875rem;
  --fs-xl: clamp(1.25rem, 2vw, 1.5rem);
  --fs-2xl: clamp(1.625rem, 3.2vw, 2.125rem);
  --fs-3xl: clamp(2.25rem, 5.4vw, 3.5rem);

  --fw-normal: 400;
  --fw-medium: 500;
  --fw-semibold: 650;
  --fw-bold: 700;
  --fw-black: 800;

  --lh-display: 1.08;
  --lh-tight: 1.25;
  --lh-body: 1.65;
  --tracking-display: -.03em;
  --tracking-tight: -.02em;
  --tracking-wide: .16em;

  /* --- Forma -------------------------------------------------------------- */
  --radius-sm: 12px;
  --radius: 16px;
  --radius-lg: 22px;
  --radius-xl: 28px;
  --radius-pill: 999px;

  --shadow-xs: 0 1px 2px rgba(15,23,42,.06);
  --shadow-sm: 0 2px 8px rgba(15,23,42,.06);
  --shadow: 0 8px 30px rgba(15,23,42,.08);
  --shadow-lg: 0 20px 50px -12px rgba(15,23,42,.16);
  --shadow-brand: 0 12px 28px -10px rgba(79,70,229,.45);

  /* --- Espacio ------------------------------------------------------------ */
  --sp-1: 4px;  --sp-2: 8px;  --sp-3: 12px; --sp-4: 16px; --sp-5: 20px;
  --sp-6: 24px; --sp-8: 32px; --sp-10: 40px; --sp-12: 48px; --sp-16: 64px;
  --sp-20: 80px; --sp-24: 96px;
  --section-y: clamp(64px, 9vw, 120px);
  --container: 1120px;
  --gutter: clamp(16px, 4vw, 24px);

  --ease: cubic-bezier(.16, 1, .3, 1);
  --dur-fast: 160ms;
  --dur: 220ms;
  --nav-h: 68px;
}

/* ==========================================================================
   Reset
   ========================================================================== */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + var(--sp-4));
}

body {
  font-family: var(--font-sans);
  font-size: var(--fs-base);
  line-height: var(--lh-body);
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg, video { display: block; max-width: 100%; height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: none; padding: 0; }
ul, ol { list-style: none; padding: 0; }
a { color: var(--brand-700); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--brand-800); }

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

::selection { background: var(--brand-200); color: var(--ink); }

.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;
}

.skip-link {
  position: absolute; top: var(--sp-2); left: var(--sp-2);
  z-index: 200; padding: var(--sp-3) var(--sp-5);
  background: var(--ink); color: var(--white);
  border-radius: var(--radius-sm); font-weight: var(--fw-semibold);
  transform: translateY(-200%);
}
.skip-link:focus { transform: translateY(0); color: var(--white); }

/* ==========================================================================
   Layout
   ========================================================================== */

.wrap {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: var(--section-y); }
.section--tint { background: var(--surface); }
.section--brand-tint { background: var(--surface-brand); }
.section--dark { background: var(--ink); color: var(--white); }

.section-head { max-width: 62ch; margin-bottom: var(--sp-12); }
.section-head--center { margin-inline: auto; text-align: center; }

.eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  font-weight: var(--fw-medium);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--sky-700);
  margin-bottom: var(--sp-4);
}
.section--dark .eyebrow { color: var(--brand-300); }

h1, h2, h3, h4 { font-weight: var(--fw-black); line-height: var(--lh-tight); }

.h1 {
  font-size: var(--fs-3xl);
  line-height: var(--lh-display);
  letter-spacing: var(--tracking-display);
  text-wrap: balance;
}
.h2 {
  font-size: var(--fs-2xl);
  letter-spacing: var(--tracking-tight);
  text-wrap: balance;
}
.h3 { font-size: var(--fs-xl); letter-spacing: var(--tracking-tight); }
.h4 { font-size: var(--fs-lg); font-weight: var(--fw-bold); letter-spacing: var(--tracking-tight); }

/* Gradiente de texto: solo en display >= 28px y peso >= 700.
   Se degrada a --brand-700 sólido donde background-clip no esté soportado. */
.grad-text {
  color: var(--brand-700);
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
}
@supports (-webkit-background-clip: text) or (background-clip: text) {
  .grad-text { color: transparent; }
}

.lead {
  font-size: var(--fs-lg);
  color: var(--muted);
  max-width: 60ch;
  margin-top: var(--sp-5);
}
.section--dark .lead { color: #CBD5E1; }

p + p { margin-top: var(--sp-4); }

/* ==========================================================================
   Botones
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  min-height: 48px;
  padding: var(--sp-3) var(--sp-6);
  border-radius: var(--radius-pill);
  font-size: var(--fs-base);
  font-weight: var(--fw-semibold);
  letter-spacing: -.01em;
  text-decoration: none;
  white-space: nowrap;
  transition: background var(--dur-fast) var(--ease),
              box-shadow var(--dur) var(--ease),
              transform var(--dur) var(--ease),
              color var(--dur-fast) var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--primary {
  background: var(--brand-600);
  color: var(--white);
  box-shadow: var(--shadow-sm);
}
.btn--primary:hover { background: var(--brand-700); color: var(--white); box-shadow: var(--shadow-brand); }
.btn--primary:active { background: var(--brand-800); }

.btn--secondary {
  background: var(--white);
  color: var(--brand-700);
  border: 1px solid var(--brand-400);
}
.btn--secondary:hover { background: var(--brand-50); color: var(--brand-800); border-color: var(--brand-600); }

.btn--onDark {
  background: var(--white);
  color: var(--ink);
}
.btn--onDark:hover { background: var(--brand-50); color: var(--ink); }

.btn--ghost { color: var(--brand-700); padding-inline: var(--sp-3); }
.btn--ghost:hover { color: var(--brand-800); }

.btn--block { width: 100%; }
.btn--lg { min-height: 54px; padding-inline: var(--sp-8); font-size: var(--fs-lg); }

.btn .icon { width: 18px; height: 18px; flex: none; }

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
  margin-top: var(--sp-8);
}

/* ==========================================================================
   Nav
   ========================================================================== */

.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,.86);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.nav.is-stuck { border-bottom-color: var(--line); box-shadow: var(--shadow-xs); }

.nav__inner {
  display: flex;
  align-items: center;
  gap: var(--sp-6);
  min-height: var(--nav-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-weight: var(--fw-black);
  font-size: 1.25rem;
  letter-spacing: var(--tracking-display);
  color: var(--ink);
  text-decoration: none;
  margin-right: auto;
}
.brand:hover { color: var(--ink); }
.brand__mark { width: 30px; height: 30px; flex: none; }

.nav__links {
  display: flex;
  align-items: center;
  gap: var(--sp-6);
}
.nav__links a {
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
  color: var(--muted);
  text-decoration: none;
}
.nav__links a:hover { color: var(--ink); }

/* El CTA vive dos veces en el marcado: dentro de .nav__links para el menú
   desplegable de móvil, y en .nav__end para escritorio. En escritorio solo
   se muestra el segundo. */
.nav__links .btn { display: none; }

.nav__end { display: flex; align-items: center; gap: var(--sp-4); }

/* En la barra de navegación el CTA es un recordatorio, no el protagonista:
   el que debe dominar la pantalla es el del hero. Por eso aquí va a escala
   reducida. No afecta al CTA del menú desplegable de móvil, que vive dentro
   de .nav__links y sí ocupa todo el ancho. */
.nav__end .btn {
  min-height: 40px;
  padding-inline: var(--sp-5);
  font-size: var(--fs-sm);
}

/* Selector de idioma: texto plano, sin caja.
   El nav debe tener un único elemento con forma —el CTA—, así que el selector
   no compite: solo cambia de color. El separador es puramente decorativo y por
   eso se genera desde CSS en lugar de ensuciar el marcado de cada página. */
.lang {
  display: inline-flex;
  align-items: center;
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
}
.lang a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;          /* área táctil, sin alterar la altura del nav */
  padding-inline: var(--sp-2);
  color: var(--faint);
  text-decoration: none;
  transition: color var(--dur-fast) var(--ease);
}
.lang a[aria-current='true'] { color: var(--ink); }
.lang a:not([aria-current='true']):hover { color: var(--brand-700); }
.lang a + a::before {
  content: '/';
  margin-right: var(--sp-3);
  color: var(--line-strong);
  font-weight: var(--fw-normal);
}

.nav__toggle { display: none; }

@media (max-width: 900px) {
  .nav__links, .nav__end .btn { display: none; }
  .nav__toggle {
    display: inline-flex; align-items: center; justify-content: center;
    width: 44px; height: 44px; border-radius: var(--radius-sm);
    color: var(--ink);
  }
  .nav__toggle:hover { background: var(--surface); }
  .nav.is-open .nav__links {
    display: flex;
    position: absolute;
    inset: var(--nav-h) 0 auto;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: var(--sp-4) var(--gutter) var(--sp-6);
    background: var(--white);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
  }
  .nav.is-open .nav__links a {
    padding: var(--sp-4) 0;
    font-size: var(--fs-base);
    color: var(--ink);
    border-bottom: 1px solid var(--line);
  }
  .nav.is-open .nav__links .btn {
    display: inline-flex;
    margin-top: var(--sp-5);
    border-bottom: none;
  }
}

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(56px, 8vw, 104px) var(--section-y);
}

/* Blobs decorativos: --grad-brand fuera del texto, muy difuminado. */
.hero__blobs {
  position: absolute;
  inset: -20% -10% auto;
  height: 720px;
  pointer-events: none;
  z-index: 0;
}
.hero__blobs span {
  position: absolute;
  display: block;
  border-radius: 50%;
  filter: blur(90px);
  opacity: .38;
}
.hero__blobs span:nth-child(1) {
  width: 460px; height: 460px; top: 4%; left: -4%;
  background: radial-gradient(circle, var(--brand-500), transparent 68%);
}
.hero__blobs span:nth-child(2) {
  width: 520px; height: 520px; top: 0; right: 2%;
  background: radial-gradient(circle, var(--sky-400), transparent 68%);
}
.hero__blobs span:nth-child(3) {
  width: 380px; height: 380px; top: 46%; left: 42%;
  background: radial-gradient(circle, var(--teal-400), transparent 70%);
  opacity: .26;
}

.hero .wrap { position: relative; z-index: 1; }
.hero__copy { max-width: 46rem; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: 7px var(--sp-4);
  border-radius: var(--radius-pill);
  background: var(--white);
  border: 1px solid var(--brand-200);
  box-shadow: var(--shadow-xs);
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
  color: var(--ink-soft);
  margin-bottom: var(--sp-6);
}
.badge__dot {
  width: 8px; height: 8px; border-radius: 50%; flex: none;
  background: var(--grad-brand);
}

/* Tira de confianza bajo el hero */
.trust {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-4) var(--sp-8);
  margin-top: var(--sp-12);
  padding-top: var(--sp-8);
  border-top: 1px solid var(--line);
}
.trust__item {
  display: flex;
  align-items: baseline;
  gap: var(--sp-2);
  font-size: var(--fs-sm);
  color: var(--muted);
}
.trust__num {
  font-size: var(--fs-lg);
  font-weight: var(--fw-black);
  letter-spacing: var(--tracking-tight);
  color: var(--ink);
}

/* ==========================================================================
   Rejillas y tarjetas
   ========================================================================== */

.grid { display: grid; gap: var(--sp-5); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 980px) {
  .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
}

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: var(--sp-8);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xs);
  transition: transform var(--dur) var(--ease),
              box-shadow var(--dur) var(--ease),
              border-color var(--dur) var(--ease);
}
.card__title { margin-bottom: var(--sp-3); }
.card__text { color: var(--muted); font-size: var(--fs-sm); }
.card__list { margin-top: auto; padding-top: var(--sp-6); display: grid; gap: var(--sp-2); }
.card__list li {
  position: relative;
  padding-left: var(--sp-6);
  font-size: var(--fs-sm);
  color: var(--ink-soft);
}
.card__list li::before {
  content: '';
  position: absolute;
  left: 0; top: .62em;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--grad-brand);
}

/* Tarjeta enlazable: línea superior de gradiente al hover */
.card--link { text-decoration: none; color: inherit; overflow: hidden; }
.card--link::after {
  content: '';
  position: absolute;
  inset: 0 0 auto;
  height: 2px;
  background: var(--grad-brand);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur) var(--ease);
}
.card--link:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: var(--line-strong);
  color: inherit;
}
.card--link:hover::after { transform: scaleX(1); }

.card__cue {
  margin-top: var(--sp-6);
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  color: var(--brand-700);
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
}
.card--link:hover .card__cue .icon { transform: translateX(3px); }
.card__cue .icon { width: 16px; height: 16px; transition: transform var(--dur) var(--ease); }

.card__icon {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border-radius: var(--radius-sm);
  background: var(--brand-50);
  color: var(--brand-700);
  margin-bottom: var(--sp-5);
}
.card__icon .icon { width: 22px; height: 22px; }

/* ==========================================================================
   Servicios (lista compacta)
   ========================================================================== */

.svc { display: grid; gap: var(--sp-6) var(--sp-10); grid-template-columns: repeat(3, 1fr); }
@media (max-width: 980px) { .svc { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .svc { grid-template-columns: 1fr; } }

.svc__item { padding-top: var(--sp-5); border-top: 2px solid var(--line); }
.svc__item h3 { font-size: var(--fs-lg); margin-bottom: var(--sp-2); }
.svc__item p { color: var(--muted); font-size: var(--fs-sm); }

/* ==========================================================================
   Modos de colaboración + proceso
   ========================================================================== */

.modes { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--sp-5); }
@media (max-width: 780px) { .modes { grid-template-columns: 1fr; } }

.mode {
  padding: var(--sp-8);
  border-radius: var(--radius-lg);
  border: 1px solid var(--brand-200);
  background: linear-gradient(180deg, var(--brand-50), var(--white) 60%);
}
.mode h3 { margin-bottom: var(--sp-3); }
.mode p { color: var(--muted); font-size: var(--fs-sm); }

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-6);
  margin-top: var(--sp-16);
  counter-reset: step;
}
@media (max-width: 980px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

.step { position: relative; padding-top: var(--sp-8); }
.step::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  position: absolute;
  top: 0; left: 0;
  font-family: var(--font-mono);
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  color: var(--brand-700);
}
.step::after {
  content: '';
  position: absolute;
  top: 6px; left: 34px; right: 0;
  height: 1px;
  background: var(--line);
}
.step:last-child::after { display: none; }
@media (max-width: 980px) { .step::after { display: none; } }
.step h3 { font-size: var(--fs-base); font-weight: var(--fw-bold); margin-bottom: var(--sp-2); }
.step p { font-size: var(--fs-sm); color: var(--muted); }

/* Origen del nombre. Va entre los modos de colaboración y los cuatro pasos,
   porque el proceso ya demuestra el eslogan antes de enunciarlo. Sin caja ni
   fondo: es una afirmación, no una tarjeta más. */
.origin {
  max-width: 54ch;
  margin: var(--sp-16) auto 0;
  text-align: center;
}
.origin p {
  font-size: var(--fs-base);
  color: var(--muted);
  margin-top: var(--sp-3);
}
.origin b {
  display: block;
  font-size: var(--fs-xl);
  font-weight: var(--fw-black);
  letter-spacing: var(--tracking-tight);
  color: var(--ink);
}
.origin em {
  font-style: normal;
  font-weight: var(--fw-semibold);
  color: var(--brand-700);
}

/* Garantías */
.warranty {
  margin-top: var(--sp-16);
  padding: var(--sp-8);
  border-radius: var(--radius-lg);
  background: var(--white);
  border: 1px solid var(--line);
}
.warranty__list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--sp-4) var(--sp-8);
  margin-top: var(--sp-5);
}
.warranty__list li {
  display: flex;
  gap: var(--sp-3);
  font-size: var(--fs-sm);
  color: var(--ink-soft);
}
.warranty__list .icon { width: 20px; height: 20px; flex: none; color: var(--success); margin-top: 2px; }

/* Misma lista sobre la banda oscura de contacto */
.warranty__list--onDark { margin-top: var(--sp-8); }
.warranty__list--onDark li { color: #CBD5E1; }
.warranty__list--onDark .icon { color: var(--teal-400); }
.warranty__list--onDark a { color: var(--brand-300); }
.warranty__list--onDark a:hover { color: var(--white); }

/* ==========================================================================
   Trabajo entregado
   ========================================================================== */

.work { display: grid; gap: var(--sp-5); grid-template-columns: repeat(2, 1fr); }
@media (max-width: 820px) { .work { grid-template-columns: 1fr; } }

.work__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-2) var(--sp-3);
  margin-bottom: var(--sp-4);
}
.tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  background: var(--surface);
  border: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  color: var(--muted);
}
.tag--brand { background: var(--brand-50); border-color: var(--brand-200); color: var(--brand-800); }

.work__stats {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-5);
  margin-top: var(--sp-6);
  padding-top: var(--sp-5);
  border-top: 1px solid var(--line);
}
.work__stat { font-size: var(--fs-xs); color: var(--faint); }
.work__stat b {
  display: block;
  font-size: var(--fs-lg);
  font-weight: var(--fw-black);
  letter-spacing: var(--tracking-tight);
  color: var(--ink);
}

.stack {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
  margin-top: var(--sp-12);
}

.work__heading { margin-bottom: var(--sp-6); }
.work__heading--spaced { margin-top: var(--sp-16); }
.work__heading--spaced-sm { margin-top: var(--sp-5); }
.work__intro { margin-top: 0; margin-bottom: var(--sp-8); font-size: var(--fs-base); }

/* ==========================================================================
   Experiencia previa del equipo
   ========================================================================== */

.prior { display: grid; gap: 0; margin-top: var(--sp-10); }
.prior__row {
  display: grid;
  grid-template-columns: minmax(200px, 320px) 1fr;
  gap: var(--sp-4) var(--sp-8);
  padding-block: var(--sp-6);
  border-top: 1px solid var(--line);
  align-items: baseline;
}
.prior__row:last-child { border-bottom: 1px solid var(--line); }
@media (max-width: 720px) { .prior__row { grid-template-columns: 1fr; gap: var(--sp-2); } }
.prior__who { font-weight: var(--fw-bold); letter-spacing: var(--tracking-tight); }
.prior__what { color: var(--muted); font-size: var(--fs-sm); }

/* ==========================================================================
   FAQ
   ========================================================================== */

.faq { max-width: 52rem; margin-inline: auto; }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__item:first-child { border-top: 1px solid var(--line); }

.faq__q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-5);
  width: 100%;
  padding: var(--sp-6) 0;
  font-size: var(--fs-lg);
  font-weight: var(--fw-bold);
  letter-spacing: var(--tracking-tight);
  text-align: left;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
}
.faq__q::-webkit-details-marker { display: none; }
.faq__q:hover { color: var(--brand-700); }
.faq__q .icon {
  width: 20px; height: 20px; flex: none;
  color: var(--brand-700);
  transition: transform var(--dur) var(--ease);
}
.faq__item[open] .faq__q .icon { transform: rotate(45deg); }
.faq__a { padding-bottom: var(--sp-6); color: var(--muted); max-width: 62ch; }

/* ==========================================================================
   Formulario
   ========================================================================== */

.contact {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: var(--sp-16);
  align-items: start;
}
@media (max-width: 900px) { .contact { grid-template-columns: 1fr; gap: var(--sp-12); } }

.form { display: grid; gap: var(--sp-5); }
.field { display: grid; gap: var(--sp-2); }
.field--row { grid-template-columns: repeat(2, 1fr); gap: var(--sp-5); display: grid; }
@media (max-width: 560px) { .field--row { grid-template-columns: 1fr; } }

.label {
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  color: var(--ink-soft);
}
.label .req { color: var(--danger); }
.hint { font-size: var(--fs-xs); color: var(--faint); font-weight: var(--fw-normal); }

.input, .select, .textarea {
  width: 100%;
  min-height: 48px;
  padding: var(--sp-3) var(--sp-4);
  background: var(--white);
  border: 1px solid var(--line-control);
  border-radius: var(--radius-sm);
  font-size: 1rem; /* nunca por debajo de 16px: iOS Safari hace zoom */
  color: var(--ink);
  transition: border-color var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease);
}
.input::placeholder, .textarea::placeholder { color: var(--faint); }
.input:hover, .select:hover, .textarea:hover { border-color: var(--brand-400); }
.input:focus, .select:focus, .textarea:focus {
  outline: none;
  border-color: var(--brand-600);
  box-shadow: 0 0 0 3px var(--brand-100);
}
.textarea { min-height: 132px; resize: vertical; line-height: var(--lh-body); }

.select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23475569' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right var(--sp-4) center;
  background-size: 18px;
  padding-right: var(--sp-10);
}

.check {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--sp-3);
  align-items: start;
  font-size: var(--fs-sm);
  color: var(--muted);
}
.check input {
  width: 20px; height: 20px; margin-top: 2px;
  accent-color: var(--brand-600);
}

/* Honeypot: fuera de la vista sin display:none (algunos bots lo detectan) */
.hp {
  position: absolute !important;
  left: -9999px !important;
  opacity: 0;
  height: 0;
  overflow: hidden;
}

.error {
  display: none;
  align-items: center;
  gap: var(--sp-2);
  font-size: var(--fs-sm);
  color: var(--danger);
  font-weight: var(--fw-medium);
}
.error .icon { width: 16px; height: 16px; flex: none; }
.field.is-invalid .error { display: flex; }
.field.is-invalid .input,
.field.is-invalid .select,
.field.is-invalid .textarea { border-color: var(--danger); }

.form__status {
  display: none;
  gap: var(--sp-3);
  padding: var(--sp-4) var(--sp-5);
  border-radius: var(--radius-sm);
  font-size: var(--fs-sm);
}
.form__status.is-visible { display: flex; }
.form__status--ok { background: #ECFDF3; color: #05603A; border: 1px solid #A6F4C5; }
.form__status--warn { background: #FFFAEB; color: #93370D; border: 1px solid #FEDF89; }
.form__status .icon { width: 20px; height: 20px; flex: none; margin-top: 1px; }
.form__status a { color: inherit; font-weight: var(--fw-semibold); }

/* ==========================================================================
   CTA final en banda oscura
   ========================================================================== */

.cta-band { text-align: center; }
.cta-band .h2 { max-width: 22ch; margin-inline: auto; }
.cta-band .actions { justify-content: center; }
.cta-band__note { margin-top: var(--sp-5); font-size: var(--fs-sm); color: #94A3B8; }

/* ==========================================================================
   Footer
   ========================================================================== */

.footer {
  padding-block: var(--sp-16) var(--sp-10);
  border-top: 1px solid var(--line);
  background: var(--surface);
}
.footer__top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: var(--sp-10);
}
@media (max-width: 760px) { .footer__top { grid-template-columns: 1fr; gap: var(--sp-8); } }

/* El eslogan acompaña al logotipo. Va sobre la descripción, no en su lugar:
   uno identifica la marca y la otra dice a qué se dedica. */
.footer__slogan {
  margin-top: var(--sp-4);
  font-size: var(--fs-base);
  font-weight: var(--fw-bold);
  letter-spacing: var(--tracking-tight);
  color: var(--ink);
}
.footer__slogan + .footer__tag { margin-top: var(--sp-2); }

.footer__tag { margin-top: var(--sp-4); color: var(--muted); font-size: var(--fs-sm); max-width: 34ch; }
.footer__col h2 {
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: var(--sp-4);
}
.footer__col li + li { margin-top: var(--sp-3); }
.footer__col a { font-size: var(--fs-sm); color: var(--ink-soft); text-decoration: none; }
.footer__col a:hover { color: var(--brand-700); text-decoration: underline; }

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--sp-4);
  margin-top: var(--sp-12);
  padding-top: var(--sp-6);
  border-top: 1px solid var(--line);
  font-size: var(--fs-xs);
  color: var(--faint);
}

/* ==========================================================================
   Barra CTA fija en móvil
   ========================================================================== */

.mobile-cta {
  position: fixed;
  inset: auto 0 0;
  z-index: 90;
  display: none;
  padding: var(--sp-3) var(--gutter) calc(var(--sp-3) + env(safe-area-inset-bottom));
  background: rgba(255,255,255,.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid var(--line);
  transform: translateY(110%);
  transition: transform var(--dur) var(--ease);
}
.mobile-cta.is-visible { transform: translateY(0); }
@media (max-width: 900px) { .mobile-cta { display: block; } }

/* ==========================================================================
   Reveals
   ========================================================================== */

/* El estado oculto depende de la clase `.js`, que añade /assets/js/head.js.
   Si ese script no se ejecuta —JavaScript desactivado, fallo de red, CSP—
   la clase no existe y el contenido se muestra sin animación.
   `.reveal` envuelve contenido real: nunca puede quedar invisible porque un
   script no haya cargado.
   No se usa @media (scripting: enabled) porque los navegadores lo evalúan
   como "enabled" también cuando el script simplemente falló al descargarse,
   que es justo el caso del que hay que protegerse. */
.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .6s var(--ease), transform .6s var(--ease);
}
.js .reveal.is-in { opacity: 1; transform: none; }

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

/* ==========================================================================
   Páginas de contenido (legales, gracias)
   ========================================================================== */

.prose { max-width: 68ch; }
.prose h2 { font-size: var(--fs-xl); margin-top: var(--sp-12); margin-bottom: var(--sp-4); }
.prose h3 { font-size: var(--fs-lg); margin-top: var(--sp-8); margin-bottom: var(--sp-3); }
.prose p, .prose li { color: var(--muted); }
.prose ul { margin-top: var(--sp-4); display: grid; gap: var(--sp-2); }
.prose ul li { position: relative; padding-left: var(--sp-6); }
.prose ul li::before {
  content: '';
  position: absolute; left: 0; top: .68em;
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--brand-500);
}
.prose dl { margin-top: var(--sp-4); display: grid; gap: var(--sp-3); }
.prose dt { font-weight: var(--fw-semibold); color: var(--ink-soft); }
.prose dd { margin-left: 0; color: var(--muted); }

.page-head { padding-block: var(--sp-16) var(--sp-8); }
.page-head .updated { margin-top: var(--sp-3); font-size: var(--fs-sm); color: var(--faint); }

.prose--page { padding-bottom: var(--section-y); }

/* Sprite de iconos: fuera del flujo, nunca visible.
   Es una clase y no un atributo style para poder mantener la CSP sin
   'unsafe-inline' en style-src. */
.sprite { display: none; }

/* Footer reducido de las páginas legales */
.footer__bottom--slim { margin-top: 0; border-top: none; }

/* Página de gracias: centrada y sin ruido */
.thanks { min-height: 60vh; display: grid; place-items: center; text-align: center; padding-block: var(--sp-24); }
.thanks .lead { margin-inline: auto; }
.thanks .actions { justify-content: center; }
.thanks .footer__slogan { margin-top: var(--sp-10); }
.thanks__icon {
  width: 64px; height: 64px; margin: 0 auto var(--sp-6);
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--brand-50);
  color: var(--brand-700);
}
.thanks__icon .icon { width: 30px; height: 30px; }
