/* ============================================================
   DISEÑO FINAL · Grupo Idiomanía
   Paleta tomada de los retratos ilustrados del equipo: salmón y
   terracota (desierto de Gabriela) frente a aguamarina y azules
   (hojas de Cecilia). La tinta es un azul profundo, no negro.
   Gabarito (títulos) + Hanken Grotesk (texto).
   ============================================================ */

/* Fuentes alojadas en el sitio (sitio/fonts/, subconjunto latino de Google Fonts).
   Son variables: un archivo cubre todos los pesos. Los .woff2 se precargan en el <head>. */
@font-face {
  font-family: 'Gabarito';
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url("../fonts/gabarito.woff2") format("woff2");
}
@font-face {
  font-family: 'Hanken Grotesk';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("../fonts/hanken-grotesk.woff2") format("woff2");
}
@font-face {
  font-family: 'Hanken Grotesk';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/hanken-grotesk-italic.woff2") format("woff2");
}

:root {
  /* Color */
  --paper: oklch(0.978 0.011 65);          /* crema */
  --salmon: oklch(0.855 0.068 42);         /* cielo del retrato de Gabriela */
  --salmon-soft: oklch(0.925 0.04 45);
  --coral-deep: oklch(0.56 0.135 33);      /* terracota para texto (AA sobre crema) */
  --coral-strong: oklch(0.66 0.16 34);     /* isotipo del logo */
  --aqua: oklch(0.855 0.05 212);           /* fondo del retrato de Cecilia */
  --aqua-light: oklch(0.92 0.034 212);     /* fondo del destacado de IA */
  --aqua-pale: oklch(0.965 0.014 212);     /* tarjetas de recomendaciones */
  --salmon-pale: oklch(0.965 0.02 48);
  --blue: oklch(0.48 0.1 258);             /* lunares del vestido */
  --navy: oklch(0.33 0.075 248);           /* hojas profundas */
  --ink: oklch(0.255 0.052 252);           /* texto: azul tinta */
  --ink-2: oklch(0.4 0.042 248);
  --line: oklch(0.885 0.022 60);
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .6 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");

  /* Tipografía */
  --display: 'Gabarito', ui-sans-serif, system-ui, sans-serif;
  --text: 'Hanken Grotesk', ui-sans-serif, system-ui, sans-serif;
  --fs-hero: clamp(2.75rem, 1rem + 8vw, 7.2rem);
  --fs-d1: clamp(2.75rem, 1.6rem + 4.6vw, 6.25rem);
  --fs-d2: clamp(2.125rem, 1.5rem + 2.6vw, 4rem);
  --fs-d3: clamp(1.625rem, 1.25rem + 1.5vw, 2.625rem);
  --fs-lede: clamp(1.125rem, 1rem + 0.4vw, 1.3125rem);

  /* Espacio */
  --max: 1360px;
  --gutter: clamp(20px, 4vw, 56px);
  --frame: clamp(8px, 1.4vw, 20px);
  --section: clamp(96px, 11vw, 176px);
  --header-h: 72px;
  --radius: clamp(20px, 2.4vw, 32px);

  /* Movimiento */
  --ease: cubic-bezier(0.16, 1, 0.3, 1);   /* ease-out-expo */
  --ease-quart: cubic-bezier(0.25, 1, 0.5, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--text);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
/* Marco: dos filetes verticales que recorren toda la página */
body::before {
  content: "";
  position: fixed;
  inset: 0 var(--frame);
  border-inline: 1px solid color-mix(in oklch, var(--ink) 9%, transparent);
  pointer-events: none;
  z-index: 60;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, h4, p, figure, blockquote { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; }
::selection { background: var(--salmon); color: var(--ink); }

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

.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.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 { position: absolute; left: -9999px; }
.skip:focus { left: var(--gutter); top: 12px; z-index: 100; background: var(--ink); color: var(--paper); padding: 10px 16px; border-radius: 999px; }

/* ---------- Tipografía ---------- */
.display-1, .display-2, .display-3 {
  font-family: var(--display);
  font-weight: 600;
  letter-spacing: -0.03em;
  text-wrap: balance;
}
.display-1 { font-size: var(--fs-d1); line-height: 0.85; font-weight: 500; }
.display-2 { font-size: var(--fs-d2); line-height: 1.04; letter-spacing: -0.025em; }
.display-3 { font-size: var(--fs-d3); line-height: 1.08; letter-spacing: -0.02em; font-weight: 500; }

.label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--text);
  font-size: 17px;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
  padding: 6px 15px;
  border-radius: 55px;
  background: color-mix(in oklch, var(--salmon) 55%, transparent);
}
.label__mark { width: 14px; height: 14px; color: var(--coral-strong); flex: none; }
.lede { font-size: var(--fs-lede); line-height: 1.5; color: var(--ink-2); max-width: 44ch; text-wrap: pretty; }
.prose { color: var(--ink-2); text-wrap: pretty; }
.prose p + p { margin-top: 1em; }

