/* ==========================================================================
   Velvet Voice — Hero editorial
   Tema único borgoña (tokens en :root). Sin sombras, degradados ni radios
   en las imágenes; los botones son redondeados.
   ========================================================================== */

/* Tema único: borgoña vino */
:root {
  --bg: #3B0A10;          /* burdeos vino */
  --ink: #F3E4E2;
  --ghost: #2E070C;
  --solid: #F3E4E2;
  --solid-ink: #3B0A10;
  --cream: #F5F0E6;       /* crema del manual de marca */
  --gold: #D7B978;        /* dorado del manual de marca */

  --serif: "Instrument Serif", "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --gutter: clamp(16px, 2.6vw, 40px);
  --bar-h: 72px;
  --gap: 8px;
  --H: clamp(220px, 42vh, 560px);  /* alto de la tarjeta central */
  --ease-out: cubic-bezier(.22, 1, .36, 1);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }   /* que ningún display de clase lo anule */
html, body { margin: 0; }
body {
  background: var(--bg);
  color: var(--ink);
  font: 400 12px/1.5 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
figure, ul, p, h1, h2, h3 { margin: 0; padding: 0; }
ul { list-style: none; }
img { display: block; }
a { color: inherit; text-decoration: none; }

/* Foco visible en todo lo que se puede tocar */
:focus-visible { outline: 1px solid var(--ink); outline-offset: 3px; }

.skip {
  position: fixed; left: 12px; top: 12px; z-index: 100;
  padding: 8px 12px; background: var(--solid); color: var(--solid-ink);
  border-radius: 2px; transform: translateY(-200%);
}
.skip:focus { transform: none; }

/* ---------- Layout general: todo cabe en 100vh ---------- */
.hero {
  display: grid;
  height: 100vh;
  height: 100svh;
  min-height: 600px;
  padding: var(--bar-h) var(--gutter) 0;   /* la barra es fija: se reserva su alto */
}
.content {
  display: grid;
  grid-template-rows: 1fr auto;   /* marca · collage · eslogan */
  min-height: 0;
  padding-bottom: clamp(28px, 5.5vh, 64px);
}
.sr-only {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap;
}

/* ---------- Barra superior (fija; toma fondo al hacer scroll) ---------- */
.bar {
  position: fixed; inset: 0 0 auto; z-index: 300;   /* por encima de las flechas del carrusel (z 120) */
  height: var(--bar-h); padding: 0 var(--gutter);
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; column-gap: 24px;
}
.bar::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--bg);
  border-bottom: 1px solid color-mix(in srgb, var(--ink) 12%, transparent);
  opacity: 0; transition: opacity .4s ease;
}
.bar.is-scrolled::before { opacity: 1; }
.bar__actions { grid-column: 3; justify-self: end; display: flex; gap: 8px; }
.bar .menu-toggle { display: none; }
.bar .btn { height: 36px; padding: 0 20px; font-size: 11.5px; }
@media (min-width: 821px) and (max-width: 1120px) {
  .menu ul { gap: 18px; }
  .menu__link { font-size: 11px; letter-spacing: .1em; }
  .bar .btn { padding: 0 14px; font-size: 10.5px; }
}
@media (min-width: 821px) and (max-width: 960px) {
  .menu ul { gap: 13px; }
  .menu__link { font-size: 10.5px; letter-spacing: .08em; }
  .bar .btn { padding: 0 12px; }
}

.menu ul { display: flex; gap: clamp(22px, 3.2vw, 46px); }
.menu__link {
  position: relative; display: inline-block; padding: 14px 0;
  font: 500 12px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase;
  opacity: .75; transition: opacity .25s ease;
}
/* subrayado fino que se dibuja desde el centro */
.menu__link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 8px; height: 1px;
  background: var(--gold); transform: scaleX(0); transition: transform .45s var(--ease-out);
}
.menu__link[aria-current="true"] { opacity: 1; }
.menu__link[aria-current="true"]::after { transform: scaleX(1); }
@media (hover: hover) {
  .menu__link:hover { opacity: 1; }
  .menu__link:hover::after { transform: scaleX(1); }
}
.brand { display: inline-flex; padding: 6px; margin-left: -6px; border-radius: 2px; }
.brand__mark {
  width: 30px; height: 30px; display: block;
  background-color: var(--ink);
  -webkit-mask: url(../img/monograma-borgona.png) center / contain no-repeat;
          mask: url(../img/monograma-borgona.png) center / contain no-repeat;
}

.btn {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center;
  height: 28px; padding: 0 16px;
  border: 1px solid transparent; border-radius: 999px;   /* esquinas redondeadas */
  font: 500 10px/1 var(--sans); letter-spacing: .08em; text-transform: uppercase;
  color: var(--ink); background: transparent; cursor: pointer;
  transition: transform .18s var(--ease-out);
}
.btn::after { content: ""; position: absolute; inset: -8px -3px; } /* área táctil ≥44px */
.btn--solid { background: var(--solid); color: var(--solid-ink); }
.btn--line { border-color: currentColor; }
@media (hover: hover) { .btn:hover { transform: translateY(-1px); } }
.btn:active { transform: translateY(0) scale(.97); }

/* ---------- Collage ---------- */
.stage {
  position: relative;
  display: flex; align-items: center;
  margin: 0 calc(var(--gutter) * -1);   /* sangra a todo el ancho */
  min-height: calc(var(--H) + 24px);
  overflow-x: clip;
}
.rail, .drift { width: 100%; }
.track {
  position: relative;                    /* offsetParent de los .slot */
  display: grid;
  grid-template-columns: 1fr auto 1fr;   /* la central queda en el eje exacto */
  align-items: center;
  column-gap: var(--gap);
}
.group { display: flex; align-items: center; gap: var(--gap); min-width: 0; }
.group--left { justify-content: flex-end; }
.group--right { justify-content: flex-start; }

.slot {
  position: relative;
  flex: none;
  height: calc(var(--H) * var(--s));
  aspect-ratio: var(--ar);
}
/* z-index: las más alejadas quedan debajo */
.slot[data-off="0"] { z-index: 10; }
.slot[data-off="-1"], .slot[data-off="1"] { z-index: 9; }
.slot[data-off="-2"], .slot[data-off="2"] { z-index: 8; }
.slot[data-off="-3"], .slot[data-off="3"] { z-index: 7; }
.slot[data-off="-4"], .slot[data-off="4"] { z-index: 6; }

.card {
  position: absolute; inset: 0;
  overflow: hidden;
  background: var(--ph);       /* placeholder hasta que llegue la foto */
  transform-origin: 50% 50%;
}
.card img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .6s var(--ease-out);
}
.card.is-empty img { display: none; }
@media (hover: hover) {
  .card:hover img { transform: scale(1.04); }
}
.is-animating .card, .is-animating .slot { will-change: transform; }

/* Estado previo a la intro (lo quita el JS al montar el abanico) */
.is-pre .stage, .is-pre [data-reveal] { visibility: hidden; }

/* ---------- Marca: nombre sobre el collage ----------
   Tipografía de la marca: Bondie (manual de marca 1.0). Se usa si está instalada
   en el equipo; para que la vea todo el mundo hay que añadir su archivo web con
   licencia (p. ej. fonts/bondie.woff2) en el src de abajo. Mientras, Bodoni Moda
   (Google Fonts) es la didona libre más parecida. */
@font-face {
  font-family: "Bondie";
  src: local("Bondie"), local("Bondie-Regular");
  font-display: swap;
}
.mast {
  display: flex; justify-content: center;
  padding-top: clamp(8px, 2.4vh, 28px);
  text-align: center;
}
.mast__name {
  font-family: "Bondie", "Bodoni Moda", var(--serif);
  font-weight: 400;
  font-size: clamp(40px, 4.2vw, 64px);   /* ~60px en escritorio */
  font-optical-sizing: auto;          /* Bodoni Moda: trazos más finos a tamaño grande */
  line-height: 1;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--cream);
  white-space: nowrap;
}

