/* ===== Colores y medidas ===== */
:root {
  --papel: #F4F2ED;
  --papel-claro: #FBFAF7;
  --tinta: #121216;
  --tinta-suave: #55555E;
  --linea: #DCD8CE;
  --azul: #1F3DFF;
  --azul-hondo: #1530D6;
  --azul-claro: #DDE2FF;
  --blanco: #FFFFFF;

  --fuente-titular: "Bricolage Grotesque", "Helvetica Neue", Arial, sans-serif;
  --fuente-texto: "Inter", "Helvetica Neue", Arial, sans-serif;
  --fuente-mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --margen: 20px;
  --radio: 22px;
  --ancho: 1080px;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; background: var(--papel); }

body {
  margin: 0;
  background: var(--papel);
  color: var(--tinta);
  font-family: var(--fuente-texto);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, p, ul, ol, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
img { display: block; max-width: 100%; }
a { color: inherit; -webkit-tap-highlight-color: transparent; }

.contenedor {
  width: 100%;
  max-width: var(--ancho);
  margin: 0 auto;
  padding-left: var(--margen);
  padding-right: var(--margen);
}

/* ===== Cabecera ===== */
.cabecera { padding-top: 22px; padding-bottom: 6px; }

.logo {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--fuente-titular);
  font-weight: 700;
  font-size: 19px;
  letter-spacing: -0.01em;
  text-decoration: none;
}
.logo-marca { width: 26px; height: 26px; flex: none; }
.logo-marca .marca-esquinas path { stroke-width: 13; }

/* ===== Botón WhatsApp ===== */
.boton {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 58px;
  padding: 0 28px;
  border-radius: 999px;
  background: var(--azul);
  color: var(--blanco);
  font-weight: 600;
  font-size: 17px;
  text-decoration: none;
  box-shadow: 0 1px 0 rgba(0,0,0,.08), 0 10px 24px -10px rgba(31,61,255,.55);
  transition: transform .18s ease, background-color .18s ease;
  user-select: none;
}
.boton:active { transform: scale(.97); }
@media (hover: hover) { .boton:hover { background: var(--azul-hondo); } }
.boton:focus-visible { outline: 3px solid var(--tinta); outline-offset: 3px; }

.icono-boton { position: relative; display: inline-flex; flex: none; }
.chat-punto { display: none; } /* solo se ve en la versión multicolor */
.icono-chat {
  width: 21px; height: 21px;
  fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round;
}

.boton-claro { background: var(--blanco); color: var(--azul); box-shadow: 0 10px 30px -12px rgba(0,0,0,.35); }
@media (hover: hover) { .boton-claro:hover { background: var(--papel-claro); } }
.boton-claro:focus-visible { outline-color: var(--blanco); }

/* ===== Marca (punto + enfoque) ===== */
.marca { display: block; width: 100%; height: auto; overflow: visible; }
.marca-punto { fill: var(--azul); transform-origin: 100px 100px; }
.marca-esquinas path {
  fill: none; stroke: var(--tinta); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round;
}

/* ===== 1. Hero ===== */
.hero {
  padding-top: 18px;
  padding-bottom: 56px;
}