/* ---------- Botones ---------- */
.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 26px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-family: var(--text);
  font-size: 1rem;
  font-weight: 500;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.3s var(--ease-quart), color 0.3s var(--ease-quart), transform 0.4s var(--ease);
}
.pill:hover { transform: translateY(-2px); }
.pill:active { transform: translateY(0); }
.pill svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; flex: none; }
.pill--sm { min-height: 42px; padding: 0 20px; font-size: 0.9375rem; }
.pill--ink { background: var(--ink); color: var(--paper); }
.pill--ink:hover { background: var(--blue); }
.pill--paper { background: var(--paper); color: var(--ink); }
.pill--paper:hover { background: var(--salmon-pale); }
.pill--ghost { border-color: color-mix(in oklch, var(--paper) 40%, transparent); color: var(--paper); }
.pill--ghost:hover { border-color: var(--paper); }

.round-btn {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  padding: 0;
  border-radius: 50%;
  border: 1px solid var(--ink);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  transition: background-color 0.3s var(--ease-quart), color 0.3s var(--ease-quart), opacity 0.3s;
}
.round-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.round-btn:hover:not(:disabled) { background: var(--blue); border-color: var(--blue); color: var(--paper); }
.round-btn:disabled { opacity: 0.25; cursor: default; }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  height: var(--header-h);
  border-bottom: 1px solid transparent;
  transition: background-color 0.4s var(--ease-quart), border-color 0.4s var(--ease-quart);
}
.site-header.is-solid {
  /* Fondo opaco: Safari en iPhone (iOS 26) lo extiende detrás de la hora y la batería.
     Con transparencia o blur no lo hace y la página se ve pasar por arriba del header. */
  background: var(--paper);
  border-bottom-color: var(--line);
}
.site-header__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.site-header__logo { flex: none; border-radius: 6px; }
.site-header__logo svg { height: 34px; width: auto; color: var(--ink); }
.site-header__logo .logo-mark { fill: var(--coral-strong); }
.site-nav { display: none; gap: 36px; }
.site-nav a, .site-footer a {
  text-decoration: none;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
  transition: background-size 0.45s var(--ease);
}
.site-nav a { font-size: 0.9375rem; font-weight: 500; padding-block: 4px; }
.site-nav a:hover, .site-footer a:hover { background-size: 100% 1px; }
.site-header__end { display: flex; align-items: center; gap: 20px; }
.lang-switch { display: flex; gap: 2px; font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.02em; }
.lang-switch a {
  display: grid; place-items: center;
  min-width: 36px; height: 32px;
  border-radius: 999px;
  text-decoration: none;
  color: color-mix(in oklch, var(--ink) 55%, transparent);
  transition: color 0.3s, background-color 0.3s;
}
.lang-switch a:hover { color: var(--ink); }
.lang-switch a[aria-current="page"] { color: var(--ink); box-shadow: inset 0 0 0 1px currentColor; }
.site-header__end > .lang-switch { display: none; }

