/* =========================================================
   Brainet Solutions · Landing (borrador 5)
   Paleta provisional tomada del logo.
   ========================================================= */

:root {
  /* Color */
  --bg: #FCF6F2;          /* mismo blanco cálido que el fondo del logo */
  --bg-soft: #F6EEE7;
  --surface: #FFFFFF;
  --ink: #0B1440;         /* azul noche del texto del logo */
  --ink-2: #454C69;
  --ink-3: #6A6F86;
  --line: #E6DCD3;
  --line-strong: #D4C7BB;

  --blue: #0A5FF0;        /* azul del logo: botón principal */
  --blue-hover: #0849C2;
  --blue-tint: #E7EFFE;
  --cyan: #06C4F9;
  --pink: #F0058C;        /* solo detalles */
  --pink-text: #C2006B;
  --violet: #9B2CF5;

  --danger: #B42318;
  --focus: #0A5FF0;

  /* Tipografía: fuentes del sistema */
  --font: "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Segoe UI Variable Display", "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;

  /* Escala de escritorio y tableta */
  --fs-body: 1.0625rem;
  --fs-small: .9375rem;
  --fs-xs: .8125rem;
  --fs-lead: clamp(1.0625rem, 1rem + .3vw, 1.2rem);
  --step-h1: clamp(2.5rem, 1.6rem + 2.8vw, 3.75rem);
  --step-h2: clamp(1.85rem, 1.35rem + 1.6vw, 2.6rem);
  --step-h3: clamp(1.15rem, 1.05rem + .35vw, 1.3rem);

  /* Espacio (V1: ~128 px por sección a 1440 px → ahora ~86 px) */
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --section: clamp(3.5rem, 2.5rem + 3.2vw, 5.5rem);
  --head-gap: clamp(2rem, 3.5vw, 2.75rem);     /* título de sección → contenido */
  --radius: 14px;
  --radius-lg: 20px;
  --max: 1200px;
  --header-h: 72px;
}

/* Escala propia de móvil: elementos más pequeños, más aire entre bloques */
@media (max-width: 640px) {
  :root {
    --fs-body: .9375rem;   /* 15 px */
    --fs-small: .875rem;   /* 14 px */
    --fs-xs: .75rem;       /* 12 px */
    --fs-lead: 1rem;       /* 16 px */
    --step-h1: clamp(1.75rem, .9rem + 4vw, 2rem);      /* 28,8 px a 360 · 30 px a 390 */
    --step-h2: clamp(1.375rem, 1rem + 2vw, 1.625rem);  /* 23 px a 360 · 24 px a 390 */
    --step-h3: 1.0625rem;  /* 17 px */

    --gutter: 1.25rem;
    --section: 5.25rem;    /* V1 en móvil: 72 px → ahora 84 px */
    --head-gap: 2rem;
    --radius: 12px;
    --radius-lg: 16px;
    --header-h: 60px;
  }
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: var(--fs-body);
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
img { height: auto; }

h1, h2, h3 {
  font-family: var(--font-display);
  color: var(--ink);
  margin: 0;
  text-wrap: balance;
}
h1 { font-size: var(--step-h1); line-height: 1.06; letter-spacing: -0.03em; font-weight: 700; }
h2 { font-size: var(--step-h2); line-height: 1.12; letter-spacing: -0.022em; font-weight: 700; }
h3 { font-size: var(--step-h3); line-height: 1.3;  letter-spacing: -0.01em; font-weight: 650; }
p  { margin: 0; text-wrap: pretty; }

a { color: var(--blue); text-underline-offset: 3px; }

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

.container {
  width: 100%;
  max-width: calc(var(--max) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: var(--section); }

.section-lead {
  margin-top: 1rem;
  font-size: var(--fs-lead);
  line-height: 1.55;
  color: var(--ink-2);
  max-width: 38rem;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  z-index: 100;
  padding: .75rem 1rem;
  background: var(--ink);
  color: #fff;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus { top: 1rem; }

/* Etiqueta de sección: texto sencillo, sin adorno */
.eyebrow {
  font-size: var(--fs-xs);
  font-weight: 650;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink-2);
  margin-bottom: 1rem;
}

/* ---------- Botones ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: .7rem 1.35rem;
  border: 0;
  border-radius: 999px;
  background: var(--blue);
  color: #fff;
  font: inherit;
  font-size: var(--fs-body);
  font-weight: 650;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .15s ease, transform .15s ease;
}
.btn:hover { background: var(--blue-hover); }
.btn:active { transform: translateY(1px); }
.btn:focus-visible { border-radius: 999px; }

.btn--primary {
  min-height: 52px;
  padding: .85rem 1.6rem;
  box-shadow: 0 1px 0 rgba(11, 20, 64, .08), 0 6px 18px -8px rgba(10, 95, 240, .55);
}
.btn--header { padding: .5rem 1.15rem; font-size: var(--fs-small); }
.btn--block { width: 100%; }

@media (max-width: 640px) {
  .btn { font-size: .9375rem; }
  .btn--primary { min-height: 46px; padding: .7rem 1.3rem; box-shadow: 0 4px 14px -8px rgba(10, 95, 240, .6); }
  /* En móvil la cabecera no compite con el CTA principal */
  .btn--header { padding: .45rem 1rem; font-size: .875rem; background: var(--blue-tint); color: var(--blue); }
  .btn--header:hover { background: #D6E4FD; }
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  min-height: 44px;
  font-weight: 650;
  text-decoration: none;
  white-space: nowrap;
}
.link-arrow:hover { text-decoration: underline; }

/* ---------- Cabecera ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--bg);   /* opaco: mismo tono que el fondo del logo */
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease;
}
.site-header.is-scrolled { border-bottom-color: var(--line); }

.site-header__inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  min-height: var(--header-h);
}

