/* Landing del taller · Stefano Bonanno × ORIGEN
   Paleta del brand book de ORIGEN: Green 1 #212718, Green 2 #515929, blanco y negro.
   El fondo cálido y los tonos intermedios son derivados para lectura en pantalla. */

:root {
  --verde-1: #212718;      /* principal (brand) */
  --verde-2: #515929;      /* acento (brand) */
  --verde-1-suave: #2c3321;
  --crema: #f4f0e7;        /* fondo cálido */
  --crema-2: #ebe5d8;
  --papel: #fbf9f4;
  --tinta: #1b1f14;
  --tinta-suave: #4a503f;
  --sobre-oscuro: #f1ede3;
  --sobre-oscuro-suave: #c9c8b6;
  --linea: #d5cebd;
  --linea-oscura: rgba(241, 237, 227, .2);
  --error: #9b2c1f;
  --foco: #b98a2e;

  --f-titulo: "Montserrat", "Avenir Next", "Helvetica Neue", Arial, sans-serif;
  --f-texto: "Source Serif 4", Georgia, "Times New Roman", serif;

  --ancho: 1120px;
  --ancho-texto: 720px;
  --gutter: 20px;
  --radio: 6px;
  --s-seccion: clamp(64px, 11vw, 128px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
body {
  margin: 0;
  background: var(--crema);
  color: var(--tinta);
  font-family: var(--f-texto);
  font-size: clamp(1.0625rem, .35vw + 1rem, 1.1875rem);
  line-height: 1.6;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { font-family: var(--f-titulo); line-height: 1.15; margin: 0 0 .6em; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
a { color: inherit; }

:focus-visible { outline: 3px solid var(--foco); outline-offset: 3px; border-radius: 2px; }
[tabindex="-1"]:focus { outline: none; }

.saltar {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--papel); color: var(--tinta); padding: 10px 16px; border-radius: var(--radio);
  font-family: var(--f-titulo); font-weight: 600; text-decoration: none;
}
.saltar:focus { top: 12px; }
.visualmente-oculto {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

.contenedor { width: 100%; max-width: var(--ancho); margin: 0 auto; padding: 0 var(--gutter); }
.contenedor--texto { max-width: calc(var(--ancho-texto) + 2 * var(--gutter)); }
@media (min-width: 720px) { :root { --gutter: 32px; } }

/* ---------- Botones ---------- */
.boton {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 52px; padding: 14px 28px;
  font-family: var(--f-titulo); font-weight: 600; font-size: 1rem; letter-spacing: .01em;
  text-decoration: none; border: 2px solid transparent; border-radius: 999px; cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s, transform .2s;
}
.boton:hover { transform: translateY(-1px); }
.boton--claro { background: var(--sobre-oscuro); color: var(--verde-1); }
.boton--claro:hover { background: #fff; }
.boton--oscuro { background: var(--verde-1); color: var(--sobre-oscuro); }
.boton--oscuro:hover { background: var(--verde-2); }
.boton--borde { background: transparent; color: var(--verde-1); border-color: var(--verde-1); }
.boton--borde:hover { background: var(--verde-1); color: var(--sobre-oscuro); }
.boton--chico { min-height: 44px; padding: 10px 20px; font-size: .9375rem; }
.boton--ancho { width: 100%; }
.boton[disabled] { opacity: .65; cursor: progress; transform: none; }

.etiqueta {
  display: inline-block; font-family: var(--f-titulo); font-weight: 600; font-size: .8125rem;
  letter-spacing: .14em; text-transform: uppercase; color: var(--sobre-oscuro-suave); margin-bottom: 1.25rem;
}
.etiqueta--oscura { color: var(--verde-2); }
.micro { font-family: var(--f-titulo); font-size: .875rem; line-height: 1.5; color: var(--sobre-oscuro-suave); margin: .9rem 0 0; }
.micro--oscuro { color: var(--tinta-suave); text-align: center; }

/* ---------- Aviso de modo demo ---------- */
.aviso-demo {
  background: #e9d9a6; color: #2a240f; text-align: center; padding: 8px var(--gutter);
  font-family: var(--f-titulo); font-size: .875rem; line-height: 1.4;
}

/* ---------- Cabecera ---------- */
.cabecera { background: var(--verde-1); color: var(--sobre-oscuro); border-bottom: 1px solid var(--linea-oscura); position: relative; z-index: 1; }
.cabecera__fila { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px; }
.marca { display: flex; align-items: center; gap: 14px; text-decoration: none; min-width: 0; }
.marca__logo { height: 26px; width: auto; display: block; }
.marca__sep { width: 1px; height: 22px; background: var(--linea-oscura); }
.marca__origen { width: 76px; height: auto; opacity: .85; }
@media (max-width: 559px) {
  .marca__sep, .marca__origen { display: none; }
  .marca__logo { height: 20px; }
  .cabecera .boton--chico { padding: 8px 14px; font-size: .875rem; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background: var(--verde-1); color: var(--sobre-oscuro);
  padding: clamp(56px, 10vw, 120px) 0 clamp(64px, 11vw, 128px);
}
.trama {
  position: absolute; color: var(--verde-2); opacity: .55; pointer-events: none;
  width: 900px; height: 900px; right: -420px; top: -160px;
}
@media (min-width: 900px) { .trama { right: -260px; top: -120px; width: 1000px; height: 1000px; } }
.hero__cuerpo { position: relative; }
.hero__titulo {
  font-size: clamp(2.375rem, 6.2vw, 4.75rem); font-weight: 700; line-height: 1.04;
  letter-spacing: -.025em; max-width: 13ch; margin-bottom: .45em;
}
.hero__bajada {
  font-family: var(--f-texto); font-weight: 600; font-size: clamp(1.375rem, 1.6vw + 1rem, 1.875rem);
  line-height: 1.3; max-width: 28em; color: var(--sobre-oscuro); margin-bottom: 1.6rem;
}
.hero__texto { max-width: 36em; }
.hero__reconocimiento { font-size: 1.0625rem; color: var(--sobre-oscuro-suave); margin-bottom: 1.1rem; }
.hero__promesa {
  font-size: 1.0625rem; color: var(--sobre-oscuro); margin: 0;
  border-left: 2px solid var(--foco); padding-left: 16px;
}

.datos {
  list-style: none; padding: 0; margin: 2.25rem 0 0; display: grid; gap: 0;
  border-top: 1px solid var(--linea-oscura); max-width: 640px;
  font-family: var(--f-titulo); font-weight: 500; font-size: 1rem;
}
.datos li { display: grid; grid-template-columns: 6.5rem 1fr; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--linea-oscura); }
.datos__clave { font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; color: var(--sobre-oscuro-suave); padding-top: .2em; }
.hora-local { font-family: var(--f-titulo); font-size: .875rem; color: var(--sobre-oscuro-suave); margin: .9rem 0 0; }
.hero__accion { margin-top: 2.25rem; }

/* ---------- Secciones ---------- */
.seccion { padding: var(--s-seccion) 0; }
.seccion--clara { background: var(--papel); }
.seccion--oscura { background: var(--verde-1); color: var(--sobre-oscuro); }
.titulo-seccion { font-size: clamp(1.75rem, 3.2vw, 2.625rem); font-weight: 700; letter-spacing: -.02em; }
.titulo-seccion--centro { text-align: center; margin-bottom: 1.5em; }
.grande { font-family: var(--f-titulo); font-size: 1.25rem; font-weight: 500; }
.nota { font-size: .975em; color: var(--tinta-suave); border-left: 2px solid var(--verde-2); padding-left: 16px; }
.destacado { font-size: 1.1875em; line-height: 1.5; margin: 1.25rem 0 1.5rem; }
.nota--clara { color: var(--sobre-oscuro-suave); border-color: var(--sobre-oscuro-suave); }

.dos-columnas { display: grid; gap: 32px; }
@media (min-width: 900px) { .dos-columnas { grid-template-columns: 5fr 7fr; gap: 72px; align-items: start; } }

/* Reconocimiento */
.situaciones { list-style: none; counter-reset: s; padding: 0; margin: 2.5rem 0; }
.situaciones li {
  counter-increment: s; position: relative; padding: 22px 0 22px 56px;
  border-top: 1px solid var(--linea); font-size: 1.125em;
}
.situaciones li:last-child { border-bottom: 1px solid var(--linea); }
.situaciones li::before {
  content: counter(s, decimal-leading-zero); position: absolute; left: 0; top: 26px;
  font-family: var(--f-titulo); font-weight: 600; font-size: .8125rem; letter-spacing: .1em; color: var(--verde-2);
}
.cierre-editorial { font-style: italic; font-size: 1.1875em; color: var(--tinta-suave); max-width: 34em; }

/* Idea central */
.idea { background: var(--crema-2); padding: var(--s-seccion) 0; }
.idea__grilla { display: grid; gap: 40px; align-items: center; }
.idea__foto { margin: 0; border-radius: var(--radio); overflow: hidden; aspect-ratio: 4 / 5; background: var(--linea); }
.idea__foto img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 899px) { .idea__foto { aspect-ratio: 16 / 10; } }
@media (min-width: 900px) { .idea__grilla { grid-template-columns: 5fr 7fr; gap: 80px; } }
.cita { margin: 0 0 2rem; }
.cita p {
  font-family: var(--f-texto); font-weight: 600; font-size: clamp(1.625rem, 2.8vw, 2.375rem);
  line-height: 1.25; letter-spacing: -.01em; color: var(--verde-1); margin: 0;
}
/* La parte de la frase que nombra el patrón. */
.cita .resaltado {
  font-style: italic; text-decoration: underline; text-decoration-color: var(--foco);
  text-decoration-thickness: 3px; text-underline-offset: .18em; text-decoration-skip-ink: auto;
}
.cita p::before { content: ""; display: block; width: 48px; height: 3px; background: var(--verde-2); margin-bottom: 24px; }

/* Pasos */
.pasos { list-style: none; padding: 0; margin: 0; display: grid; gap: 40px; }
@media (min-width: 820px) { .pasos { grid-template-columns: repeat(3, 1fr); gap: 48px; } }
.paso { border-top: 2px solid var(--verde-1); padding-top: 20px; }
.paso__num { font-family: var(--f-titulo); font-weight: 600; font-size: .8125rem; letter-spacing: .12em; color: var(--verde-2); }
.paso__titulo { font-size: 1.5rem; margin: .35em 0 .45em; }
.paso p { color: var(--tinta-suave); margin: 0; }
.resultado {
  margin: clamp(48px, 7vw, 72px) auto 0; max-width: 46em; text-align: center;
  font-size: 1.125em; font-style: italic;
}
.resultado__clave {
  display: block; font-style: normal; font-family: var(--f-titulo); font-weight: 600; font-size: .75rem;
  letter-spacing: .14em; text-transform: uppercase; color: var(--verde-2); margin-bottom: .75rem;
}

/* Listas */
.lista-marcas { list-style: none; padding: 0; margin: 0; }
.lista-marcas li { position: relative; padding: 18px 0 18px 36px; border-top: 1px solid var(--linea); }
.lista-marcas li:last-child { border-bottom: 1px solid var(--linea); }
.lista-marcas li::before {
  content: ""; position: absolute; left: 2px; top: 1.45em; width: 14px; height: 14px;
  border: 2px solid var(--verde-2); border-radius: 50% 50% 48% 52% / 46% 46% 54% 54%;
}
.lista-simple { list-style: none; padding: 0; margin: 0 0 1.75rem; font-family: var(--f-titulo); font-weight: 500; }
.lista-simple li { padding: 14px 0; border-top: 1px solid var(--linea-oscura); }
.lista-simple li:last-child { border-bottom: 1px solid var(--linea-oscura); }

/* Sobre Stefano */
.sobre { display: grid; gap: 40px; }
.sobre__texto { max-width: var(--ancho-texto); }
@media (min-width: 900px) { .sobre:has(.sobre__foto) { grid-template-columns: 5fr 7fr; gap: 72px; align-items: center; } }
.sobre__foto { margin: 0; border-radius: var(--radio); overflow: hidden; aspect-ratio: 4 / 5; background: var(--linea); }
.sobre__foto img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
@media (max-width: 899px) { .sobre__foto { aspect-ratio: 1 / 1; max-width: 520px; } }
.roles { font-family: var(--f-titulo); font-weight: 500; letter-spacing: .06em; color: var(--verde-2); margin-top: -.4em; margin-bottom: 1.5em; }

/* ORIGEN (secundario) */
.origen { background: var(--papel); padding: clamp(48px, 7vw, 72px) 0; border-top: 1px solid var(--linea); border-bottom: 1px solid var(--linea); }
.origen__fila { display: grid; gap: 20px; }
@media (min-width: 640px) { .origen__fila { grid-template-columns: 56px 1fr; gap: 28px; } }
.origen__icono { width: 48px; height: 48px; }
.origen__titulo { font-size: 1.25rem; font-weight: 600; }
.origen p { color: var(--tinta-suave); font-size: .975em; }
.origen p:last-child { margin-bottom: 0; }

/* ---------- Inscripción ---------- */
.inscripcion { background: var(--verde-1); color: var(--sobre-oscuro); padding: var(--s-seccion) 0; scroll-margin-top: 0; }
.inscripcion__grilla { display: grid; gap: 36px; }
@media (min-width: 960px) { .inscripcion__grilla { grid-template-columns: 4fr 6fr; gap: 72px; align-items: start; } .inscripcion__intro { position: sticky; top: 32px; } }
.resumen { margin: 1.5rem 0 0; font-family: var(--f-titulo); }
.resumen div { display: grid; grid-template-columns: 6.5rem 1fr; gap: 12px; padding: 12px 0; border-top: 1px solid var(--linea-oscura); }
.resumen div:last-child { border-bottom: 1px solid var(--linea-oscura); }
.resumen dt { font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; color: var(--sobre-oscuro-suave); padding-top: .2em; }
.resumen dd { margin: 0; font-weight: 500; }

.tarjeta-form { background: var(--papel); color: var(--tinta); border-radius: 10px; padding: clamp(22px, 4vw, 44px); }
.obligatorios { font-family: var(--f-titulo); font-size: .8125rem; color: var(--tinta-suave); }
.campo { margin: 0 0 1.5rem; padding: 0; border: 0; min-width: 0; }
.campo label, .campo legend { display: block; font-family: var(--f-titulo); font-weight: 600; font-size: .9375rem; line-height: 1.4; margin-bottom: .5rem; padding: 0; }
.req { color: var(--error); }
.opcional { font-weight: 500; color: var(--tinta-suave); }
.campo__ayuda { font-size: .9375rem; color: var(--tinta-suave); margin: -.2rem 0 .5rem; }
input[type="text"], input[type="email"], textarea {
  width: 100%; font: inherit; font-size: 1.0625rem; color: var(--tinta);
  background: #fff; border: 1.5px solid #a9a28f; border-radius: var(--radio); padding: 12px 14px; min-height: 50px;
}
textarea { resize: vertical; min-height: 96px; }
input:focus-visible, textarea:focus-visible { outline: 3px solid var(--foco); outline-offset: 1px; border-color: var(--verde-1); }
[aria-invalid="true"] { border-color: var(--error) !important; }
.opcion, .campo .opcion {
  display: flex; align-items: flex-start; gap: 12px; font-family: var(--f-texto); font-weight: 400; font-size: 1.0625rem;
  padding: 10px 0; margin: 0; cursor: pointer;
}
.campo--linea .opcion { display: inline-flex; margin-right: 28px; }
.opcion input { width: 20px; height: 20px; margin: .2em 0 0; flex: none; accent-color: var(--verde-1); }
.campo__error { color: var(--error); font-family: var(--f-titulo); font-size: .875rem; font-weight: 600; margin: .45rem 0 0; }
.campo__error::before { content: "⚠ "; }
.error-resumen {
  border: 2px solid var(--error); border-radius: var(--radio); padding: 14px 16px; margin-bottom: 1.5rem;
  font-family: var(--f-titulo); font-size: .9375rem; color: var(--error);
}
.error-resumen p { margin: 0 0 .4rem; font-weight: 700; }
.error-resumen ul { margin: 0; padding-left: 1.2em; }
.error-resumen a { color: inherit; }
.trampa { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.privacidad { font-size: .9375rem; color: var(--tinta-suave); border-top: 1px solid var(--linea); padding-top: 1.25rem; margin: .5rem 0 1.5rem; }
.privacidad a { color: var(--verde-1); }
.privacidad .opcion { font-size: .9375rem; color: var(--tinta); }
.estado { font-family: var(--f-titulo); font-size: .9375rem; margin: 1rem 0 0; min-height: 1px; }
.estado--error { color: var(--error); font-weight: 600; }

.confirmacion__marca {
  width: 48px; height: 48px; border-radius: 50%; background: var(--verde-1); color: var(--sobre-oscuro);
  display: grid; place-items: center; font-size: 1.375rem; margin-bottom: 1rem;
}
.confirmacion__titulo { font-size: 1.625rem; }
.confirmacion--demo { border: 2px dashed #a2862f; border-radius: var(--radio); padding: 20px; background: #f7efd6; }
.calendario { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.5rem; }
.confirmacion a:not(.boton) { color: var(--verde-1); }

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--linea); margin-top: 1.5rem; }
.faq details { border-bottom: 1px solid var(--linea); }
.faq summary {
  list-style: none; cursor: pointer; padding: 20px 40px 20px 0; position: relative;
  font-family: var(--f-titulo); font-weight: 600; font-size: 1.0625rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 6px; top: 50%; transform: translateY(-50%); font-size: 1.5rem; font-weight: 500; color: var(--verde-2); }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 0 0 20px; color: var(--tinta-suave); max-width: 40em; }

/* ---------- Cierre y pie ---------- */
.cierre { background: var(--verde-2); color: var(--sobre-oscuro); padding: var(--s-seccion) 0; text-align: center; }
.cierre__frase { max-width: 18ch; margin-left: auto; margin-right: auto; }
.cierre__frase { font-size: clamp(1.875rem, 4.2vw, 3.25rem); line-height: 1.1; letter-spacing: -.02em; margin-bottom: .7em; }
.cierre__datos { font-family: var(--f-titulo); font-weight: 500; font-size: 1rem; margin-bottom: 2rem; }

.pie { background: var(--verde-1); color: var(--sobre-oscuro-suave); padding: 40px 0; font-family: var(--f-titulo); font-size: .875rem; }
.pie__fila { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 20px; align-items: center; }
.pie p { margin: 0; }
.pie__nombre img { height: 24px; width: auto; display: block; margin-bottom: 10px; }
.pie__legal { display: flex; gap: 20px; flex-wrap: wrap; }
.pie__legal a { color: var(--sobre-oscuro); }

/* ---------- CTA fijo en móvil ---------- */
.cta-movil {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  background: rgba(33, 39, 24, .96); border-top: 1px solid var(--linea-oscura);
  transform: translateY(110%); transition: transform .25s ease;
}
.cta-movil.visible { transform: none; }
@media (min-width: 900px) { .cta-movil { display: none; } }
@media (max-width: 899px) { body.con-cta-movil .pie { padding-bottom: 104px; } }

/* ---------- Página legal ---------- */
.legal h2 { font-size: 1.25rem; margin: 2.25rem 0 .75rem; }
.legal ul { padding-left: 1.2em; margin: 0 0 1rem; }
.legal li { margin-bottom: .5rem; }
.legal a { color: var(--verde-1); }
.legal__fecha { font-family: var(--f-titulo); font-size: .875rem; color: var(--tinta-suave); margin-bottom: 2rem; }
.legal__volver { margin-top: 3rem; }
.legal__volver a { color: var(--sobre-oscuro); }
.pendiente { background: #e9d9a6; color: #2a240f; padding: 0 .3em; border-radius: 3px; font-family: var(--f-titulo); font-size: .875em; }
.consentimiento { margin-bottom: 1rem; }
.consentimiento .campo__ayuda { margin: .35rem 0 0 2rem; }
.consentimiento .campo__error { margin-left: 2rem; }