/* Hamburguesa + menú móvil/tablet */
.site-header.is-open { background: var(--paper); border-bottom-color: var(--line); }
.menu-btn {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-right: -10px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
}
.menu-btn__bars { position: relative; width: 22px; height: 12px; }
.menu-btn__bars span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 1.6px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.45s var(--ease), top 0.45s var(--ease);
}
.menu-btn__bars span:first-child { top: 0; }
.menu-btn__bars span:last-child { top: calc(100% - 1.6px); }
.menu-btn[aria-expanded="true"] .menu-btn__bars span { top: calc(50% - 0.8px); }
.menu-btn[aria-expanded="true"] .menu-btn__bars span:first-child { transform: rotate(45deg); }
.menu-btn[aria-expanded="true"] .menu-btn__bars span:last-child { transform: rotate(-45deg); }

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 45;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 48px;
  padding: calc(var(--header-h) + 32px) var(--gutter) 48px;
  background: var(--paper);
  opacity: 0;
  transition: opacity 0.35s var(--ease-quart);
}
.mobile-menu[hidden] { display: none; }
.mobile-menu.is-open { opacity: 1; }
.mobile-menu__nav { display: grid; gap: 8px; text-align: center; }
.mobile-menu__nav a {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(2.25rem, 1.5rem + 4vw, 3.5rem);
  line-height: 1.15;
  letter-spacing: -0.03em;
  text-decoration: none;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s var(--ease-quart), transform 0.7s var(--ease);
  transition-delay: calc(0.05s + var(--i) * 60ms);
}
.mobile-menu.is-open .mobile-menu__nav a { opacity: 1; transform: none; }
.mobile-menu__lang { font-size: 0.9375rem; gap: 6px; }
.mobile-menu__lang a { min-width: 52px; height: 40px; }
.menu-open, .menu-open body { overflow: hidden; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 100svh;
  padding-top: var(--header-h);
  background: linear-gradient(180deg, #FFDCCF 0%, #F6B6A2 100%);
  color: var(--ink);
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  /* Textura de grano en mosaico: cada pieza ocupa el 50% del ancho */
  background: url("../img/textures/grano.webp") 0 0 / 50vw auto repeat;
  opacity: 1;
  mix-blend-mode: overlay;
  pointer-events: none;
}
.hero__art { position: absolute; inset: 0; z-index: -2; pointer-events: none; }
.hero__mark { position: absolute; will-change: transform; }
.hero__mark--a { width: max(560px, 58vw); left: -21vw; top: 19%; color: oklch(0.73 0.12 36 / 0.21); animation: spin 140s linear infinite; }
.hero__mark--b { width: 300px; right: -4%; bottom: 15%; color: oklch(1 0 0); opacity: 0.15; animation: spin 70s linear infinite reverse; }
.hero__mark--c { width: clamp(64px, 7vw, 120px); right: 6vw; top: calc(var(--header-h) + 5vh); color: oklch(1 0 0); opacity: 0.35; animation: spin 50s linear infinite; }

.hero__inner {
  position: relative;
  min-height: calc(100svh - var(--header-h));
  display: grid;
  grid-template-rows: 1fr auto;
  gap: 48px;
  padding-block: 6vh 0;
}
.hero__center { align-self: center; text-align: center; }
.hero__title {
  font-family: var(--display);
  font-weight: 500;
  font-size: var(--fs-hero);
  line-height: 0.92;
  letter-spacing: -0.04em;
}
/* Línea chica dentro del H1: le dice a Google qué hacen sin cambiar el título de marca.
   Es una píldora (.label) en bloque propio, para que el título arranque abajo. */
.hero__eyebrow.label {
  display: flex;
  width: fit-content;
  margin: 0 auto clamp(18px, 2.4vw, 32px);
  letter-spacing: normal;
  text-align: center;
  background: color-mix(in oklch, var(--paper) 60%, transparent);
  animation: fade-up 1.1s var(--ease) 0.1s both;
}
.hero__word { display: inline-block; overflow: hidden; padding: 0.1em 0.02em 0.1em; margin: -0.1em -0.02em -0.1em; vertical-align: top; }
.hero__word > span { display: inline-block; animation: rise 1.3s var(--ease) both; animation-delay: calc(0.18s + var(--i) * 0.09s); }
.hero__tagline {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(1.375rem, 1rem + 1.7vw, 2.75rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-top: clamp(16px, 2.4vw, 32px);
  text-wrap: balance;
  animation: fade-up 1.1s var(--ease) 0.65s both;
}
.hero__foot {
  display: grid;
  gap: 28px;
  align-items: center;
  padding-top: 40px;
  padding-bottom: 40px;
  border-top: 1px solid color-mix(in oklch, var(--ink) 55%, transparent);
  animation: fade-up 1.1s var(--ease) 0.85s both;
}
.hero__text { max-width: 80ch; font-size: 1rem; line-height: 1.55; text-wrap: pretty; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 10px; }
.hero :focus-visible { outline-color: var(--ink); }

/* ---------- Secciones ---------- */
.section { padding-block: var(--section); }
.section--tint { background: var(--salmon-pale); }
#projects { padding-top: 120px; padding-bottom: clamp(64px, 8vw, 128px); }

.split-head {
  display: grid;
  gap: 32px;
  margin-bottom: clamp(56px, 7vw, 112px);
}
.split-head .display-2 { max-width: 16ch; }

/* ---------- Servicios ---------- */
.services { border-top: 1px solid var(--ink); }
.service {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px 24px;
  padding: clamp(28px, 3.4vw, 44px) clamp(0px, 1.4vw, 20px);
  border-bottom: 1px solid var(--line);
}
.service::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--salmon-soft);
  transform: scaleY(0);
  transform-origin: 50% 100%;
  transition: transform 0.6s var(--ease);
}
.service:nth-child(even)::before { background: var(--aqua-light); }
.service__num { grid-column: 1; font-family: var(--display); font-size: 0.9375rem; font-weight: 500; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.service__title {
  grid-column: 1 / -1;
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(1.75rem, 1.2rem + 1.9vw, 2.875rem);
  line-height: 1.04;
  letter-spacing: -0.025em;
}
.service__text { grid-column: 1 / -1; color: var(--ink-2); max-width: 48ch; text-wrap: pretty; }
.service__mark {
  grid-column: 2; grid-row: 1;
  width: 28px; height: 28px;
  color: var(--coral-strong);
  transition: transform 0.8s var(--ease), color 0.4s;
}
.service:nth-child(even) .service__mark { color: var(--blue); }
@media (hover: hover) {
  .service:hover::before { transform: scaleY(1); }
  .service:hover .service__mark { transform: rotate(90deg) scale(1.25); }
}

.statement {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  margin-top: var(--section);
  padding: 100px 7vw;
  border-radius: var(--radius);
  background: var(--aqua-light);
  text-align: center;
}
/* Misma textura de grano que el hero (mosaico al 50% del ancho, overlay) */
.statement::after,
.contact__panel::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: url("../img/textures/grano.webp") 0 0 / 50vw auto repeat;
  opacity: 1;
  mix-blend-mode: overlay;
  pointer-events: none;
  border-radius: inherit;
}
/* Safari no recorta con overflow + border-radius a los hijos con mix-blend-mode o
   animados: la textura asomaba por las esquinas. clip-path sí recorta en todos. */