.brand { display: block; flex-shrink: 0; margin-left: -4px; }
.brand img { height: 40px; width: auto; }

.site-nav { margin-left: auto; }
.site-nav ul { display: flex; gap: 1.75rem; list-style: none; margin: 0; padding: 0; }
.site-nav a {
  display: inline-block;
  padding-block: .6rem;
  color: var(--ink-2);
  font-size: var(--fs-small);
  font-weight: 550;
  text-decoration: none;
}
.site-nav a:hover { color: var(--ink); text-decoration: underline; }

@media (max-width: 900px) {
  .site-nav { display: none; }
  .site-header__inner .btn { margin-left: auto; }
}
@media (max-width: 640px) {
  .site-header__inner { gap: 1rem; }
  .brand img { height: 27px; }
}

/* ---------- Primer pantallazo ---------- */
.hero {
  padding-block: clamp(2.25rem, 1rem + 3vw, 3.75rem) clamp(3rem, 2rem + 3vw, 4.75rem);
  overflow: clip;   /* las formas orgánicas no generan scroll horizontal */
}

/* Escritorio: texto y CTA a la izquierda, foto a la derecha ocupando las dos filas.
   Una columna: servicios + H1 + párrafo → foto → CTA (orden del HTML). */
.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, .85fr);   /* el H1 cabe en dos líneas */
  grid-template-areas:
    "text  media"
    "cta   media";
  column-gap: clamp(2.5rem, 5vw, 4.5rem);
  row-gap: 2rem;
  align-items: center;
}
.hero__text  { grid-area: text; align-self: end; }
.hero__media { grid-area: media; }
.hero__cta   { grid-area: cta; align-self: start; }

/* Línea de servicios: texto sencillo */
.hero__context {
  text-wrap: balance;
  margin-bottom: 1.1rem;
  font-size: var(--fs-small);
  font-weight: 600;
  line-height: 1.45;
  color: var(--ink-2);
}

/* Sin ancho máximo: el titular ocupa la columna y se reparte solo (text-wrap: balance) */
.hero h1 { max-width: none; }

.hero__lead {
  margin-top: 1.25rem;
  max-width: 32rem;
  font-size: var(--fs-lead);
  line-height: 1.6;
  color: var(--ink-2);
}