.hero h1 {
  font-family: var(--fuente-titular);
  font-weight: 700;
  font-size: clamp(2.6rem, 10.5vw, 5.4rem);
  line-height: 0.98;
  letter-spacing: -0.035em;
  text-wrap: balance;
}
.hero h1 em { font-style: normal; color: var(--azul); }
.resalte { font-style: normal; color: var(--azul); }
.que-es .resalte { color: #A9B4FF; }

.hero-sub {
  margin-top: 20px;
  font-size: 18px;
  color: var(--tinta-suave);
  max-width: 34em;
  text-wrap: pretty;
}

.hero-accion { margin-top: 28px; }
.hero-accion .boton { width: 100%; }
.hero-etiqueta {
  display: inline-block;
  margin-bottom: 18px;
  padding: 6px 13px;
  border: 1px solid var(--linea);
  border-radius: 999px;
  background: var(--papel-claro);
  font-size: 13px;
  font-weight: 600;
}
.hero-nota { margin-top: 14px; font-size: 14px; color: var(--tinta-suave); text-align: center; }

/* Entrada de la marca: el punto aparece y las esquinas enfocan */
@media (prefers-reduced-motion: no-preference) {
  .cabecera .marca-punto { animation: punto .7s cubic-bezier(.2,.8,.2,1) both .1s; }
  .cabecera .marca-esquinas path { animation: enfoca .9s cubic-bezier(.2,.8,.2,1) both .25s; transform-origin: 100px 100px; }
}
@keyframes punto { from { transform: scale(.4); opacity: 0; } to { transform: scale(1); opacity: 1; } }
@keyframes enfoca { from { transform: scale(1.35); opacity: 0; } to { transform: scale(1); opacity: 1; } }

/* ===== Bloques comunes ===== */
.bloque { padding-top: 48px; padding-bottom: 48px; }
.bloque-quien { padding-top: 40px; margin-top: 8px; }

.etiqueta {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-family: var(--fuente-texto);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--tinta-suave);
}
.etiqueta span { text-wrap: balance; }
.etiqueta::before {
  content: "";
  margin-top: .5em;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--azul);
  flex: none;
}

.titulo {
  text-wrap: balance;
  font-family: var(--fuente-titular);
  font-weight: 700;
  font-size: clamp(2rem, 7vw, 3.2rem);
  line-height: 1.02;
  letter-spacing: -0.03em;
}

/* ===== 2. Creatividad ===== */
.creatividad { border-top: 1px solid var(--linea); }
.creatividad .frase {
  margin-top: 20px;
  font-family: var(--fuente-titular);
  font-weight: 500;
  font-size: clamp(1.6rem, 6vw, 2.6rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  max-width: 22em;
  text-wrap: balance;
}
.creatividad .texto {
  margin-top: 22px;
  max-width: 36em;
  color: var(--tinta-suave);
  font-size: 18px;
  text-wrap: pretty;
}

/* ===== 3. Qué es ===== */
.que-es {
  background: var(--tinta);
  color: var(--papel);
  border-radius: var(--radio);
  padding: 40px 26px 44px;
}
.que-es .etiqueta { color: #A9A9B3; }
.que-es p {
  margin-top: 20px;
  font-family: var(--fuente-titular);
  font-weight: 500;
  font-size: clamp(1.4rem, 5.4vw, 2.2rem);
  line-height: 1.2;
  letter-spacing: -0.015em;
  max-width: 24em;
  text-wrap: pretty;
}
.que-es p + p { color: #B9BCD9; }

/* ===== 4. Qué te llevas ===== */
.llevas { display: grid; gap: 14px; margin-top: 28px; }
.tarjeta {
  background: var(--papel-claro);
  border: 1px solid var(--linea);
  border-radius: var(--radio);
  padding: 24px 22px 26px;
}
.tarjeta-top { display: flex; align-items: center; justify-content: space-between; }
.num { font-family: var(--fuente-titular); font-weight: 700; font-size: 15px; color: var(--azul); }
.icono {
  width: 44px; height: 44px;
  fill: none; stroke: var(--tinta); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}
.tarjeta p {
  margin-top: 22px;
  font-family: var(--fuente-titular);
  font-weight: 500;
  font-size: 22px;
  line-height: 1.2;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

/* ===== 5. Cómo es ===== */
.como-texto {
  margin-top: 18px;
  font-family: var(--fuente-titular);
  font-weight: 500;
  font-size: clamp(1.4rem, 5.4vw, 2rem);
  line-height: 1.2;
  letter-spacing: -0.015em;
  max-width: 22em;
  text-wrap: balance;
}
.sesiones { position: relative; display: grid; gap: 22px; margin-top: 34px; }
.sesiones::before {
  content: "";
  position: absolute;
  left: 21px; top: 22px; bottom: 22px;
  border-left: 2px solid var(--azul);
}
.sesion { position: relative; display: grid; grid-template-columns: 44px 1fr; gap: 16px; align-items: start; }
.sesion-num {
  display: grid; place-items: center;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--azul);
  color: var(--blanco);
  font-family: var(--fuente-titular);
  font-weight: 700;
  font-size: 17px;
}
.sesion p { padding-top: 1px; font-size: 17px; line-height: 1.4; text-wrap: pretty; }
.sesion strong {
  display: block;
  margin-bottom: 2px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--azul);
}
.sesion.despues .sesion-num { background: var(--papel); border: 2px dashed var(--azul); }
.sesion.despues p { padding-top: 10px; color: var(--tinta-suave); }

/* ===== Fotos (con iniciales si falta la imagen) ===== */
.foto {
  position: relative;
  overflow: hidden;
  background: var(--azul-claro);
}
.foto img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.9) contrast(1.02); }
.foto.sin-foto::after {
  content: attr(data-iniciales);
  position: absolute; inset: 0;
  display: grid; place-items: center;
  font-family: var(--fuente-titular);
  font-weight: 700;
  color: var(--azul);
  font-size: 40px;
  letter-spacing: -0.02em;
}