.statement, .contact__panel { clip-path: inset(0 round var(--radius)); }
.statement__title { max-width: 17ch; margin-inline: auto; }
.statement__title em { font-style: normal; color: var(--blue); }
.statement__cta { margin-top: 40px; }
.statement__text { max-width: 87ch; margin: clamp(24px, 3vw, 40px) auto 0; color: var(--ink-2); font-size: 1.0625rem; text-wrap: pretty; }
.statement__mark { position: absolute; z-index: -1; animation: spin 80s linear infinite; }
.statement__mark--a { width: clamp(120px, 17vw, 240px); left: clamp(-80px, -4vw, -30px); top: clamp(-80px, -4vw, -30px); color: var(--blue); }
.statement__mark--b { width: clamp(80px, 11vw, 160px); right: clamp(-40px, -2vw, -16px); bottom: clamp(-50px, -3vw, -20px); color: var(--coral-strong); animation-direction: reverse; animation-duration: 60s; }

/* ---------- Proyectos ---------- */
.stats { display: grid; grid-template-columns: repeat(2, 1fr); border-top: 1px solid var(--ink); }
.stat {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 24px 20px 32px 0;
  border-bottom: 1px solid var(--line);
}
.stat:nth-child(odd) { border-right: 1px solid var(--line); }
.stat:nth-child(even) { padding-left: 20px; }
.stat__value {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(3.25rem, 2rem + 4.4vw, 6.5rem);
  line-height: 0.9;
  letter-spacing: -0.045em;
  font-variant-numeric: tabular-nums;
}
.stat__plus { color: var(--coral-strong); }
.stat__label { color: var(--ink-2); font-size: 0.9375rem; line-height: 1.4; max-width: 22ch; }