.hero__note {
  margin-top: .9rem;
  max-width: 30rem;
  font-size: var(--fs-small);
  line-height: 1.5;
  color: var(--ink-3);
}

.hero__media { margin: 0; position: relative; isolation: isolate; }
.hero__media picture { display: block; position: relative; z-index: 1; }
.hero__media img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  /* Esquina superior izquierda más redonda: guiño orgánico al trazo del logo */
  border-radius: 88px 22px 22px 22px;
  background: var(--bg-soft);   /* mientras carga */
}

/* Formas orgánicas detrás de la foto */
.hero__shapes {
  position: absolute;
  left: -10%;
  top: -8%;
  width: 118%;
  height: 126%;
  z-index: 0;
  overflow: visible;
  pointer-events: none;
}
.hero__blob--warm { fill: #F2E3D6; }
.hero__blob--cool { fill: #E3ECFD; }
.hero__line { stroke-width: 2.5; stroke-linecap: round; opacity: .65; }

/* Marca de agua: el cerebro del logo detrás de la foto, asomando por arriba a la izquierda.
   Selector reforzado para no heredar el formato de la foto (.hero__media img). */
.hero__media .hero__watermark {
  position: absolute;
  z-index: 0;
  top: -16%;
  left: -12%;
  width: 44%;
  height: auto;
  aspect-ratio: 1;
  object-fit: contain;
  border-radius: 0;
  background: none;
  opacity: .2;
  pointer-events: none;
  -webkit-user-select: none;
  user-select: none;
}

@media (max-width: 900px) {
  .hero__grid {
    grid-template-columns: 1fr;
    grid-template-areas: "text" "media" "cta";
    row-gap: 2.25rem;
  }
  .hero__text, .hero__cta { align-self: auto; }
  .hero__media { margin-inline: 4% 2%; }
}
@media (max-width: 640px) {
  .hero { padding-block: 1.5rem 3.5rem; }
  .hero__grid { row-gap: 1.5rem; }
  .hero__context { font-size: .8125rem; margin-bottom: .9rem; }
  .hero__lead { margin-top: .9rem; }
  .hero__note { font-size: .8125rem; margin-top: .75rem; }
  .hero__media { margin-inline: 0; margin-block: .25rem; }
  .hero__media img { aspect-ratio: 16 / 9; border-radius: 44px 14px 14px 14px; }
  .hero__line, .hero__blob--cool { display: none; }
  .hero__media .hero__watermark { top: -11%; left: -5%; width: 30%; opacity: .18; }   /* no llega al párrafo */
  /* La forma no llega al borde de la pantalla ni roza el botón */
  .hero__shapes { left: -5%; width: 108%; top: -3%; height: 110%; }
}

/* =========================================================
   Secciones bajo el hero (V5)
   Ritmo: blanco → crema → azul noche → crema cálido → pie crema.
   ========================================================= */

/* ---------- Destacado orgánico ----------
   Banda suave bajo la parte baja del texto. Se corta y repite en cada línea
   (box-decoration-break) y no cambia el color del texto: no se confunde con un enlace,
   que es azul y subrayado fino. */
.hl {
  font-weight: 700;
  color: inherit;
  padding-inline: .1em;
  border-radius: .15em;
  background: linear-gradient(transparent 58%, var(--hl-color, #FBD8EA) 58%, var(--hl-color, #FBD8EA) 93%, transparent 93%);
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

/* ---------- Cómo trabajamos ---------- */
.process { background: var(--surface); border-top: 1px solid var(--line); }

.process__grid {
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
  column-gap: clamp(2.5rem, 6vw, 5.5rem);
  align-items: start;
}
.process__intro h2 { max-width: 20ch; }

/* Punto focal: la reunión en el propio negocio */
.process__visit {
  margin-top: 1.4rem;
  max-width: 28rem;
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 1rem + .7vw, 1.5rem);
  line-height: 1.45;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-wrap: balance;   /* el destacado queda entero en su línea */
}

/* Los tres momentos comparten eje; el trazo ondula suavemente en el margen */
.journey { position: relative; padding-block: .35rem .25rem; }
.journey__path {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}
.journey__path path { fill: none; stroke: url(#journey-stroke); stroke-width: 2; stroke-linecap: round; opacity: .7; }

.journey__steps {
  position: relative;
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: clamp(1.6rem, 2.6vw, 2.1rem);
}
.journey__step { position: relative; max-width: 30rem; padding-left: 2.75rem; }
.journey__dot {
  position: absolute;
  left: 0;
  top: .42rem;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--surface);
  border: 2.5px solid var(--cyan);
}
/* Solo el punto central se desplaza un poco: curva suave, texto alineado */
.journey__step:nth-child(2) .journey__dot { left: 12px; border-color: var(--blue); }
.journey__step:nth-child(3) .journey__dot { border-color: var(--pink); }
.journey__step p { margin-top: .35rem; color: var(--ink-2); }

@media (max-width: 900px) {
  .process__grid { grid-template-columns: 1fr; row-gap: 2.5rem; }
}
@media (max-width: 640px) {
  .process__visit { font-size: 1.125rem; margin-top: 1.1rem; }
  .journey__steps { gap: 2rem; }
  .journey__step { padding-left: 2.25rem; }
  .journey__step:nth-child(2) .journey__dot { left: 8px; }
  .journey__dot { top: .3rem; width: 12px; height: 12px; }
  .journey__step p { font-size: var(--fs-body); }
}

/* ---------- Qué podemos mejorar ---------- */
.services { background: var(--bg); }

.services__head { max-width: 46rem; margin-bottom: clamp(2rem, 3.5vw, 2.75rem); }
.services__head h2 { max-width: 24ch; }
.services__lead {
  margin-top: 1rem;
  max-width: 36rem;
  font-size: var(--fs-lead);
  line-height: 1.55;
  color: var(--ink-2);
}

/* Una retícula: cada título justo encima de su texto */
.services__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2rem clamp(2rem, 4vw, 3.5rem);
  padding-top: clamp(1.5rem, 2.5vw, 2rem);
  border-top: 1px solid var(--line-strong);
}
.service__title {
  font-size: clamp(1.3rem, 1.1rem + .6vw, 1.6rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
}
.service p { margin-top: .6rem; color: var(--ink-2); }

/* Color del trazo del logo, oscurecido para que el texto tenga contraste */
.service--auto .service__title { color: #0874A3; }
.service--software .service__title { color: var(--blue); }
.service--ia .service__title { color: var(--pink-text); }

@media (max-width: 860px) {
  .services__grid { grid-template-columns: 1fr; gap: 1.75rem; }
}
@media (max-width: 640px) {
  .services__head { margin-bottom: 1.75rem; }
  .services__lead { font-size: var(--fs-body); }
  .services__grid { gap: 1.9rem; padding-top: 1.75rem; }
  .service__title { font-size: 1.25rem; }
  .service p { font-size: var(--fs-body); margin-top: .45rem; }
}

/* ---------- IA en tu negocio: bloque azul noche ---------- */
.ai { background: var(--ink); color: #fff; }
.ai .eyebrow { color: #A9AECA; }
.ai h2 { color: #fff; max-width: 13em; }
.ai .hl { --hl-color: rgba(240, 5, 140, .5); color: #fff; }
.ai :focus-visible { outline-color: #8FB6FF; }

.ai__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2.5rem, 5vw, 4.5rem);
  align-items: center;   /* el arco queda centrado respecto al texto */
}
.ai__lead {
  margin-top: 1rem;
  max-width: 34rem;
  font-size: var(--fs-lead);
  line-height: 1.6;
  color: #C9CDE0;
}
.ai__link { margin-top: 1rem; color: #8FB6FF; }

.ai__lead + .ai__lead { margin-top: .9rem; }

/* ---------- Arco de escenas (bloque de IA) ----------
   Una pieza que gira al arrastrar. main.js calcula la posición de cada escena en cada
   fotograma; sin JS se ve una pose fija (lateral · central · lateral). */
.arc { --scene-w: 64%; min-width: 0; text-align: center; }

.arc__stage {
  position: relative;
  aspect-ratio: 2 / 1;
  border-radius: 24px;
  touch-action: pan-y;          /* el scroll vertical sigue siendo nativo */
  -webkit-user-select: none;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  outline: none;
}
.arc.is-interactive .arc__stage { cursor: grab; }
.arc.is-interactive .arc__stage.is-dragging { cursor: grabbing; }
.arc__stage:focus-visible { box-shadow: 0 0 0 3px #8FB6FF; }

/* Bordes difuminados: las laterales asoman y se funden con el fondo */
.arc__track {
  position: absolute;
  inset: 0;
  overflow: hidden;             /* las laterales no generan scroll horizontal */
  perspective: 1100px;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 9%, #000 91%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 9%, #000 91%, transparent 100%);
}

.arc__scene {
  position: absolute;
  top: 5%;
  left: 50%;
  width: var(--scene-w);
  margin-left: calc(var(--scene-w) / -2);
  aspect-ratio: 3 / 2;          /* hueco reservado para la foto */
  transform-origin: 50% 62%;
  will-change: transform;
}
.arc__media {
  position: relative;
  overflow: hidden;
  width: 100%;
  height: 100%;
  border-radius: 28px;
  background: linear-gradient(140deg, var(--tone-a, #2A4FB8), var(--tone-b, #1A2A6E));
  box-shadow: 0 24px 44px -26px rgba(0, 0, 0, .85);
}
/* Las laterales se oscurecen un poco; la central queda limpia */
.arc__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: #0B1440;
  opacity: var(--dim, 0);
  pointer-events: none;
}
/* Foto: al frente se ve entera (3:2). En los laterales se amplía un poco y se desplaza
   para que las personas queden en la franja que asoma (main.js fija --shift y --zoom). */
.arc__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  -webkit-user-drag: none;
  transform-origin: 50% 20%;   /* al ampliar se recorta abajo, no las cabezas */
  transform: translateX(calc(var(--shift, 0) * 100%)) scale(var(--zoom, 1));
}

/* Pose fija (sin JS): lateral · central · lateral */
.arc__scene:nth-child(1) { transform: translate3d(-80%, 6%, -60px) rotateY(28deg) rotateZ(-4deg) scale(.86); --dim: .45; --zoom: 1.2; }
.arc__scene:nth-child(2) { transform: none; z-index: 2; }
.arc__scene:nth-child(3) { transform: translate3d(80%, 6%, -60px) rotateY(-28deg) rotateZ(4deg) scale(.86); --dim: .45; --zoom: 1.2; }
.arc__scene:nth-child(n+4) { opacity: 0; }

/* Nombre de la escena central y pista */
.arc__label {
  min-height: 1.6em;
  margin-top: .55rem;
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-weight: 650;
  color: #fff;
  transition: opacity .16s ease;
}
.arc__label.is-changing { opacity: 0; }
.arc__hint {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  margin-top: .15rem;
  font-size: .8125rem;
  color: #A9AECA;
  transition: opacity .45s ease;
}
.arc__hint[hidden] { display: flex; visibility: hidden; }   /* reserva el hueco: no hay saltos */
.arc__hint.is-gone { opacity: 0; }
.arc__hint svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

.arc__note {
  max-width: 30rem;
  margin: 1rem auto 0;
  font-size: var(--fs-small);
  line-height: 1.55;
  color: #C9CDE0;
}

@media (max-width: 900px) {
  .ai__grid { grid-template-columns: 1fr; }
  .arc { max-width: 640px; width: 100%; justify-self: center; }
}
/* Móvil: el arco llega a los bordes de la pantalla para que asomen las laterales */
@media (max-width: 640px) {
  .ai__grid { gap: 2.25rem; }
  .ai__lead { font-size: var(--fs-body); }
  .arc { --scene-w: 72%; }
  .arc__stage { aspect-ratio: 1.75 / 1; margin-inline: calc(-1 * var(--gutter)); border-radius: 0; }
  .arc__track { -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 6%, #000 94%, transparent 100%); mask-image: linear-gradient(90deg, transparent 0, #000 6%, #000 94%, transparent 100%); }
  .arc__media { border-radius: 22px; }
  .arc__label { font-size: 1rem; }
}

/* ---------- Contacto: cierre cálido ---------- */
.contact { background: var(--bg); overflow: clip; }

.contact__grid {
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
  gap: clamp(2.5rem, 6vw, 5.5rem);
  align-items: center;
}
.contact__intro h2 {
  font-size: clamp(2rem, 1.35rem + 2.1vw, 3rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  max-width: 12ch;
}
.contact__lead { margin-top: 1.1rem; max-width: 30rem; font-size: var(--fs-lead); line-height: 1.55; color: var(--ink-2); }

/* Qué pasa después de enviar: lista sencilla */
.next-steps {
  position: relative;
  list-style: none;
  margin: 1.1rem 0 0;
  padding: 0;
  display: grid;
  gap: .85rem;
  max-width: 30rem;
}
.next-steps li { position: relative; padding-left: 1.6rem; line-height: 1.55; }
.next-steps li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .5em;
  width: 7px;
  height: 7px;
  margin-top: 1px;
  border-radius: 50%;
  background: var(--blue);
}

.contact__form-wrap { position: relative; isolation: isolate; }
.contact__shapes {
  position: absolute;
  left: -9%;
  top: -7%;
  width: 118%;
  height: 114%;
  z-index: -1;
  overflow: visible;
  pointer-events: none;
}
.contact__blob--warm { fill: #F2E3D6; }
.contact__blob--cool { fill: #E3ECFD; }
.contact__line { stroke-width: 2.5; stroke-linecap: round; opacity: .65; }

.form {
  display: grid;
  gap: 1.1rem;
  padding: clamp(1.5rem, 3vw, 2.25rem);
  border-radius: 64px 22px 22px 22px;   /* mismo guiño orgánico que la foto del hero */
  background: var(--surface);
  box-shadow: 0 1px 2px rgba(11, 20, 64, .04), 0 24px 48px -30px rgba(11, 20, 64, .3);
}
.field { display: grid; gap: .35rem; }
.field label { font-weight: 650; font-size: var(--fs-small); }
.field input, .field textarea {
  width: 100%;
  min-height: 48px;
  padding: .7rem .9rem;
  border: 1.5px solid var(--line-strong);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 1rem;       /* 16 px también en móvil: evita el zoom de iOS */
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field textarea { resize: vertical; min-height: 116px; line-height: 1.5; }
.field input:hover, .field textarea:hover { border-color: #B9A99B; }
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(10, 95, 240, .22);
}
.field [aria-invalid="true"] { border-color: var(--danger); }
.field [aria-invalid="true"]:focus { box-shadow: 0 0 0 3px rgba(180, 35, 24, .18); }
.field__hint { font-size: var(--fs-xs); color: var(--ink-3); line-height: 1.45; }
/* Información básica de protección de datos: mismo estilo neutro que las ayudas */
.form__privacy { font-size: var(--fs-xs); color: var(--ink-3); line-height: 1.5; }
.form__privacy a, .site-footer__legal a { color: var(--ink-2); text-decoration: underline; text-underline-offset: 2px; }
.form__privacy a:hover, .site-footer__legal a:hover { color: var(--blue); }
.field__error { font-size: var(--fs-xs); font-weight: 600; color: var(--danger); }

.form .btn { margin-top: .35rem; }

.form__status:empty { display: none; }
.form__trap { display: none !important; }   /* campo trampa contra el spam */
.form__status.is-error { background: #FDECEC; border-color: #F3C1BD; color: var(--danger); }
.form .btn:disabled { opacity: .7; cursor: progress; }
.form__status {
  padding: .85rem 1rem;
  border-radius: 10px;
  background: var(--blue-tint);
  border: 1px solid #BFD3FB;
  color: var(--ink);
  font-weight: 600;
  font-size: var(--fs-small);
}

.draft-note { font-size: var(--fs-xs); color: var(--pink-text); font-weight: 550; }
.draft-note--inline { font-size: inherit; }

@media (max-width: 900px) {
  .contact__grid { grid-template-columns: 1fr; gap: 2.75rem; }
}
@media (max-width: 640px) {
  .contact__intro h2 { font-size: var(--step-h2); }
  .contact__lead { font-size: var(--fs-body); }
  .contact__shapes { left: -4%; width: 108%; top: -3%; height: 106%; }
  .contact__line { display: none; }
  .form { padding: 1.5rem 1.15rem 1.35rem; gap: 1rem; border-radius: 36px 16px 16px 16px; }
  .field input { min-height: 46px; }
}

/* ---------- Pie ---------- */
/* Crema: el logo tiene ese mismo fondo y no deja caja */
.site-footer { padding-block: 2.5rem; border-top: 1px solid var(--line); background: var(--bg); }
.site-footer__inner { display: grid; gap: .6rem; font-size: var(--fs-small); color: var(--ink-2); }
.site-footer__logo { height: 28px; width: auto; margin-left: -3px; margin-bottom: .25rem; }
.site-footer__legal { color: var(--ink-3); }
@media (max-width: 640px) {
  .site-footer { padding-block: 2.25rem 2.75rem; }
  .site-footer__inner { font-size: var(--fs-xs); }
  .site-footer__logo { height: 22px; }
}

/* ---------- Páginas legales (política de privacidad y aviso legal) ---------- */
.legal-page .site-header__inner .btn--header { margin-left: auto; }   /* sin menú: el botón va a la derecha */
.legal { padding-block: clamp(2.25rem, 1.5rem + 3vw, 4rem) clamp(3.5rem, 2.5rem + 3.2vw, 5.5rem); }
.legal .container { max-width: calc(46rem + 2 * var(--gutter)); }
.legal__back { margin-bottom: 1.5rem; font-size: var(--fs-small); }
.legal__back a { font-weight: 600; text-decoration: none; }
.legal__back a:hover { text-decoration: underline; }
.legal h1 { font-size: var(--step-h2); line-height: 1.1; }
.legal__updated { margin-top: .6rem; font-size: var(--fs-small); color: var(--ink-3); }
.legal__intro { margin-top: 1.25rem; font-size: var(--fs-lead); line-height: 1.6; color: var(--ink-2); }
.legal h2 {
  margin-top: 2.25rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  font-size: clamp(1.15rem, 1.05rem + .45vw, 1.4rem);
  line-height: 1.25;
}
.legal h3 { margin-top: 1.25rem; font-size: 1.0625rem; }
.legal p, .legal li, .legal dd { color: var(--ink-2); line-height: 1.65; }
.legal h2 + p, .legal h3 + p, .legal h2 + ul, .legal h2 + dl { margin-top: .75rem; }
.legal p + p, .legal ul + p, .legal p + ul { margin-top: .75rem; }
.legal ul { margin: 0; padding-left: 1.2rem; display: grid; gap: .4rem; }
.legal a { color: var(--blue); text-underline-offset: 2px; }
.legal strong { color: var(--ink); font-weight: 650; }
/* Datos del responsable o del titular */
.legal dl {
  display: grid;
  grid-template-columns: minmax(8rem, max-content) 1fr;
  gap: .45rem 1.25rem;
  margin: .75rem 0 0;
  padding: 1rem 1.15rem;
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid var(--line);
}
.legal dt { font-weight: 650; color: var(--ink); }
.legal dd { margin: 0; }
/* Dato pendiente de confirmar (para el aviso legal mientras se completa) */
.legal__pending { color: var(--pink-text); font-weight: 600; }
@media (max-width: 640px) {
  .legal dl { grid-template-columns: 1fr; gap: .15rem; }
  .legal dd + dt { margin-top: .6rem; }
  .legal__intro { font-size: var(--fs-body); }
}