/* ===== 6. Personas ===== */
.personas {
  display: grid;
  /* En el móvil, dos por fila; la tercera centrada debajo */
  grid-template-columns: repeat(4, 1fr);
  gap: 22px 14px;
  margin-top: 26px;
}
.persona { grid-column: span 2; }
.persona:nth-child(3):last-child { grid-column: 2 / span 2; }
.foto-persona { aspect-ratio: 1; border-radius: 16px; transition: transform .35s cubic-bezier(.2,.8,.2,1), box-shadow .35s ease; }
/* En ordenador, la foto crece un poco al pasar el ratón */
@media (hover: hover) {
  .persona:hover .foto-persona { transform: scale(1.05); box-shadow: 0 14px 30px -14px rgba(0,0,0,.35); }
}
.foto-persona.sin-foto::after { font-size: 24px; }
.persona-nombre { margin-top: 10px; font-family: var(--fuente-titular); font-weight: 700; font-size: 16px; line-height: 1.2; letter-spacing: -0.01em; }
.persona-oficio { margin-top: 2px; font-size: 13.5px; line-height: 1.3; color: var(--tinta-suave); }

/* ===== 7. Quién soy ===== */
.bloque-quien { border-top: 1px solid var(--linea); }
.quien {
  display: grid;
  gap: 20px;
  align-items: start;
  margin-top: 24px;
}
/* Foto como prueba de imprenta */
.prueba { --margen-prueba: 24px; position: relative; padding: var(--margen-prueba); }
.foto-yara { width: 100%; aspect-ratio: 9 / 10; border-radius: 0; }
/* Marcas de corte: líneas finas que salen de cada esquina de la foto, sin tocarla */
.corte { position: absolute; width: var(--margen-prueba); height: var(--margen-prueba); }
.corte::before, .corte::after { content: ""; position: absolute; background: var(--tinta); }
.corte::before { width: 1px; height: calc(100% - 7px); }
.corte::after { height: 1px; width: calc(100% - 7px); }
.corte-si { left: 0; top: 0; }
.corte-si::before { right: -0.5px; top: 0; }
.corte-si::after { bottom: -0.5px; left: 0; }
.corte-sd { right: 0; top: 0; }
.corte-sd::before { left: -0.5px; top: 0; }
.corte-sd::after { bottom: -0.5px; right: 0; }
.corte-ii { left: 0; bottom: 0; }
.corte-ii::before { right: -0.5px; bottom: 0; }
.corte-ii::after { top: -0.5px; left: 0; }
.corte-id { right: 0; bottom: 0; }
.corte-id::before { left: -0.5px; bottom: 0; }
.corte-id::after { top: -0.5px; right: 0; }
/* Mira de registro a la izquierda */
.registro {
  position: absolute; left: 3px; top: 50%;
  width: 17px; height: 17px; margin-top: -8.5px;
  fill: none; stroke: var(--tinta); stroke-width: 1;
}
/* Barra de control de color con los colores de la marca, a la derecha */
.barra-color {
  position: absolute; right: 7px; top: 50%; transform: translateY(-50%);
  display: grid; gap: 2px;
}
.barra-color i { display: block; width: 9px; height: 9px; }
.barra-color i:nth-child(1) { background: #FF2E74; }
.barra-color i:nth-child(2) { background: #FF7A2F; }
.barra-color i:nth-child(3) { background: #F7B500; }
.barra-color i:nth-child(4) { background: #22C76F; }
.barra-color i:nth-child(5) { background: #2F7BFF; }
.barra-color i:nth-child(6) { background: var(--tinta); }
/* Ficha técnica bajo la foto */
.quien-pie {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 0 var(--margen-prueba, 24px);
  margin-top: -4px;
  font-family: var(--fuente-mono);
  font-size: 10px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--tinta-suave);
}
.foto-yara img { object-position: center 42%; }
.foto-yara.sin-foto::after { font-size: 40px; }
.quien-nombre {
  font-family: var(--fuente-titular);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -0.015em;
}
.quien-texto p + p { margin-top: 14px; }
.quien-texto .quien-nombre + p { margin-top: 10px; }
.quien-texto p:not(.quien-nombre) { font-size: 17px; max-width: 34em; text-wrap: pretty; }
.dato {
  display: inline-block;
  margin-top: 14px;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--azul-claro);
  color: var(--azul-hondo);
  font-size: 13px;
  font-weight: 600;
}

/* ===== 8. Preguntas frecuentes (desplegables) ===== */
.preguntas { margin-top: 24px; max-width: 46em; border-bottom: 1px solid var(--linea); }
.pregunta { border-top: 1px solid var(--linea); }
.pregunta summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 0;
  cursor: pointer;
  list-style: none;
  font-family: var(--fuente-titular);
  font-weight: 600;
  font-size: 19px;
  line-height: 1.3;
  letter-spacing: -0.01em;
  -webkit-tap-highlight-color: transparent;
}
.pregunta summary::-webkit-details-marker { display: none; }
.pregunta summary:focus-visible { outline: 2px solid var(--tinta); outline-offset: 4px; border-radius: 4px; }
/* Un «+» que se convierte en «×» al abrir */
.pregunta-icono { position: relative; flex: none; width: 16px; height: 16px; transition: transform .3s cubic-bezier(.2,.8,.2,1); }
.pregunta-icono::before, .pregunta-icono::after {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 50%;
  height: 2px;
  margin-top: -1px;
  border-radius: 2px;
  background: var(--tinta);
}
.pregunta-icono::after { transform: rotate(90deg); }
.pregunta[open] .pregunta-icono { transform: rotate(45deg); }
.pregunta p { margin: -4px 0 0; padding-bottom: 20px; color: var(--tinta-suave); font-size: 16px; line-height: 1.55; text-wrap: pretty; }
@media (prefers-reduced-motion: no-preference) {
  .pregunta[open] p { animation: abrir .3s ease; }
}
@keyframes abrir { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
@media (hover: hover) { .pregunta summary:hover { color: var(--tinta-suave); } }

/* ===== 9. Cierre ===== */
.cierre { background: var(--azul); color: var(--blanco); margin-top: 24px; overflow: hidden; }
.cierre-dentro { position: relative; padding-top: 72px; padding-bottom: 80px; }
.cierre-punto {
  position: absolute;
  right: -70px; top: -70px;
  width: 200px; height: 200px;
  border-radius: 50%;
  background: var(--azul-hondo);
}
.cierre h2 {
  position: relative;
  font-family: var(--fuente-titular);
  font-weight: 700;
  font-size: clamp(2.4rem, 10vw, 4.6rem);
  line-height: 1;
  letter-spacing: -0.035em;
  max-width: 10em;
}
.cierre p { position: relative; margin-top: 16px; font-size: 19px; color: #E4E8FF; }
.cierre .boton { position: relative; margin-top: 30px; width: 100%; }
.cierre .cierre-nota { margin-top: 14px; font-size: 14px; color: #C9D0FF; text-align: center; }

/* ===== Pie ===== */
.pie { padding-top: 32px; padding-bottom: 40px; font-size: 13px; color: var(--tinta-suave); line-height: 1.5; }
.pie p { max-width: 40em; }
.firma { display: flex; align-items: center; gap: 8px; margin-top: 18px; font-weight: 600; color: var(--tinta); }
.firma .logo-marca { width: 18px; height: 18px; }
.firma .logo-marca .marca-esquinas path { stroke-width: 16; }

/* ===== Botón fijo (solo móvil) ===== */
.fijo {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  padding: 12px var(--margen) calc(12px + env(safe-area-inset-bottom));
  background: linear-gradient(to top, var(--papel) 60%, rgba(244,242,237,0));
  transform: translateY(110%);
  transition: transform .28s cubic-bezier(.2,.8,.2,1);
  z-index: 10;
  pointer-events: none;
}
.fijo.activo { transform: none; pointer-events: auto; }
.fijo .boton { width: 100%; }

/* ===== Aparición al hacer scroll ===== */
@media (prefers-reduced-motion: no-preference) {
  .aparece { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s cubic-bezier(.2,.8,.2,1); }
  .aparece.visto, .sin-animacion .aparece { opacity: 1; transform: none; }
}

.sin-js { padding: 40px 20px; font-size: 20px; }

/* ===== Tablet y escritorio ===== */
@media (min-width: 768px) {
  :root { --margen: 40px; --radio: 26px; }

  .cabecera { padding-top: 32px; }
  .hero { padding-top: 36px; padding-bottom: 110px; }
  .hero h1 { max-width: 12em; }
  .hero-sub { font-size: 20px; }
  .hero-accion .boton { width: auto; }
  .hero-nota { text-align: left; }

  .bloque { padding-top: 72px; padding-bottom: 72px; }
  .bloque-quien { padding-top: 56px; }
  .creatividad .frase { margin-top: 28px; }

  .que-es { padding: 64px 56px 68px; }

  .llevas { grid-template-columns: repeat(2, 1fr); gap: 18px; margin-top: 40px; max-width: 860px; }
  .tarjeta { padding: 28px 26px 32px; display: flex; flex-direction: column; }
  .tarjeta p { margin-top: 48px; }

  .sesiones { grid-template-columns: repeat(5, 1fr); gap: 24px; margin-top: 44px; }
  .sesiones::before { left: 28px; top: 28px; bottom: auto; right: calc((100% - 96px) / 5 - 28px); border-left: 0; border-top: 2px solid var(--azul); }
  .sesion { grid-template-columns: 1fr; gap: 18px; }
  .sesion-num { width: 56px; height: 56px; font-size: 20px; }
  .sesion.despues p { padding-top: 0; }

  .personas { grid-template-columns: repeat(3, 1fr); gap: 24px; max-width: 860px; margin: 40px 0 0; }
  .persona, .persona:nth-child(3):last-child { grid-column: auto; }
  .persona-nombre { font-size: 16px; }
  .persona-oficio { font-size: 13.5px; }

  .quien { grid-template-columns: 420px 1fr; gap: 48px; max-width: 1000px; margin-top: 36px; }
  .foto-yara { aspect-ratio: 4 / 5; }
  .quien-nombre { font-size: 26px; }
  .quien-texto p:not(.quien-nombre) { font-size: 18px; }

  .cierre-dentro { padding-top: 110px; padding-bottom: 120px; }
  .cierre-punto { width: 420px; height: 420px; right: -120px; top: -160px; }
  .cierre .boton { width: auto; }
  .cierre .cierre-nota { text-align: left; }

  .fijo { display: none; }
}