.genres { margin-top: clamp(88px, 10vw, 152px); }
.genres .wrap { text-align: center; }
.genres .label { margin-bottom: clamp(24px, 3vw, 40px); background: color-mix(in oklch, var(--aqua) 70%, transparent); }
.genres .label__mark { color: var(--blue); }
.genres__rows { display: grid; gap: clamp(4px, 1vw, 12px); }
.marquee { display: flex; overflow: hidden; user-select: none; }
.marquee__track {
  flex: none;
  display: flex;
  min-width: 100%;
  animation: marquee 120s linear infinite;
}
.marquee--reverse .marquee__track { animation-direction: reverse; animation-duration: 140s; }
.genres__rows:hover .marquee__track { animation-play-state: paused; }
.marquee__item {
  display: inline-flex;
  align-items: center;
  gap: 0.36em;
  padding-left: 0.36em;
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(2.5rem, 1.5rem + 4.2vw, 6rem);
  line-height: 1.12;
  letter-spacing: -0.035em;
  white-space: nowrap;
}
.marquee--reverse .marquee__item { color: var(--blue); }
.marquee__mark { width: 0.42em; height: 0.42em; color: var(--coral-strong); flex: none; animation: spin 24s linear infinite; }
.marquee--reverse .marquee__mark { color: var(--coral-strong); }

/* ---------- Nosotras ---------- */
.team { display: grid; gap: clamp(64px, 8vw, 96px); }
/* Retrato en arco, con un asterisco que asoma por el borde */
.portrait-frame { position: relative; width: 72%; margin-inline: auto; }
.portrait {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  border-radius: 999px 999px var(--radius) var(--radius);
  background: var(--aqua);
}
.portrait-frame--salmon .portrait { background: var(--salmon); }
.portrait img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; transition: transform 1.4s var(--ease); }
.member:hover .portrait img { transform: scale(1.04); }
.portrait__badge {
  position: absolute;
  z-index: 1;
  width: clamp(56px, 7vw, 96px);
  right: clamp(-48px, -3.4vw, -24px);
  bottom: 14%;
  color: var(--blue);
  animation: spin 40s linear infinite;
}
.portrait-frame--salmon .portrait__badge { right: auto; left: clamp(-48px, -3.4vw, -24px); bottom: auto; top: 38%; color: var(--coral-strong); animation-direction: reverse; }
.portrait__empty { position: absolute; inset: 0; }
.portrait__mark {
  position: absolute;
  width: 92%;
  right: -26%;
  top: -12%;
  color: var(--blue);
  transition: transform 1.4s var(--ease);
}
.portrait-frame--salmon .portrait__mark { color: var(--coral-strong); right: auto; left: -30%; top: auto; bottom: -22%; }
.member:hover .portrait__mark { transform: rotate(45deg); }
.portrait__initial {
  position: absolute;
  left: 7%;
  bottom: -0.12em;
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(5.85rem, 3.9rem + 7.8vw, 13rem);
  line-height: 1;
  letter-spacing: -0.05em;
  color: var(--ink);
}
.portrait-frame--salmon .portrait__initial { left: auto; right: 7%; }
.portrait__note {
  position: absolute;
  left: 20px;
  top: 20px;
  padding: 6px 12px;
  border-radius: 999px;
  background: color-mix(in oklch, var(--paper) 80%, transparent);
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--ink-2);
}
.portrait-frame--salmon .portrait__note { left: auto; right: 20px; }
.member__name { margin-top: clamp(24px, 3vw, 36px); text-align: center; font-family: var(--display); font-weight: 600; font-size: var(--fs-d3); line-height: 1; letter-spacing: -0.025em; }
.member__role { margin: 8px 0 20px; text-align: center; font-size: 1rem; font-weight: 600; color: var(--ink-2); }
/* El rol toma el color de la flor de su retrato */
.member:has(.portrait-frame--aqua) .member__role { color: var(--blue); }
.member:has(.portrait-frame--salmon) .member__role { color: var(--coral-strong); }
.member .prose { max-width: 54ch; }