/* ---------- Eslogan centrado bajo el collage ---------- */
.slogan {
  display: flex; flex-direction: column; align-items: center;
  margin-top: clamp(12px, 2.4vh, 28px);
  font: italic 500 clamp(24px, 2.5vw, 38px)/1.12 "Cormorant Garamond", var(--serif);
  letter-spacing: .005em;
  text-align: center;
}
/* cada línea recorta a sus palabras para que suban "desde dentro" */
.slogan__line { display: block; overflow: hidden; padding: 0 .08em .08em; }
.slogan__line--cream { color: var(--cream); }
.slogan__line--gold { color: var(--gold); }
.slogan .w { display: inline-block; }
.is-pre .slogan { visibility: hidden; }

/* ---------- Hero «cine»: foto a sangre + nombre grande ----------
   Capas: foto (con tinte borgoña) → velo degradado → nombre y eslogan.
   El velo acaba en #3B0A10 exacto, el color con el que empieza el recorrido
   de las secciones, para que no haya costura. */
.cine {
  position: relative; isolation: isolate;
  height: 100vh; height: 100svh; min-height: 600px;
  display: grid; place-items: center;
  overflow: hidden;
  color: var(--cream);
  text-align: center;
}
.cine__media {
  position: absolute; inset: -3%;            /* margen para el parallax sin enseñar bordes */
  z-index: -2;
  /* fondo: borgoña con un halo vino donde nacen las ondas */
  background: radial-gradient(ellipse 75% 55% at 50% 56%, #6E2230, #4A121B 50%, #3B0A10 85%);
}
.cine__canvas { display: block; width: 100%; height: 100%; }
.cine__veil {
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg,
    rgba(59,10,16,.55) 0%, rgba(59,10,16,0) 28%, rgba(59,10,16,0) 62%,
    rgba(59,10,16,.7) 82%, #3B0A10 96%);
}
.cine + .flow { position: relative; margin-top: -2px; }   /* sin costura entre hero y secciones */
.cine__center { display: grid; justify-items: center; gap: clamp(14px, 2.4vh, 26px); padding: 0 var(--gutter); }
.cine__name {
  font-family: "Bondie", "Bodoni Moda", var(--serif);
  /* Bodoni Moda, a este tamaño, adelgazaba tanto los trazos finos que casi
     desaparecían: se fija un contraste medio (opsz 36) y un punto más de peso */
  font-weight: 500;
  font-optical-sizing: none; font-variation-settings: "opsz" 36;
  font-size: clamp(44px, 8.8vw, 150px);         /* un poco más pequeño (antes 10.4vw / 176px) */
  line-height: .95;
  letter-spacing: .14em; margin-right: -.14em;   /* compensa el espaciado del final para centrar */
  text-transform: uppercase;
  white-space: nowrap;
  padding-bottom: .06em;
  clip-path: inset(-30% -50% 0 -50%);           /* «línea invisible»: las letras suben desde debajo */
  text-shadow: 0 0 24px rgba(59,10,16,.55);     /* un velo suave para que la onda no le reste nitidez */
}
.cine__name .ch { display: inline-block; }
.cine__sub {
  font: 500 clamp(10px, .95vw, 13px)/1.6 var(--sans);   /* un poco más grande (antes 9–11px) */
  letter-spacing: .42em; margin-right: -.42em;
  text-transform: uppercase;
  opacity: .88;
}
.cine__sub span { color: var(--gold); }
.cine__slogan { position: absolute; left: 0; right: 0; bottom: clamp(84px, 13vh, 140px); margin: 0; }
.cine__cue {
  position: absolute; left: 50%; bottom: clamp(20px, 3.5vh, 36px); translate: -50% 0;
  display: grid; justify-items: center; gap: 10px;
  padding: 6px 10px;
  font: 500 9px/1 var(--sans); letter-spacing: .32em; text-transform: uppercase; opacity: .8;
}
.cine__cue i { display: block; width: 1px; height: 34px; background: linear-gradient(var(--gold), transparent);
  transform-origin: top; animation: vv-cue 2.6s var(--ease-out) infinite; }
@keyframes vv-cue { 0% { transform: scaleY(0); opacity: 1; } 60% { transform: scaleY(1); opacity: 1; } 100% { transform: scaleY(1); opacity: 0; } }
.is-pre .cine__center, .is-pre .cine__cue { visibility: hidden; }
@media (max-width: 640px) {
  .cine__name { font-size: clamp(30px, 9.6vw, 48px); letter-spacing: .06em; margin-right: -.06em; }
  .cine__sub { letter-spacing: .24em; margin-right: -.24em; max-width: 30ch; }
}

/* ---------- Secciones: el inverso del hero ----------
   Fondo crema, texto borgoña y el dorado para lo que se quiere destacar.
   El dorado del manual (#D7B978) apenas se lee sobre crema, así que en texto
   se usa una versión más profunda (--gold-ink); el claro queda para líneas. */
.section {
  --bg: var(--cream);
  --ink: #3B0A10;
  --solid: #3B0A10;
  --solid-ink: var(--cream);
  --gold-ink: #84652B;               /* dorado profundo: legible sobre crema y rosa */
  --line: color-mix(in srgb, #3B0A10 28%, transparent);
  background: var(--bg);
  color: var(--ink);
  color-scheme: light;                 /* controles de formulario claros */
}
.kicker {
  display: flex; align-items: center; gap: 12px;
  font: 500 10px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase;
  color: var(--gold-ink);
}
.kicker::before { content: ""; width: 28px; height: 1px; background: var(--gold-ink); }
.accent { color: var(--gold-ink); font-style: italic; }

/* ---------- Recorrido de color: un solo degradado en toda la web ----------
   .flow envuelve todas las secciones tras el hero y lleva UN degradado
   continuo, del borgoña del hero al crema, repartido por igual a lo largo de
   toda la página. Las secciones son transparentes.
   Las paradas están en CONFIG.flow.stops (hero.js), que pinta este fondo y
   decide el color de texto de cada bloque; esta copia es solo el respaldo
   sin JS y debe coincidir. */
.flow {
  background: linear-gradient(
    #3B0A10 0%, #4A121B 11%, #5C1B27 22%, #722A36 33%, #8B3E49 44%,
    #A4585F 54%, #BC7579 64%, #D09693 74%, #DFB5AE 84%, #EBD3CB 92%, #F5F0E6 100%);
}
.flow > .section { background: none; }
.flow { overflow-x: clip; }   /* lo que sangra a los lados (órbita de Soluciones) no crea scroll lateral */

/* Tonos de texto que el JS asigna a cada bloque según el fondo que tiene detrás */
.tone-dark {
  --ink: var(--cream);
  --line: color-mix(in srgb, var(--cream) 22%, transparent);
  --gold-ink: var(--gold);
  --solid: var(--cream);
  --solid-ink: #3B0A10;
  color: var(--ink);
  color-scheme: dark;
}
.tone-light {
  --ink: #3B0A10;
  --line: color-mix(in srgb, #3B0A10 28%, transparent);
  --solid: #3B0A10;
  --solid-ink: var(--cream);
  color: var(--ink);
  color-scheme: light;
}
/* sobre rosas medios el dorado profundo se oscurece un punto más (lo fija el JS) */

/* ---------- Bloques de contenido (Retos, Soluciones, Paquetes) ---------- */
.block {
  display: grid;
  gap: clamp(40px, 7vh, 80px);
  padding: clamp(88px, 14vh, 160px) var(--gutter);
}
.block__head { display: grid; gap: clamp(16px, 2.6vh, 24px); }
.block__title {
  font: 400 clamp(36px, 4.4vw, 64px)/1.04 var(--serif);
  letter-spacing: -.015em;
  text-wrap: balance;
}

/* Retos: tarjetas en retícula, separadas por filetes finos */
.pains {
  display: grid; grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line); border-left: 1px solid var(--line);
}
.pain {
  display: flex; flex-direction: column; gap: 14px;
  padding: clamp(24px, 2.6vw, 40px);
  border-right: 1px solid var(--line); border-bottom: 1px solid var(--line);
  transition: background-color .4s ease;
}
.pain__n { font: italic 400 15px/1 var(--serif); color: var(--gold-ink); }
.pain__title { font: 400 clamp(24px, 2vw, 30px)/1.1 var(--serif); }
.pain p { max-width: 36ch; font-size: 13px; line-height: 1.6; opacity: .86; }
@media (hover: hover) {
  .pain:hover { background: color-mix(in srgb, var(--gold) 14%, var(--bg)); }
}

/* ---------- Soluciones: tarjetas de cristal en arco ----------
   Estilo de la referencia: cristal esmerilado, tarjetas de los lados giradas
   hacia el centro, flotando, con una órbita de luz dorada por detrás.
   (Única excepción a «sin sombras ni radios»: aquí el cristal lo pide.) */
.solutions {
  position: relative;
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: clamp(16px, 2vw, 28px);
  perspective: 1400px;
  padding-block: 24px 8px;
}
.orbit {
  position: absolute; left: -4%; right: -4%; top: 30%;
  width: 108%; height: 34%;
  overflow: visible; pointer-events: none; z-index: 0;
}
.orbit__ring { fill: none; stroke: var(--gold); stroke-width: 1.6; opacity: .9; vector-effect: non-scaling-stroke;
  filter: drop-shadow(0 0 4px var(--gold)) drop-shadow(0 0 12px color-mix(in srgb, var(--gold) 60%, transparent)); }
.orbit__dot { fill: #FFF3D6; filter: drop-shadow(0 0 6px var(--gold)) drop-shadow(0 0 14px var(--gold)); }

.sol {
  --tilt: 0deg; --lift: 0px; --float: 0px;
  position: relative; z-index: 1;
  display: flex; flex-direction: column; gap: 16px;
  padding: clamp(18px, 1.6vw, 24px);
  border-radius: 18px;
  color: var(--ink);
  background:
    linear-gradient(160deg, color-mix(in srgb, #FFFFFF 16%, transparent), color-mix(in srgb, #FFFFFF 3%, transparent) 55%),
    color-mix(in srgb, var(--cream) 7%, transparent);
  border: 1px solid color-mix(in srgb, var(--cream) 26%, transparent);
  box-shadow:
    inset 0 1px 0 color-mix(in srgb, #FFFFFF 30%, transparent),
    0 24px 60px -24px rgba(20, 2, 6, .55);
  -webkit-backdrop-filter: blur(14px) saturate(1.15);
          backdrop-filter: blur(14px) saturate(1.15);
  transform: translateY(calc(var(--lift) + var(--float))) rotateY(var(--tilt));
  transform-style: preserve-3d;
  transition: transform .6s var(--ease-out), border-color .4s ease, box-shadow .4s ease;
  will-change: transform;
}
/* arco: las de fuera giran más hacia el centro y quedan un poco más bajas */
.sol:nth-child(2) { --tilt: 16deg;  --lift: 18px; }
.sol:nth-child(3) { --tilt: 5deg;   --lift: 0px; }
.sol:nth-child(4) { --tilt: -5deg;  --lift: 0px; }
.sol:nth-child(5) { --tilt: -16deg; --lift: 18px; }
@media (hover: hover) {
  .sol:hover {
    --tilt: 0deg; --lift: -8px;
    border-color: color-mix(in srgb, var(--gold) 70%, transparent);
    box-shadow: inset 0 1px 0 color-mix(in srgb, #FFFFFF 34%, transparent),
                0 0 0 1px color-mix(in srgb, var(--gold) 25%, transparent),
                0 30px 70px -24px rgba(20, 2, 6, .6),
                0 0 40px -10px color-mix(in srgb, var(--gold) 45%, transparent);
  }
}
.sol__top { display: flex; align-items: center; gap: 12px; }
.sol__icon {
  flex: none; width: 40px; height: 40px; border-radius: 12px;
  display: grid; place-items: center;
  background: color-mix(in srgb, var(--cream) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--cream) 22%, transparent);
  color: var(--gold-ink);
}
.sol__icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.sol__title { font: 400 clamp(22px, 1.8vw, 28px)/1.05 var(--serif); }
.sol__sub { margin-top: 3px; font: 500 10px/1.2 var(--sans); letter-spacing: .12em; text-transform: uppercase; opacity: .72; }
.sol__text { font-size: 13px; line-height: 1.55; opacity: .86; }

/* Soluciones con más aire: tarjetas más separadas y sin pegarse a los bordes,
   más margen interior y más espacio entre icono, ilustración, texto y etiquetas */
#soluciones { gap: clamp(56px, 9vh, 104px); }
#soluciones .solutions {
  max-width: 1380px; width: 100%; margin-inline: auto;
  gap: clamp(20px, 2vw, 32px);
  padding: 32px clamp(0px, 1.5vw, 24px) 16px;
}
#soluciones .sol { gap: 20px; padding: clamp(22px, 2vw, 28px); }
#soluciones .sol__top { gap: 14px; }
#soluciones .art { height: 128px; }
#soluciones .sol__text { font-size: 15.5px; line-height: 1.6; }
#soluciones .tags { gap: 7px; margin-top: 0; }
#soluciones .tag { padding: 7px 11px; font-size: 10.5px; letter-spacing: .05em; white-space: nowrap; }

/* Escritorio: 2 × 2 tarjetas apaisadas — ilustración a la izquierda a toda altura,
   título, texto y etiquetas a la derecha. (Tablet y móvil siguen en columna.) */
@media (min-width: 1025px) {
  #soluciones .solutions { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 1fr; max-width: 1240px; gap: clamp(24px, 2.4vw, 36px); }   /* las 4 tarjetas a la misma altura */
  #soluciones .sol {
    --tilt: 0deg; --lift: 0px;
    display: grid; align-content: start;
    grid-template-columns: minmax(0, .6fr) minmax(0, 1.4fr);
    grid-template-areas: "art top" "art text" "art tags";
    grid-template-rows: auto auto 1fr;
    gap: 12px 24px;
  }
  #soluciones .sol__top { grid-area: top; }
  #soluciones .art { grid-area: art; align-self: center; height: 190px; }
  #soluciones .sol__text { grid-area: text; }
  #soluciones .tags { grid-area: tags; align-content: start; }
  #soluciones .orbit { top: 40%; height: 26%; }
}

/* Mini ilustraciones (decorativas, en la paleta de la marca) */
.art {
  position: relative; height: 128px; border-radius: 12px; overflow: hidden;
  background: color-mix(in srgb, #1E0408 55%, transparent);
  border: 1px solid color-mix(in srgb, var(--cream) 14%, transparent);
}
/* Web: navegador con una línea de crecimiento que se dibuja */
.art--web .art__bar { display: flex; align-items: center; gap: 4px; padding: 8px 10px; border-bottom: 1px solid rgba(245,240,230,.1); }
.art--web .art__bar i { width: 5px; height: 5px; border-radius: 50%; background: rgba(245,240,230,.35); }
.art--web .art__bar span { margin-left: 8px; padding: 2px 10px; border-radius: 99px; background: rgba(245,240,230,.08); font: 9px/1.4 var(--sans); color: rgba(245,240,230,.7); }
.art--web .art__page { position: relative; padding: 12px; display: grid; gap: 6px; }
.art--web b { display: block; height: 6px; border-radius: 3px; background: rgba(245,240,230,.22); }
.art--web .l1 { width: 58%; height: 9px; background: rgba(245,240,230,.5); }
.art--web .l2 { width: 40%; }
.art--web .cta { width: 22%; height: 10px; background: var(--gold); margin-top: 4px; }
.art--web .spark { position: absolute; right: 10px; bottom: 10px; width: 52%; height: 48px; overflow: visible; }
.art--web .spark path { fill: none; stroke: var(--gold); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 160; stroke-dashoffset: 160; animation: vv-draw 3.6s var(--ease-out) infinite; }
@keyframes vv-draw { 0% { stroke-dashoffset: 160; } 55%, 85% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: 0; opacity: 0; } }

/* Social: móvil con cuadrícula de publicaciones y burbujas que suben */
.art--social { display: grid; place-items: center; }
.art--social .phone { width: 74px; height: 112px; margin-top: 22px; padding: 8px 6px; border-radius: 14px 14px 0 0;
  border: 1px solid rgba(245,240,230,.3); border-bottom: 0; background: rgba(245,240,230,.05); }
.art--social .phone__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3px; }
.art--social .phone__grid i { aspect-ratio: 1; border-radius: 2px; background: #B4706C; }
.art--social .phone__grid i:nth-child(3n+2) { background: #D9A39A; }
.art--social .phone__grid i:nth-child(4n) { background: #7A1F2B; }
.art--social .phone__grid i:nth-child(5) { background: var(--gold); }
.art--social .bubble { position: absolute; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%;
  background: var(--gold); color: #3B0A10; font-size: 12px; animation: vv-pop 3.2s var(--ease-out) infinite; }
.art--social .bubble--1 { left: 22%; top: 34%; }
.art--social .bubble--2 { right: 22%; top: 20%; background: #EBD9D9; animation-delay: 1.6s; }
@keyframes vv-pop { 0% { transform: translateY(14px) scale(.4); opacity: 0; } 20% { transform: none; opacity: 1; } 70% { opacity: 1; } 100% { transform: translateY(-10px); opacity: 0; } }

/* Marca: tipografía, paleta y monograma */
.art--brand { display: grid; grid-template-columns: 1fr auto; align-items: center; padding: 14px 16px; gap: 10px; }
.art--brand .aa { font: 400 52px/1 "Bodoni Moda", var(--serif); color: var(--cream); }
.art--brand .mono { font: 400 20px/1 "Bodoni Moda", var(--serif); color: var(--gold); letter-spacing: .08em; }
.art--brand .swatches { grid-column: 1 / -1; display: flex; gap: 6px; }
.art--brand .swatches i { flex: 1; height: 18px; border-radius: 4px; background: var(--c); border: 1px solid rgba(245,240,230,.18);
  transform-origin: bottom; animation: vv-swatch 3.4s var(--ease-out) infinite; }
.art--brand .swatches i:nth-child(2) { animation-delay: .15s; }
.art--brand .swatches i:nth-child(3) { animation-delay: .3s; }
.art--brand .swatches i:nth-child(4) { animation-delay: .45s; }
@keyframes vv-swatch { 0%, 100% { transform: scaleY(1); } 20% { transform: scaleY(1.5); } 40% { transform: scaleY(1); } }

/* Auditoría: buscador y barras que crecen */
.art--audit { padding: 12px; display: grid; grid-template-rows: auto 1fr; gap: 10px; }
.art--audit .search { display: flex; align-items: center; justify-content: space-between; padding: 6px 10px; border-radius: 99px;
  background: rgba(245,240,230,.1); font: 9px/1.4 var(--sans); color: rgba(245,240,230,.75); }
.art--audit .search svg { width: 12px; height: 12px; fill: none; stroke: var(--gold); stroke-width: 2; }
.art--audit .bars { display: flex; align-items: flex-end; gap: 6px; padding: 0 4px; }
.art--audit .bars i { flex: 1; height: var(--h); border-radius: 3px 3px 0 0; background: rgba(245,240,230,.25);
  transform-origin: bottom; animation: vv-bar 3.6s var(--ease-out) infinite; }
.art--audit .bars i:last-child { background: var(--gold); }
.art--audit .bars i:nth-child(2) { animation-delay: .1s; } .art--audit .bars i:nth-child(3) { animation-delay: .2s; }
.art--audit .bars i:nth-child(4) { animation-delay: .3s; } .art--audit .bars i:nth-child(5) { animation-delay: .4s; }
.art--audit .bars i:nth-child(6) { animation-delay: .5s; }
@keyframes vv-bar { 0% { transform: scaleY(.15); } 45%, 85% { transform: scaleY(1); } 100% { transform: scaleY(.15); } }

/* Flotación suave y desfasada (propiedad «translate», independiente del giro) */
.sol { animation: vv-float 6s ease-in-out infinite; }
.sol:nth-child(3) { animation-delay: -1.5s; }
.sol:nth-child(4) { animation-delay: -3s; }
.sol:nth-child(5) { animation-delay: -4.5s; }
@keyframes vv-float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -8px; } }
@media (hover: hover) { .sol:hover { animation-play-state: paused; } }
[data-motion="reduce"] .sol,
[data-motion="reduce"] .art *,
[data-motion="reduce"] .orbit__dot { animation: none !important; }

/* Tablet y móvil: sin arco (las tarjetas van rectas), órbita oculta */
@media (max-width: 1024px) {
  .sol:nth-child(n) { --tilt: 0deg; --lift: 0px; }
  .orbit { display: none; }
}

/* Tarjetas sobre un tono claro del degradado: el cristal se oscurece un poco */
.sol.tone-light { background: linear-gradient(160deg, rgba(255,255,255,.45), rgba(255,255,255,.18) 55%), rgba(245,240,230,.25);
  border-color: rgba(59,10,16,.16); }
.sol.tone-light .sol__icon { background: rgba(59,10,16,.06); border-color: rgba(59,10,16,.14); }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.tag {
  padding: 9px 14px;
  border: 1px solid var(--line); border-radius: 999px;
  font: 500 10px/1 var(--sans); letter-spacing: .1em; text-transform: uppercase;
  transition: border-color .3s ease, background-color .3s ease, color .3s ease;
}
@media (hover: hover) {
  .tag:hover { border-color: var(--gold-ink); background: color-mix(in srgb, var(--gold) 22%, var(--bg)); }
}

/* Paquetes: el Pro va destacado en borgoña */
.plans { display: grid; grid-template-columns: 1fr; gap: 16px; }
.plan {
  /* cristal como las tarjetas de Soluciones: el texto toma el tono (claro u oscuro)
     que el JS calcula según el degradado que tiene detrás */
  position: relative;
  display: flex; flex-direction: column; gap: 18px;
  padding: clamp(28px, 3vw, 44px);
  border-radius: 18px;
  color: var(--ink);
  background:
    linear-gradient(160deg, rgba(255,255,255,.16), rgba(255,255,255,.03) 55%),
    rgba(245,240,230,.07);
  border: 1px solid rgba(245,240,230,.26);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.3), 0 24px 60px -24px rgba(20,2,6,.45);
  -webkit-backdrop-filter: blur(14px) saturate(1.15); backdrop-filter: blur(14px) saturate(1.15);
  transition: transform .4s var(--ease-out), border-color .4s ease;
}
.plan.tone-light {
  background: linear-gradient(160deg, rgba(255,255,255,.45), rgba(255,255,255,.18) 55%), rgba(245,240,230,.25);
  border-color: rgba(59,10,16,.16);
}
@media (hover: hover) { .plan:hover { transform: translateY(-3px); } }
.plan__name { font: 400 clamp(40px, 3.6vw, 56px)/1 var(--serif); }
.plan__for { font-size: 13px; line-height: 1.5; opacity: .86; }
.plan__list { display: grid; gap: 14px; padding: 22px 0; border-top: 1px solid var(--line); font-size: 16px; line-height: 1.4; }
.plan__list li { display: grid; grid-template-columns: 20px 1fr; gap: 12px; align-items: start; }
/* check dorado dentro de un círculo fino, en vez de guiones */
.plan__list li::before {
  content: ""; width: 20px; height: 20px; margin-top: -1px;
  background: var(--gold-ink);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Ccircle cx='10' cy='10' r='9.5' fill='none' stroke='%23000'/%3E%3Cpath d='M6 10.4l2.6 2.6L14 7.6' fill='none' stroke='%23000' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Ccircle cx='10' cy='10' r='9.5' fill='none' stroke='%23000'/%3E%3Cpath d='M6 10.4l2.6 2.6L14 7.6' fill='none' stroke='%23000' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% no-repeat;
  border: 0;
}
.plan__cta { margin-top: auto; }
.plan__badge {
  position: absolute; top: clamp(28px, 3vw, 44px); right: clamp(28px, 3vw, 44px);
  font: 500 10px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase;
  color: var(--gold);
}
.plan.plan--featured { border-color: var(--gold); box-shadow: inset 0 1px 0 rgba(255,255,255,.3), 0 0 0 1px rgba(215,185,120,.35), 0 28px 70px -20px rgba(215,185,120,.35); }
/* Filas horizontales (pantallas anchas): foto enmarcada · frase · lista en dos
   columnas · botón. En móvil cada paquete vuelve a ir en vertical. */
@media (min-width: 821px) {
  .plan {
    display: grid; align-items: center;
    grid-template-columns: 270px minmax(0, .75fr) minmax(0, 1.7fr) auto;
    gap: 0 clamp(24px, 3vw, 48px);
    padding: 18px clamp(24px, 2.6vw, 36px) 18px 18px;
  }
  .plan .plan__art { width: 270px; margin: 0; padding: 12px 12px 0; }
  .plan .plan__frame { aspect-ratio: 1; }
  .plan .plan__cap { height: 70px; }
  .plan__for { font: italic 400 clamp(17px, 1.3vw, 20px)/1.3 var(--serif); opacity: .9; }
  .plan__list {
    grid-template-columns: 1fr 1fr; gap: 18px 32px; font-size: 17px;
    padding: 0 0 0 clamp(24px, 3vw, 48px);
    border-top: 0; border-left: 1px solid var(--line);
  }
  .plan__cta { margin: 0; white-space: nowrap; }
  @media (hover: hover) { .plan:hover { transform: translateX(4px); } }
}
@media (min-width: 821px) and (max-width: 1180px) {
  .plan__list { grid-template-columns: 1fr; gap: 10px; font-size: 15px; }
  .plan { grid-template-columns: 210px minmax(0, 1fr) minmax(0, 1.2fr) auto; }
  .plan .plan__art { width: 210px; }
  .plan__brand { font-size: 14px; letter-spacing: .1em; margin-right: -.1em; }
  .plan__stamp { height: 28px; }
  .plan__cap { gap: 9px; }
}

/* Foto de cada paquete como una copia impresa con paspartú: marco crema, foto
   vertical con un retoque cálido común y, en el margen de abajo, la etiqueta, el
   nombre y un sello pequeño con el monograma. */
.plan__art {
  align-self: center;
  width: min(290px, 100%);
  margin: 4px auto 10px;
  padding: 12px 12px 0;
  background: #FFFCF7;
  border: 1px solid rgba(59,10,16,.08);
  box-shadow: 0 1px 2px rgba(42,6,12,.06), 0 18px 40px -12px rgba(42,6,12,.28);
  transition: transform .6s var(--ease-out), box-shadow .6s var(--ease-out);
}
.plan__frame { aspect-ratio: 4 / 5; overflow: hidden; background: #EADCC8; }
.plan__photo {
  display: block; width: 100%; height: 100%; object-fit: cover;
  filter: sepia(.22) saturate(.88) contrast(.97) brightness(1.02);
  transition: scale 1.2s var(--ease-out);
}
/* pie ancho de polaroid: monograma + Velvet Voice, como una foto firmada */
.plan__cap { display: flex; align-items: center; justify-content: center; gap: 12px; height: 66px; }
.plan__head { display: grid; gap: 8px; }
.plan__kicker { font: 500 13px/1 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--gold-ink); }
.plan__stamp { height: 34px; width: auto; opacity: .9; }
.plan__brand { font: 700 17px/1 "Bodoni Moda", var(--serif); letter-spacing: .2em; margin-right: -.2em;
  font-optical-sizing: none; font-variation-settings: "opsz" 9;   /* trazos finos más gruesos */ text-transform: uppercase; color: #3B0A10; white-space: nowrap; }
@media (hover: hover) {
  .plan:hover .plan__art { transform: translateY(-4px) rotate(-.6deg); }
  .plan:hover .plan__photo { scale: 1.04; }
}

/* ---------- Carrusel de problemas (coverflow de cristal) ----------
   La tarjeta central se ve de frente; las de los lados giran hacia dentro y se
   alejan. El JS coloca cada tarjeta (transform) y fija --f (1 = centrada). */
.is-deck .pains { display: none; }
.deck {
  position: relative;
  margin-inline: calc(var(--gutter) * -1);   /* sangra a todo el ancho */
  padding: 0 var(--gutter);
  user-select: none;
}
/* luz cálida detrás, como una lámpara en la escena */
.deck::before {
  content: ""; position: absolute; left: 50%; top: 52%;
  width: min(900px, 120vw); height: 560px; translate: -50% -50%;
  background: radial-gradient(closest-side, rgba(215,185,120,.22), rgba(180,112,108,.10) 55%, transparent);
  pointer-events: none;
}
/* Debajo, solo el contador; las flechas flotan a los lados de la tarjeta central */
.deck__bar {
  display: flex; justify-content: center;
  margin-top: 0;
  color: var(--cream);
}
.deck__pos { display: inline-flex; align-items: center; gap: 10px; }
.deck__pos b { font: italic 400 20px/1 var(--serif); color: var(--gold); min-width: 2ch; text-align: right; }
.deck__pos i { width: 22px; height: 1px; background: rgba(245,240,230,.4); }
.deck__pos span { font: 500 10px/1 var(--sans); letter-spacing: .16em; opacity: .65; }
.deck__arrow {
  position: absolute; z-index: 120;
  top: calc(15px + var(--ch, 440px) / 2 - 26px);
  width: 52px; height: 52px; display: grid; place-items: center;
  color: var(--cream);
  background: rgba(245,240,230,.1);
  border: 1px solid rgba(245,240,230,.26); border-radius: 50%; cursor: pointer;
  -webkit-backdrop-filter: blur(14px) saturate(1.2); backdrop-filter: blur(14px) saturate(1.2);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.14), 0 10px 30px rgba(20,2,6,.35);
  transition: background-color .3s ease, border-color .3s ease, scale .3s cubic-bezier(.2,.8,.2,1);
}
.deck__arrow[data-dir="-1"] { left: calc(50% - var(--cw, 300px) / 2 - 76px); }
.deck__arrow[data-dir="1"] { right: calc(50% - var(--cw, 300px) / 2 - 76px); }
.deck__arrow:active { scale: .94; }
@media (max-width: 700px) {
  .deck__arrow { width: 42px; height: 42px; top: calc(15px + var(--ch, 360px) / 2 - 21px); }
  .deck__arrow[data-dir="-1"] { left: 6px; }
  .deck__arrow[data-dir="1"] { right: 6px; }
}
.deck__arrow svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.5; }
@media (hover: hover) { .deck__arrow:hover { background: rgba(215,185,120,.25); border-color: var(--gold); } }
.deck__arrow:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

.deck__stage {
  position: relative; z-index: 1;
  height: calc(var(--ch, 440px) + 30px);
  perspective: 1500px;
  cursor: grab; touch-action: pan-y;
}
.deck__stage:active { cursor: grabbing; }
.dcard {
  --f: 0;
  position: absolute; left: 50%; top: 15px;
  width: var(--cw, 300px); height: var(--ch, 440px); margin-left: calc(var(--cw, 300px) / -2);
  display: flex; flex-direction: column;
  padding: 10px;
  text-align: left; font: inherit; color: var(--cream);
  background: linear-gradient(160deg, rgba(245,240,230,.13), rgba(245,240,230,.04) 45%, rgba(59,10,16,.35));
  border: 1px solid rgba(245,240,230,.22); border-radius: 22px;
  -webkit-backdrop-filter: blur(16px) saturate(1.25); backdrop-filter: blur(16px) saturate(1.25);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.16), 0 24px 60px rgba(20,2,6,.45);
  transform-origin: 50% 50%;
  will-change: transform;
  cursor: inherit; overflow: hidden;
  transition: border-color .35s ease, box-shadow .35s ease;
}
/* velo que oscurece las tarjetas de los lados (solo opacidad) */
.dcard::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  background: rgba(30,4,9,.5); opacity: calc(1 - var(--f));
  pointer-events: none;
}
.dcard__art {
  position: relative; flex: none;
  aspect-ratio: 300 / 210; border-radius: 14px; overflow: hidden;
  background: #3B0A10;
}
.dcard__art svg { display: block; width: 100%; height: 100%; }
.dcard__n {
  position: absolute; left: 12px; top: 12px;
  padding: 6px 10px; border-radius: 999px;
  font: 500 9px/1 var(--sans); letter-spacing: .16em; color: var(--cream);
  background: rgba(59,10,16,.45); border: 1px solid rgba(245,240,230,.22);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.dcard__body { display: flex; flex-direction: column; gap: 10px; flex: 1; padding: 18px 10px 8px; }
.dcard__title { font: 400 clamp(22px, 1.9vw, 27px)/1.08 var(--serif); opacity: var(--t, 1); }
.dcard__text { font-size: 13px; line-height: 1.55; opacity: calc(.86 * var(--f)); }
.dcard__pick {
  margin-top: auto; align-self: flex-start;
  display: inline-flex; align-items: center; gap: 9px;
  padding: 9px 14px 9px 10px; border-radius: 999px;
  font: 500 10px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase;
  background: rgba(245,240,230,.08); border: 1px solid rgba(245,240,230,.22);
  opacity: var(--f);
  transition: background-color .3s ease, color .3s ease, border-color .3s ease;
}
.dcard__pick::before {
  content: ""; width: 14px; height: 14px; flex: none;
  border: 1px solid currentColor; border-radius: 50%;
}
@media (hover: hover) { .dcard.is-on:hover { border-color: rgba(215,185,120,.7); } }
.dcard:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; }
/* Marcada: borde dorado y pastilla rellena */
.dcard[aria-pressed="true"] { border-color: var(--gold); box-shadow: inset 0 1px 0 rgba(255,255,255,.16), 0 0 0 1px rgba(215,185,120,.35), 0 24px 70px rgba(215,185,120,.22); }
.dcard[aria-pressed="true"] .dcard__pick { background: var(--gold); color: #3B0A10; border-color: var(--gold); }
.dcard[aria-pressed="true"] .dcard__pick::before {
  background: #3B0A10 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M3.5 7.2l2.2 2.2 4.8-4.8' fill='none' stroke='%23D7B978' stroke-width='1.6'/%3E%3C/svg%3E") center / 100% no-repeat;
  border-color: #3B0A10;
}
/* Ilustraciones: se mueven solo en la tarjeta central */
.dcard .mv { animation-play-state: paused; }
.dcard.is-on .mv { animation-play-state: running; }
.mv-spin { transform-box: view-box; transform-origin: 150px 105px; animation: dk-spin 14s linear infinite; }
.mv-spin-fast { transform-box: view-box; transform-origin: 150px 105px; animation: dk-spin 4s linear infinite; }
.mv-pulse { transform-box: fill-box; transform-origin: center; animation: dk-pulse 2.6s ease-in-out infinite; }
.mv-pulse.d1 { animation-delay: .35s; } .mv-pulse.d2 { animation-delay: .7s; } .mv-pulse.d3 { animation-delay: 1.05s; }
.mv-dash { stroke-dasharray: 6 8; animation: dk-dash 3s linear infinite; }
.mv-float { animation: dk-float 5s ease-in-out infinite; }
.mv-float.d1 { animation-delay: -1.6s; } .mv-float.d2 { animation-delay: -3.2s; }
.mv-load { transform-box: fill-box; transform-origin: left center; animation: dk-load 3.2s ease-in-out infinite; }
@keyframes dk-spin { to { transform: rotate(360deg); } }
@keyframes dk-pulse { 0%, 100% { opacity: .25; transform: scale(.96); } 50% { opacity: 1; transform: scale(1); } }
@keyframes dk-dash { to { stroke-dashoffset: -56; } }
@keyframes dk-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@keyframes dk-load { 0% { transform: scaleX(.05); } 60%, 100% { transform: scaleX(.62); } }

.deck__dots { position: relative; z-index: 2; display: flex; justify-content: center; gap: 4px; margin-top: clamp(10px, 2vh, 18px); }
.deck__dot {
  width: 28px; height: 28px; display: grid; place-items: center;
  background: none; border: 0; cursor: pointer;
}
.deck__dot::before {
  content: ""; width: 6px; height: 6px; border-radius: 999px;
  background: rgba(245,240,230,.35);
  transition: width .4s cubic-bezier(.2,.8,.2,1), background-color .3s ease;
}
.deck__dot[aria-current="true"]::before { width: 22px; background: var(--gold); }
.deck__dot:focus-visible { outline: 2px solid var(--gold); outline-offset: -4px; border-radius: 999px; }

.deck__foot {
  display: flex; align-items: center; justify-content: space-between; gap: 16px 24px;
  flex-wrap: wrap; min-height: 44px;
}
.deck__hint, .deck__count { font: 500 10px/1.4 var(--sans); letter-spacing: .14em; text-transform: uppercase; }
.deck__hint { opacity: .7; }
.deck__count { color: var(--gold); margin-left: auto; }
@media (max-width: 640px) {
}

/* ---------- Servicios individuales (bajo los paquetes) ----------
   Título centrado y tarjetas de cristal en rejilla (3 · 2 · 1 columnas), cada una
   con icono dorado de línea, nombre, frase y «Consultar →». El tono del texto lo
   pone setupFlow en cada .solo__item según el degradado de detrás. */
.solo {
  margin-top: clamp(24px, 5vh, 56px);
  padding-top: clamp(40px, 6vh, 72px);
  border-top: 1px solid var(--line);
}
.solo__head { display: grid; justify-items: center; gap: 12px; text-align: center; margin-bottom: clamp(28px, 4vh, 44px); }
.solo__title { font: 400 clamp(34px, 3.2vw, 48px)/1.05 var(--serif); }
.solo__text { max-width: 44ch; font-size: 16px; line-height: 1.55; opacity: .88; }
.solo__list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.solo__item {
  position: relative;
  display: flex; flex-direction: column; gap: 10px;
  padding: 26px 26px 22px;
  border-radius: 18px;
  color: var(--ink);
  background:
    linear-gradient(160deg, rgba(255,255,255,.16), rgba(255,255,255,.03) 55%),
    rgba(245,240,230,.07);
  border: 1px solid rgba(245,240,230,.26);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.3), 0 20px 50px -24px rgba(20,2,6,.4);
  -webkit-backdrop-filter: blur(14px) saturate(1.15); backdrop-filter: blur(14px) saturate(1.15);
  transition: transform .5s var(--ease-out), border-color .4s ease;
}
.solo__item.tone-light {
  background: linear-gradient(160deg, rgba(255,255,255,.45), rgba(255,255,255,.18) 55%), rgba(245,240,230,.25);
  border-color: rgba(59,10,16,.16);
}
.solo__icon {
  width: 44px; height: 44px; padding: 9px; margin-bottom: 6px;
  fill: none; stroke: var(--gold-ink); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round;
  border: 1px solid var(--line); border-radius: 50%;
}
.solo__name { font: 400 clamp(22px, 1.8vw, 26px)/1.15 var(--serif); }
.solo__desc { font-size: 15px; line-height: 1.5; opacity: .88; }
.solo__link {
  margin-top: auto; padding-top: 12px; align-self: flex-start;
  display: inline-flex; align-items: center; gap: 8px;
  font: 500 11px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase;
  color: var(--gold-ink);
}
.solo__link span { transition: translate .4s var(--ease-out); }
.solo__link::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }   /* toda la tarjeta es clicable */
.solo__link:focus-visible { outline: none; }
.solo__item:has(.solo__link:focus-visible) { outline: 2px solid var(--gold); outline-offset: 3px; }
@media (hover: hover) {
  .solo__item:hover { transform: translateY(-4px); border-color: var(--gold); }
  .solo__item:hover .solo__link span { translate: 4px 0; }
}
@media (max-width: 1024px) { .solo__list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .solo__list { grid-template-columns: 1fr; } .solo__item { padding: 22px; } }

/* ---------- La voz detrás: polaroid grande con foto suave + texto y firma ---------- */
.founder {
  position: relative; isolation: isolate;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);   /* texto en la mitad izquierda; la derecha es para la foto */
  align-items: center;
  column-gap: clamp(40px, 7vw, 120px);
  /* a sangre: la sección ocupa todo el ancho; el contenido se centra en 1240px */
  padding-inline: max(var(--gutter), calc((100% - 1240px) / 2));
  padding-block: clamp(180px, 26vh, 280px);
}
/* Foto de la butaca a sangre, en blanco y negro cálido, bajo un velo borgoña (terciopelo).
   Arriba y abajo se funde con el degradado de la página. */
.founder::before, .founder::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  -webkit-mask-image: linear-gradient(180deg, transparent 0, rgba(0,0,0,.35) 10%, rgba(0,0,0,.8) 20%, #000 28%, #000 78%, rgba(0,0,0,.8) 86%, rgba(0,0,0,.35) 94%, transparent 100%);
          mask-image: linear-gradient(180deg, transparent 0, rgba(0,0,0,.35) 10%, rgba(0,0,0,.8) 20%, #000 28%, #000 78%, rgba(0,0,0,.8) 86%, rgba(0,0,0,.35) 94%, transparent 100%);
}
/* Fondo: velo de terciopelo opaco y, encima, la foto de la butaca entera (más alejada),
   a la derecha, en blanco y negro cálido y con los bordes fundidos. */
.founder::after {
  z-index: -2;
  background:
    radial-gradient(70% 80% at 72% 45%, rgba(122,37,51,.6), transparent 70%),
    linear-gradient(90deg, rgba(34,5,10,.94) 0%, rgba(59,10,16,.92) 50%, rgba(50,8,18,.94) 100%);
}
.founder::before {
  z-index: -1;
  /* la foto ocupa la mitad derecha entera y se funde en línea recta (sin forma de óvalo) */
  inset: 0 0 0 42%;
  background: url("../images/equipo/sobre-mi-2.jpg") 50% 34% / cover no-repeat;
  filter: grayscale(1) sepia(.35) contrast(1.05) brightness(.95) blur(1px);
  opacity: .42;
  mix-blend-mode: luminosity;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 30%, #000 100%), linear-gradient(180deg, transparent 0, #000 22%, #000 80%, transparent 100%);
  -webkit-mask-composite: source-in;
          mask-image: linear-gradient(90deg, transparent 0, #000 30%, #000 100%), linear-gradient(180deg, transparent 0, #000 22%, #000 80%, transparent 100%);
          mask-composite: intersect;
}
@media (max-width: 820px) {
  .founder::before { inset: 0; -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 25%, #000 75%, transparent 100%); mask-image: linear-gradient(180deg, transparent 0, #000 25%, #000 75%, transparent 100%); opacity: .3; }
}
.founder__copy { grid-column: 1; }
/* texto en crema sobre el velo oscuro (manda sobre el tono que calcula el degradado) */
.founder .founder__copy {
  --ink: var(--cream); --gold-ink: var(--gold);
  --line: color-mix(in srgb, var(--cream) 28%, transparent);
  color: var(--cream);
}
.founder .founder__copy .accent { color: var(--gold); }
.founder__pics { position: relative; justify-self: center; width: min(400px, 100%); }
.founder__polaroid {
  width: min(400px, 100%);
  padding: 14px 14px 0;
  background: #FFFCF7;
  box-shadow: 0 1px 2px rgba(42,6,12,.08), 0 30px 70px -20px rgba(42,6,12,.45);
  rotate: -2.5deg;
  transition: rotate .8s var(--ease-out);
}
.founder__polaroid--main { width: 100%; }

@media (hover: hover) {
  .founder__pics:hover .founder__polaroid--main { rotate: -1deg; }
}
.founder__polaroid { transition: rotate .8s var(--ease-out), translate .8s var(--ease-out); }
.founder__frame { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: radial-gradient(120% 90% at 50% 30%, #7A2533, #4B0F1E 55%, #2A060C); }
/* Foto suave: desenfoque ligero, tono cálido y un velo de luz, como una foto de película */
.founder__photo {
  --soft: 2.5px;
  position: absolute; inset: -12px; z-index: 1;
  width: calc(100% + 24px); height: calc(100% + 24px); object-fit: cover;
  filter: blur(var(--soft)) sepia(.25) saturate(.85) brightness(1.04) contrast(.92);
}
.founder__frame::after {
  content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: radial-gradient(90% 70% at 50% 35%, rgba(255,240,225,.22), transparent 70%), rgba(122,37,51,.12);
  mix-blend-mode: soft-light;
}
.founder__empty {
  position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 14px;
  font: 500 11px/1 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: rgba(245,240,230,.55);
}
.founder__empty img { height: 80px; width: auto; opacity: .55; }
.founder__cap { display: flex; align-items: center; justify-content: center; gap: 12px; height: 72px; }
.founder__cap img { height: 34px; width: auto; opacity: .9; }
.founder__cap span {
  font: 700 17px/1 "Bodoni Moda", var(--serif); letter-spacing: .2em; margin-right: -.2em; text-transform: uppercase; color: #3B0A10;
  font-optical-sizing: none; font-variation-settings: "opsz" 9;
}
.founder__copy { display: grid; gap: 20px; max-width: 520px; }
.founder__text { font-size: 17px; line-height: 1.65; }
.founder__sign { display: grid; gap: 8px; margin-top: 10px; padding-top: 20px; border-top: 1px solid var(--line); }
.founder__name { font: italic 400 clamp(30px, 2.6vw, 38px)/1 var(--serif); }
.founder__role { font: 500 11px/1.2 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--gold); }   /* dorado fijo: el fondo aquí siempre es oscuro */
@media (max-width: 820px) {
  .founder { grid-template-columns: 1fr; row-gap: 48px; }
  .founder__copy { justify-self: center; text-align: center; }
  .founder__pics { width: min(320px, 86%); }
}

/* ---------- Consulta ---------- */
[data-motion="full"] { scroll-behavior: smooth; }
.contact {
  position: relative; isolation: isolate;
  min-height: 100svh;
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  grid-template-rows: auto 1fr auto;
  column-gap: clamp(32px, 6vw, 96px);
  row-gap: clamp(32px, 6vh, 64px);
  padding: calc(var(--bar-h) + clamp(32px, 8vh, 96px)) var(--gutter) clamp(20px, 3.4vh, 36px);
}
/* Franja de compromisos: cristal, icono dorado en círculo, valor en serif y etiqueta */
.promise-band { padding: clamp(8px, 2vh, 24px) var(--gutter) 0; }
.promise {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr);   /* tantas columnas como compromisos */
  padding: 18px clamp(20px, 3vw, 40px);
  border-radius: 22px;
  background: linear-gradient(160deg, rgba(255,255,255,.5), rgba(255,255,255,.2) 55%), rgba(245,240,230,.3);
  border: 1px solid rgba(59,10,16,.12);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.6), 0 24px 60px -30px rgba(59,10,16,.35);
  -webkit-backdrop-filter: blur(16px) saturate(1.15); backdrop-filter: blur(16px) saturate(1.15);
}
.promise__item { display: flex; align-items: center; justify-content: center; gap: 18px; padding: 6px 16px; }
.promise__item + .promise__item { border-left: 1px solid var(--line); }
.promise__icon {
  flex: none; width: 54px; height: 54px; padding: 14px; border-radius: 50%;
  fill: none; stroke: #84652B; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round;
  background: rgba(215,185,120,.28); border: 1px solid rgba(132,101,43,.25);
}
.promise__text { display: grid; gap: 6px; font-size: 14px; line-height: 1.3; max-width: 24ch; }
.promise__text strong { font: 400 clamp(28px, 2.6vw, 38px)/1 var(--serif); color: var(--ink); }
@media (min-width: 641px) and (max-width: 1180px) {
  .promise { grid-auto-flow: row; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .promise__item { justify-content: flex-start; padding: 14px 18px; }
  .promise__item:nth-child(odd) { border-left: 0; }
  .promise__item:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (max-width: 640px) {
  .promise { grid-auto-flow: row; grid-template-columns: 1fr; padding: 10px 18px; }
  .promise__item { justify-content: flex-start; padding: 14px 4px; }
  .promise__item + .promise__item { border-left: 0; border-top: 1px solid var(--line); }
}

/* Monograma VV en grande detrás de la sección, con muy poco contraste (marca de agua) */
.contact::before {
  content: ""; position: absolute; z-index: -1; pointer-events: none;
  left: 23%; top: 50%;   /* centro aproximado de la columna del texto */
  width: min(34vw, 480px); aspect-ratio: 400 / 588;
  translate: -50% -50%;
  background: url("../img/monograma-borgona.png") center / contain no-repeat;
  opacity: .07;
}
@media (max-width: 820px) {
  .contact::before { left: 50%; top: 3%; width: min(70vw, 340px); translate: -50% 0; }
}
/* Izquierda: título, texto y correo, centrados en altura junto al formulario */
.contact__intro { display: flex; flex-direction: column; gap: clamp(24px, 4vh, 40px); align-self: center; }
.contact__copy { display: flex; flex-direction: column; gap: 18px; }
.contact__title { font: 400 clamp(44px, 5.4vw, 84px)/1.02 var(--serif); letter-spacing: -.015em; }
.contact__text { max-width: 420px; font-size: 16px; line-height: 1.6; }
.contact__mail {
  display: inline-flex; align-items: center; gap: 14px; align-self: flex-start;
  margin-top: 6px; padding: 12px 20px 12px 12px; border-radius: 999px;
  color: inherit; text-decoration: none;
  border: 1px solid var(--line);
  transition: border-color .3s ease, background-color .3s ease;
}
.contact__mail svg { width: 40px; height: 40px; padding: 9px; border-radius: 50%; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linejoin: round; background: color-mix(in srgb, var(--gold) 35%, transparent); }
.contact__mail span { display: grid; gap: 4px; font: 400 clamp(18px, 1.5vw, 22px)/1 var(--serif); }
.contact__mail small { font: 500 10px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; opacity: .7; }
@media (hover: hover) { .contact__mail:hover { border-color: var(--gold-ink); background: rgba(255,255,255,.25); } }

/* Derecha: formulario en una tarjeta de cristal, campos en cajitas redondeadas */
.form {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 18px 18px;
  align-content: start; align-self: start;
  padding: clamp(24px, 3vw, 44px);
  border-radius: 24px;
  background: linear-gradient(160deg, rgba(255,255,255,.5), rgba(255,255,255,.2) 55%), rgba(245,240,230,.3);
  border: 1px solid rgba(59,10,16,.12);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.6), 0 30px 70px -30px rgba(59,10,16,.35);
  -webkit-backdrop-filter: blur(16px) saturate(1.15); backdrop-filter: blur(16px) saturate(1.15);
}
.form__intro { grid-column: 1 / -1; font: 400 clamp(24px, 2vw, 30px)/1.1 var(--serif); margin-bottom: 4px; }
.field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.field--wide { grid-column: 1 / -1; }
.field label { font: 500 11px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; }
.field label small { font: inherit; letter-spacing: inherit; opacity: .55; text-transform: none; }
.field input, .field textarea {
  width: 100%;
  padding: 13px 15px;
  font: 400 16px/1.4 var(--sans);   /* 16px: el móvil no hace zoom al escribir */
  color: var(--ink);
  background: rgba(255,252,247,.7);
  border: 1px solid rgba(59,10,16,.14); border-radius: 12px;
  transition: border-color .25s ease, box-shadow .25s ease, background-color .25s ease;
}
.field textarea { min-height: 120px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: color-mix(in srgb, #3B0A10 38%, transparent); }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--gold-ink); background: #FFFCF7; box-shadow: 0 0 0 3px rgba(215,185,120,.3); }
.field [aria-invalid="true"] { border-color: #A3192B; }
.field__error { min-height: 14px; font-size: 11px; color: #A3192B; }

.field label.check {
  display: flex; gap: 10px; align-items: flex-start; cursor: pointer;
  font: 400 13px/1.5 var(--sans); letter-spacing: 0; text-transform: none;
}
.check input { width: 18px; height: 18px; margin: 1px 0 0; accent-color: #3B0A10; flex: none; }

.form__send { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.form__send .btn { width: 100%; justify-content: center; }
@media (max-width: 1100px) { .form { grid-template-columns: 1fr; } }
.btn--lg { height: 48px; padding: 0 28px; font-size: 11px; }
.btn[disabled] { opacity: .6; cursor: progress; }
.form__status { font-size: 12px; }
.form__status.is-ok { color: var(--gold-ink); }
.form__status.is-error { color: #A3192B; }

.contact__foot {
  grid-column: 1 / -1;
  display: flex; justify-content: space-between; gap: 16px;
  padding-top: 18px; border-top: 1px solid var(--line);
  font-size: 10px; letter-spacing: .08em; text-transform: uppercase;
}
.contact__foot a { color: var(--gold-ink); }
.contact__foot { flex-wrap: wrap; align-items: center; }
.legal-links { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.legal-links a { color: inherit; text-decoration: none; padding: 6px 0; border-bottom: 1px solid transparent; transition: border-color .3s ease; }
.legal-links a:hover { border-color: currentColor; }
.check a { color: inherit; text-underline-offset: 2px; }
.form__legal { margin-top: 10px; font-size: 11px; line-height: 1.55; opacity: .8; }
.form__legal a { color: inherit; text-underline-offset: 2px; }
@media (max-width: 640px) { .contact__foot { flex-direction: column; align-items: flex-start; } }

/* ---------- Tablet: 7 tarjetas ---------- */
@media (max-width: 1024px) {
  :root { --H: clamp(200px, min(42vh, 34vw), 460px); }
  .slot[data-off="-4"], .slot[data-off="4"] { display: none; }
  .pains { grid-template-columns: repeat(2, 1fr); }
  .solutions { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- Menú a pantalla completa (móvil y tablet estrecha) ---------- */
@media (max-width: 820px) {
  .bar .menu-toggle { display: inline-flex; }
  .menu {
    position: fixed; inset: var(--bar-h) 0 0;
    display: flex; align-items: center; justify-content: center;
    background: var(--bg);
    opacity: 0; visibility: hidden;
    transition: opacity .35s ease, visibility .35s;
  }
  .bar.is-open .menu { opacity: 1; visibility: visible; }
  .bar.is-open::before { opacity: 1; }
  .menu ul { flex-direction: column; align-items: center; gap: 22px; }
  .menu__link { font: 400 34px/1.1 var(--serif); letter-spacing: 0; text-transform: none; padding: 6px 0; }
  .menu__link::after { bottom: 0; }
}

/* ---------- Móvil: 5 tarjetas arrastrables ---------- */
@media (max-width: 640px) {
  :root { --H: clamp(200px, 36svh, 380px); --gap: 6px; }
  .slot[data-off="-3"], .slot[data-off="3"] { display: none; }
  .btn { padding: 0 12px; }
  .pains, .solutions { grid-template-columns: 1fr; }
  .rail { cursor: grab; touch-action: pan-y; }
  .rail:active { cursor: grabbing; }
  .mast__name { font-size: clamp(28px, 8.4vw, 36px); letter-spacing: .04em; }
  .slogan { font-size: 22px; }
  .contact { grid-template-columns: 1fr; }
  .form { grid-template-columns: 1fr; }
  .field--wide { grid-column: auto; }
  .btn--lg { width: 100%; }
}

@media (max-height: 760px) and (min-width: 641px) {
  :root { --H: clamp(190px, 36vh, 560px); }
  .mast__name { font-size: clamp(40px, min(4.2vw, 7vh), 64px); }
}

/* ---------- Movimiento reducido ---------- */
[data-motion="reduce"] .card img,
[data-motion="reduce"] .btn { transition: none; }
@media (hover: hover) { [data-motion="reduce"] .card:hover img { transform: none; } }