/* Recomendaciones */
.quotes { margin-top: var(--section); }
.quotes__head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: clamp(32px, 4vw, 56px); }
.quotes__controls { display: flex; align-items: center; gap: 10px; }
.quotes__count { margin-right: 14px; font-family: var(--display); font-size: 1rem; font-weight: 500; font-variant-numeric: tabular-nums; color: var(--ink-2); }
.quotes__track {
  display: flex;
  gap: clamp(12px, 1.6vw, 24px);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  overscroll-behavior-x: contain;
  border-radius: var(--radius);
}
.quotes__track::-webkit-scrollbar { display: none; }
.quotes__slide { flex: 0 0 100%; scroll-snap-align: start; display: flex; }
.quotes__slide .quote { transition: opacity 0.5s var(--ease-quart); }
.quotes__slide.is-partial .quote { opacity: 0.5; }
.quote {
  display: flex;
  flex-direction: column;
  width: 100%;
  padding: clamp(28px, 4vw, 52px);
  border-radius: var(--radius);
  background: var(--aqua-pale);
}
.quotes__slide:nth-child(even) .quote { background: var(--salmon-pale); }
.quote__glyph {
  display: block;
  height: 0.5em;
  margin-top: -24px;
  margin-bottom: 0.35em;
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(4rem, 3rem + 3vw, 6rem);
  line-height: 0.8;
  color: var(--blue);
}
.quotes__slide:nth-child(even) .quote__glyph { color: var(--coral-deep); }
.quotes__slide:nth-child(even) .quote__logo { background: var(--coral-deep); }
.quote__text { margin-bottom: 24px; font-size: 1.1125rem; font-style: italic; line-height: 1.55; color: var(--ink); text-wrap: pretty; }
.quote__text p + p { margin-top: 0.8em; }
.quote__by {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: auto;
  padding-top: 28px;
  border-top: 1px solid color-mix(in oklch, var(--ink) 14%, transparent);
}
.quote__who { display: grid; gap: 2px; min-width: 0; }
.quote__who strong { font-weight: 600; }
.quote__who span { font-size: 0.875rem; line-height: 1.4; color: var(--ink-2); }
/* El logo se tiñe con una máscara; la imagen invisible solo da el tamaño y el texto alternativo */
.quote__logo {
  display: block;
  flex: none;
  background: var(--blue);
  -webkit-mask: var(--logo) right center / contain no-repeat;
  mask: var(--logo) right center / contain no-repeat;
}
.quote__logo img { display: block; height: 30px; width: auto; max-width: 150px; object-fit: contain; opacity: 0; }
.quote__logo img[src*="lifeway"] { height: 25.5px; }

/* ---------- Contacto ---------- */
.contact { padding-top: 0; padding-bottom: clamp(64px, 8vw, 120px); }
.contact__panel {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(48px, 8vw, 120px) clamp(24px, 6vw, 96px) clamp(32px, 5vw, 72px);
  border-radius: var(--radius);
  background: var(--navy);
  color: var(--paper);
}
.contact__panel :focus-visible { outline-color: var(--paper); }
.contact__panel .label { background: color-mix(in oklch, var(--aqua) 70%, transparent); color: var(--ink); }
.contact__panel .label__mark { color: var(--blue); }
.contact__mark {
  position: absolute;
  z-index: -1;
  width: clamp(260px, 38vw, 560px);
  right: clamp(-200px, -10vw, -60px);
  top: clamp(-200px, -10vw, -60px);
  color: var(--aqua);
  opacity: 0.1;
  animation: spin 120s linear infinite;
}
.contact__head .display-1 { max-width: 10ch; }
.contact__head .lede { margin-top: 24px; color: color-mix(in oklch, var(--paper) 72%, transparent); max-width: 32ch; }
.contact__people { margin-top: clamp(48px, 7vw, 104px); }
.person {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 16px 20px;
  padding-block: 24px;
  border-top: 1px solid color-mix(in oklch, var(--paper) 16%, transparent);
}
.person__avatar {
  display: grid;
  place-items: center;
  width: 60px;
  height: 60px;
  overflow: hidden;
  border-radius: 50%;
  background: var(--aqua);
  color: var(--ink);
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.625rem;
  box-shadow: 0 0 0 3px color-mix(in oklch, var(--paper) 22%, transparent);
}
.person__avatar img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 28%; transform: scale(1.35); transform-origin: 50% 32%; }
.person__avatar--salmon { background: var(--salmon); }
.person__who { display: grid; gap: 2px; }
.person__who strong { font-family: var(--display); font-weight: 600; font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); letter-spacing: -0.02em; line-height: 1.1; }
.person__who span { font-size: 0.9375rem; color: color-mix(in oklch, var(--paper) 62%, transparent); }
.person__actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 10px; }
.person__actions .pill { max-width: 100%; }
.person__actions .pill span { overflow-wrap: anywhere; white-space: normal; }

/* ---------- Footer ---------- */
.site-footer { padding-block: clamp(48px, 5vw, 64px) 32px; border-top: 1px solid var(--line); }
.site-footer__inner { display: flex; flex-direction: column; align-items: center; text-align: center; }
.site-footer__iso { width: 36px; height: 36px; margin-bottom: 16px; color: var(--coral-strong); }
.site-footer__tagline { font-family: var(--display); font-weight: 500; font-size: 1.25rem; line-height: 1.25; letter-spacing: -0.015em; text-wrap: balance; }
.site-footer__top { display: inline-flex; align-items: center; gap: 8px; margin-top: 16px; font-size: 0.9375rem; font-weight: 500; }
.site-footer__top svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.site-footer__legal { margin-top: 32px; font-size: 0.8125rem; color: var(--ink-2); }

/* ---------- Movimiento ---------- */
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes rise { from { transform: translateY(108%); } to { transform: none; } }
@keyframes fade-up { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes marquee { to { transform: translateX(-100%); } }

.js [data-reveal] {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.9s var(--ease-quart), transform 1.2s var(--ease);
  transition-delay: calc(var(--i, 0) * 90ms);
}
.js [data-reveal].is-in { opacity: 1; transform: none; }

/* ---------- Tablet ---------- */
@media (min-width: 720px) {
  .site-footer__tagline { white-space: nowrap; }
  .hero__foot { grid-template-columns: 1fr auto; }
  .split-head { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: end; gap: 48px; }
  .split-head__aside { padding-bottom: 0.4em; }
  .service {
    grid-template-columns: 72px minmax(0, 5fr) minmax(0, 5fr) 40px;
    align-items: start;
    gap: 32px;
  }
  .service__num { padding-top: 0.55em; }
  .service__title { grid-column: 2; }
  .service__text { grid-column: 3; padding-top: 0.35em; }
  .service__mark { grid-column: 4; grid-row: 1; margin-top: 0.4em; justify-self: end; }
  .team { grid-template-columns: repeat(2, 1fr); align-items: start; column-gap: clamp(48px, 6vw, 96px); }
  .quotes__slide { flex-basis: 78%; }
  .person { grid-template-columns: auto 1fr auto; }
  .person__actions { grid-column: auto; justify-content: flex-end; }
}

/* ---------- Desktop ---------- */
@media (min-width: 1024px) {
  .site-nav { display: flex; }
  .site-header__end > .lang-switch { display: flex; }
  .menu-btn, .mobile-menu { display: none; }
  .site-header__logo svg { height: 34px; }
  .stats { grid-template-columns: repeat(4, 1fr); }
  .stat, .stat:nth-child(even) { padding: 28px 24px 8px; border-bottom: 0; border-right: 1px solid var(--line); }
  .stat:first-child { padding-left: 0; }
  .stat:last-child { border-right: 0; }
  .quotes__slide { flex-basis: 62%; }
  .contact__panel { padding: 88px; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 64px; align-items: end; }
  .contact__people { margin-top: 0; }
}

/* ---------- Mobile ---------- */
@media (max-width: 719px) {
  .hero__ctas .pill { flex: 1 1 auto; }
  /* Hero sin alto completo: que asome la sección siguiente */
  .hero, .hero__inner { min-height: 0; }
  .hero__inner { padding-top: 64px; gap: 56px; }
  .hero__mark--b { display: none; }
  /* Pretítulo: sin el asterisco y más chico, para que entre en una línea en el celular */
  .hero__eyebrow.label { padding: 6px 14px; font-size: 14px; }
  .hero__eyebrow .label__mark { display: none; }
  .hero__mark--c { width: 56px; right: 20px; top: calc(var(--header-h) + 16px); }
  .hero__foot { text-align: center; }
  .hero__ctas { justify-content: center; }
  /* Cabezales de sección centrados */
  .split-head { text-align: center; justify-items: center; }
  .split-head .display-2 { margin-inline: auto; }
  .split-head .lede { margin-inline: auto; }
  .stat, .stat:nth-child(even) { align-items: center; text-align: center; padding: 24px 12px 32px; }
  /* Recomendaciones: la primera es la más larga, en mobile arrancamos por la segunda */
  .quotes__slide:first-child { display: none; }
  .quote__text { font-size: 1.05rem; }
  /* Nombre y rol arriba a todo el ancho, logo debajo */
  .quote__by { flex-direction: column; align-items: flex-start; }
  .quote__logo { -webkit-mask-position: left center; mask-position: left center; }
  .person__actions .pill { width: 100%; padding: 12px 18px; font-size: 0.9375rem; }
  .stat:nth-last-child(-n + 2) { border-bottom: 0; }
}

/* ============================================================
   TEMA OSCURO · desactivado por defecto: el sitio es siempre claro.
   Se activa solo a pedido, con <html data-theme="dark">.
   El fondo es la tinta azul de la marca (no negro) y el texto, la
   crema. El hero pasa de salmón a un atardecer: azul tinta arriba,
   terracota abajo. Los acentos se aclaran para mantener el contraste.
   Declarar el tema evita que el navegador oscurezca el sitio por su cuenta.
   ============================================================ */
:root { color-scheme: light; }
:root[data-theme="dark"] { color-scheme: dark; }

:root[data-theme="dark"] {
  --paper: oklch(0.2 0.038 256);           /* fondo: azul tinta */
  --ink: oklch(0.955 0.014 65);            /* texto: crema */
  --ink-2: oklch(0.8 0.024 240);
  --line: oklch(0.32 0.034 252);
  --salmon-soft: oklch(0.29 0.05 32);
  --salmon-pale: oklch(0.228 0.026 24);
  --aqua-light: oklch(0.285 0.045 228);
  --aqua-pale: oklch(0.25 0.036 238);
  --blue: oklch(0.77 0.095 255);           /* acento azul, aclarado */
  --navy: oklch(0.3 0.07 250);
  --coral-deep: oklch(0.74 0.12 36);
  --hero-top: oklch(0.2 0.038 256);
  --hero-bottom: oklch(0.36 0.085 30);
}

:root[data-theme="dark"] ::selection { background: var(--coral-strong); color: var(--paper); }

/* Píldoras: velo del color sobre el fondo oscuro, texto en crema */
:root[data-theme="dark"] .label { background: color-mix(in oklch, var(--coral-strong) 24%, transparent); }
:root[data-theme="dark"] .genres .label { background: color-mix(in oklch, var(--blue) 20%, transparent); }

:root[data-theme="dark"] .pill--paper:hover { background: oklch(0.28 0.04 252); }

/* Hero: atardecer */
:root[data-theme="dark"] .hero { background: linear-gradient(180deg, var(--hero-top) 0%, var(--hero-bottom) 100%); }
:root[data-theme="dark"] .hero::after { opacity: 0.5; }
:root[data-theme="dark"] .hero__mark--a { color: oklch(0.66 0.16 34 / 0.16); }
:root[data-theme="dark"] .hero__mark--b { opacity: 0.06; }
:root[data-theme="dark"] .hero__mark--c { color: var(--coral-strong); opacity: 0.55; }
:root[data-theme="dark"] .hero__eyebrow.label { background: color-mix(in oklch, var(--ink) 12%, transparent); }
:root[data-theme="dark"] .hero__foot { border-top-color: color-mix(in oklch, var(--ink) 30%, transparent); }
:root[data-theme="dark"] .hero .pill--paper { background: transparent; border-color: color-mix(in oklch, var(--ink) 45%, transparent); color: var(--ink); }
:root[data-theme="dark"] .hero .pill--paper:hover { background: color-mix(in oklch, var(--ink) 10%, transparent); border-color: var(--ink); }

:root[data-theme="dark"] .services, :root[data-theme="dark"] .stats { border-top-color: color-mix(in oklch, var(--ink) 40%, transparent); }
:root[data-theme="dark"] .statement::after, :root[data-theme="dark"] .contact__panel::after { opacity: 0.4; }
:root[data-theme="dark"] .statement__mark--a { color: oklch(0.6 0.11 256); }

/* Contacto: el panel conserva los colores claros por dentro (crema sobre azul) */
:root[data-theme="dark"] .contact__panel {
  --paper: oklch(0.978 0.011 65);
  --ink: oklch(0.255 0.052 252);
  background: var(--navy);
  box-shadow: inset 0 0 0 1px oklch(1 0 0 / 0.06);
}


/* Movimiento reducido («Reducir movimiento» del iPhone, o similar en Android).
   No se apaga todo: siguen los giros lentos de los asteriscos, el pasador de géneros,
   la entrada del título del hero y las apariciones, que se mueven menos.
   Se quitan el scroll suave y el zoom de los retratos. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js [data-reveal] { transform: translateY(12px); }
  .member:hover .portrait img { transform: none; }
}
