@import url("./design-system/colors_and_type.css");

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

:root {
  --c-bg: #000;
  --c-ink: #EFE7DA;
  --c-ink-2: rgba(239,231,218,0.65);
  --c-ink-3: rgba(239,231,218,0.4);
  --c-line: rgba(239,231,218,0.14);
  --c-line-strong: rgba(239,231,218,0.3);
  --c-yellow: #FCC32E;
  --c-yellow-bright: #FFD64A;
  --c-lilac: #AD93B8;
  --c-cream: #EFE7DA;
  --c-cream-2: #F7F1E9;
  --c-danger: #DC2626;
}

html, body, #root {
  background: var(--c-bg);
  color: var(--c-ink);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  min-height: 100vh;
}

/* Blindaje anti-scroll-horizontal: ningun hijo debe poder ensanchar la
   pagina mas alla del viewport (causa tipica en movil con titulares
   editoriales grandes en mayusculas). `overflow-x: clip` no rompe el
   sticky del sidebar como si haria `overflow: hidden` en el ancestro. */
html, body { max-width: 100%; overflow-x: clip; }

/* Imagenes/videos nunca desbordan su contenedor. */
img, video, svg { max-width: 100%; }

/* Los titulares de marca (Agena Display, en mayusculas) son la causa
   principal del overflow en pantallas estrechas: palabras como
   "ELECTRONICO" o "AYUDAMOS" a tamano clamp() grande exceden el ancho.
   Permitimos partir palabra como ultimo recurso para que NUNCA fuercen
   scroll horizontal. */
.display, .gracias-quote, .section-head h2, .ig-card h3, .right h3,
.video-drop h4, .cross .title, .brand {
  overflow-wrap: break-word;
  word-break: break-word;
  -webkit-hyphens: auto;
  hyphens: auto;
}

::selection { background: var(--c-yellow); color: #000; }

a { color: inherit; }

/* ============================================================
   APP SHELL — sidebar (desktop) / topbar (mobile)
   ============================================================ */
.shell {
  min-height: 100vh;
  display: grid;
  /* `minmax(0, 1fr)` (en vez de `1fr`) impide que el contenido de la
     columna principal ensanche el track por encima del viewport: sin el
     min:0, los inputs crema y el logo fuerzan scroll horizontal en movil. */
  grid-template-columns: 280px minmax(0, 1fr);
}
@media (max-width: 960px) {
  .shell { grid-template-columns: minmax(0, 1fr); }
}
/* Los hijos directos del shell (sidebar + main) deben poder encogerse por
   debajo de su contenido para no desbordar la pagina. */
.shell > .sidebar, .shell > .main { min-width: 0; }

/* Sidebar */
.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  border-right: 1px solid var(--c-line);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 32px;
  background: #000;
}
@media (max-width: 960px) {
  .sidebar {
    position: sticky; top: 0;
    height: auto;
    padding: 14px 16px;
    flex-direction: row;
    align-items: center;
    border-right: 0;
    border-bottom: 1px solid var(--c-line);
    z-index: 50;
    gap: 12px;
    /* La topbar NUNCA debe superar el ancho de la pagina ni generar
       scroll horizontal: si el cluster no cabe, se recorta limpiamente
       (los circulos del stepper y la barra de progreso siguen visibles). */
    max-width: 100%;
    overflow: hidden;
  }
  .sidebar .sidebar-meta { display: none; }
}

.brand {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 22px;
  letter-spacing: -0.03em;
  color: var(--c-ink);
  text-decoration: none;
  line-height: 1;
  flex-shrink: 0;
}
/* Logo oficial (SVG blanco) — mismo que el resto del software. */
.brand img {
  height: 26px;
  width: auto;
  display: block;
}
@media (max-width: 960px) {
  /* En la topbar movil el logo se reduce un poco para dejar sitio al
     stepper y al toggle ES/EN sin forzar ancho. */
  .brand img { height: 22px; }
}
/* Estilos del antiguo logo de texto (conservados como fallback; ya no se
   usan porque .brand ahora contiene el <img> oficial). */
.brand .reg {
  font-family: var(--font-sans);
  font-size: 10px;
  font-weight: 600;
  opacity: 0.55;
  letter-spacing: 0;
  vertical-align: super;
}
.brand .mirror { display: inline-block; transform: scaleX(-1); }

.sidebar-eyebrow {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--c-ink-3);
}

/* Steps */
.stepper {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 8px;
}
@media (max-width: 960px) {
  .stepper {
    margin-left: auto;
    flex-direction: row;
    gap: 4px;
    align-items: center;
  }
}
.step {
  display: flex;
  align-items: center;
  gap: 14px;
  background: transparent;
  border: 0;
  padding: 12px 0;
  cursor: pointer;
  font-family: var(--font-sans);
  text-align: left;
  border-bottom: 1px solid var(--c-line);
  transition: padding-left 200ms ease;
}
.step:last-child { border-bottom: 0; }
.step:hover { padding-left: 4px; }
.step .num {
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--c-line-strong);
  font-size: 11px;
  font-weight: 600;
  color: var(--c-ink-2);
  flex-shrink: 0;
}
.step .label {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.005em;
  color: var(--c-ink-2);
}
.step .sublabel {
  display: block;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--c-ink-3);
  margin-top: 2px;
}
.step.active .num { background: var(--c-yellow); color: #000; border-color: var(--c-yellow); }
.step.active .label { color: var(--c-ink); }
.step.done .num { background: var(--c-cream); color: #000; border-color: var(--c-cream); }
.step.done .label { color: var(--c-ink); }

@media (max-width: 960px) {
  .step { padding: 6px; border-bottom: 0; }
  .step .label, .step .sublabel { display: none; }
}

.sidebar-meta {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding-top: 24px;
  border-top: 1px solid var(--c-line);
}
.sidebar-meta .tagline {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--c-ink-3);
  line-height: 1.5;
}
.lang-switch {
  display: inline-flex;
  width: fit-content;
}
.lang-switch button {
  background: transparent;
  border: 1px solid var(--c-line-strong);
  color: var(--c-ink);
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.06em;
  padding: 6px 10px;
  cursor: pointer;
  text-transform: uppercase;
}
.lang-switch button + button { border-left: 0; }
.lang-switch button.active {
  background: var(--c-cream);
  color: #000;
  border-color: var(--c-cream);
}

/* Main column */
.main {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.page {
  flex: 1;
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 64px 64px 96px;
}
@media (max-width: 960px) { .page { padding: 32px 28px 80px; } }
@media (max-width: 540px) { .page { padding: 24px 20px 64px; } }

/* ============================================================
   EDITORIAL HEADER (per-screen)
   ============================================================ */
.eyebrow {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--c-ink-3);
  margin: 0 0 24px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.eyebrow .dot {
  display: inline-block;
  width: 6px; height: 6px;
  background: var(--c-yellow);
  border-radius: 50%;
}

.display {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(3rem, 8vw, 6.5rem);
  line-height: 0.88;
  letter-spacing: -0.04em;
  color: var(--c-ink);
  text-transform: uppercase;
  margin: 0 0 24px;
}
.display .accent { color: var(--c-yellow); }
.display .paren {
  display: inline;
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 0.22em;
  letter-spacing: -0.01em;
  text-transform: none;
  opacity: 0.55;
  margin-left: 12px;
  vertical-align: middle;
}

.display.medium {
  font-size: clamp(2rem, 5vw, 3.5rem);
  line-height: 0.95;
}
.display.small {
  font-size: clamp(1.5rem, 3.5vw, 2.25rem);
  line-height: 1;
}

/* Titular de la INTRO de video ("Queremos / verte / sin filtros").
   La regla base `.display` llega a 6.5rem en escritorio, lo que deja este
   titular de 3 lineas desproporcionado en monitor. Bajamos SOLO el tope del
   clamp a 4.5rem (mantenemos mismo minimo y mismo factor `vw` que la base,
   asi en movil se comporta exactamente igual que cualquier otro `.display`).
   Mantiene la estetica brutalista: misma fuente, peso 900, line-height
   apretado y mayusculas heredadas de `.display`. */
.display--video-intro {
  font-size: clamp(3rem, 8vw, 4.5rem);
}

.lead {
  font-family: var(--font-sans);
  font-size: clamp(1rem, 1.4vw, 1.125rem);
  line-height: 1.55;
  font-weight: 400;
  color: var(--c-ink-2);
  max-width: 56ch;
  margin: 0 0 32px;
}
.lead p + p { margin-top: 14px; }
.lead strong { color: var(--c-ink); font-weight: 600; }

/* Section header within form */
.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  border-top: 1px solid var(--c-line);
  padding-top: 24px;
  margin: 56px 0 28px;
}
.section-head:first-of-type { margin-top: 0; border-top: 0; padding-top: 0; }
.section-head h2 {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  line-height: 1;
  letter-spacing: -0.025em;
  text-transform: uppercase;
  margin: 0;
}
.section-head .num {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--c-ink-3);
}
.section-head .hint {
  font-family: var(--font-sans);
  font-size: 13px;
  color: var(--c-ink-2);
  max-width: 28ch;
  text-align: right;
  line-height: 1.5;
}
@media (max-width: 540px) {
  .section-head { flex-direction: column; align-items: flex-start; gap: 8px; }
  .section-head .hint { text-align: left; max-width: 100%; }
}

/* ============================================================
   12-COL GRID + INPUTS
   ============================================================ */
.grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 14px;
}
.col-2  { grid-column: span 2; }
.col-3  { grid-column: span 3; }
.col-4  { grid-column: span 4; }
.col-5  { grid-column: span 5; }
.col-6  { grid-column: span 6; }
.col-7  { grid-column: span 7; }
.col-8  { grid-column: span 8; }
.col-12 { grid-column: span 12; }
@media (max-width: 720px) {
  .col-2, .col-3, .col-4, .col-5, .col-6, .col-7, .col-8 { grid-column: span 12; }
}

/* Input — minimal, floating label, sharp edges */
.input {
  position: relative;
  background: var(--c-cream);
  display: flex;
  flex-direction: column;
  transition: outline-color 120ms ease;
  outline: 2px solid transparent;
  outline-offset: 0;
}
.input:focus-within {
  outline-color: var(--c-yellow);
}
.input > label {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: rgba(0,0,0,0.55);
  padding: 10px 14px 0;
  display: flex;
  gap: 4px;
  align-items: center;
  pointer-events: none;
}
.input > label .req { color: var(--c-danger); font-weight: 700; }
.input > input,
.input > textarea,
.input > select {
  background: transparent;
  border: 0;
  outline: 0;
  padding: 4px 14px 12px;
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 500;
  color: #000;
  width: 100%;
  letter-spacing: -0.005em;
}
@media (max-width: 540px) {
  .input > input,
  .input > textarea,
  .input > select { font-size: 16px; padding: 4px 14px 14px; }
  .input > label { padding-top: 12px; }
}
.input > textarea {
  min-height: 140px;
  resize: vertical;
  line-height: 1.55;
}
.input > textarea.tall { min-height: 180px; }
.input > select {
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'><path d='M1 1.5L6 6.5L11 1.5' stroke='black' stroke-width='1.5' stroke-linecap='square'/></svg>");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 38px;
}
.input > input::placeholder,
.input > textarea::placeholder {
  color: rgba(0,0,0,0.38);
  font-weight: 400;
}

.help {
  font-size: 12px;
  color: var(--c-ink-3);
  margin: 6px 2px 0;
  line-height: 1.5;
}

/* ============================================================
   TAGS
   ============================================================ */
.tag-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  padding: 8px 14px;
  border: 1px solid var(--c-line-strong);
  background: transparent;
  color: var(--c-ink);
  cursor: pointer;
  transition: all 150ms ease;
  letter-spacing: -0.005em;
}
.tag:hover {
  border-color: var(--c-cream);
  background: rgba(239,231,218,0.04);
}
.tag.active {
  background: var(--c-yellow);
  border-color: var(--c-yellow);
  color: #000;
}
.tag .x {
  display: inline-block;
  width: 10px; height: 10px;
  position: relative;
  opacity: 0;
  transition: opacity 120ms ease;
}
.tag.active .x { opacity: 1; }
.tag.active .x::before, .tag.active .x::after {
  content: ""; position: absolute;
  width: 100%; height: 1.5px;
  background: #000;
  top: 50%; left: 0;
}
.tag.active .x::before { transform: rotate(45deg); }
.tag.active .x::after { transform: rotate(-45deg); }

/* ============================================================
   PHOTO EXAMPLES + DROPZONE
   ============================================================ */
.photo-rules {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 28px;
}
.photo-rules .rule {
  font-family: var(--font-sans);
  font-size: 13px;
  line-height: 1.55;
  color: var(--c-ink-2);
  padding-top: 14px;
  border-top: 1px solid var(--c-line);
}
.photo-rules .rule strong {
  display: block;
  font-weight: 700;
  color: var(--c-ink);
  font-size: 14px;
  margin-bottom: 4px;
}
@media (max-width: 720px) {
  .photo-rules { grid-template-columns: 1fr; gap: 14px; }
}

.photo-examples {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 4px;
  margin-bottom: 24px;
}
.photo-examples .ex {
  aspect-ratio: 3/4;
  background: #1a1a1a;
  position: relative;
  overflow: hidden;
}
.photo-examples .ex::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(transparent 60%, rgba(0,0,0,0.3));
  pointer-events: none;
}
.photo-examples img,
.photo-examples video {
  width: 100%; height: 100%; object-fit: cover; display: block;
  filter: grayscale(0.2) contrast(1.05);
}
@media (max-width: 540px) {
  .photo-examples { grid-template-columns: repeat(3, 1fr); }
  .photo-examples .ex:nth-child(n+4) { display: none; }
}

/* Drop zone — bigger touch area, clear state */
.dropzone {
  border: 1.5px dashed var(--c-line-strong);
  background: rgba(239,231,218,0.02);
  padding: 40px 24px;
  text-align: center;
  cursor: pointer;
  transition: all 180ms ease;
  position: relative;
}
.dropzone:hover, .dropzone.drag {
  border-color: var(--c-yellow);
  background: rgba(252,195,46,0.06);
}
.dropzone .icon {
  width: 44px; height: 44px;
  margin: 0 auto 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid var(--c-cream);
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 28px;
  line-height: 1;
  color: var(--c-cream);
}
.dropzone .title {
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 600;
  color: var(--c-ink);
  margin-bottom: 6px;
}
.dropzone .sub {
  font-family: var(--font-sans);
  font-size: 12px;
  color: var(--c-ink-3);
  letter-spacing: 0.02em;
}
.dropzone input[type=file] { display: none; }

.uploaded {
  display: grid;
  /* Por defecto (tablet/intermedio) la grid es fluida y se adapta sola. En
     escritorio y movil se afina abajo con media queries dedicadas. */
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: 8px;
  margin-top: 14px;
}
/* Escritorio: como el formulario sube EXACTAMENTE 5 fotos, las repartimos en
   5 columnas iguales para que las previews sean grandes y ocupen todo el
   ancho del dropzone (en lugar de quedar pequenas con auto-fill). */
@media (min-width: 961px) {
  .uploaded { grid-template-columns: repeat(5, 1fr); }
}
.uploaded .thumb {
  aspect-ratio: 3/4;
  background: rgba(239,231,218,0.08);
  position: relative;
  overflow: hidden;
}
.uploaded img { width: 100%; height: 100%; object-fit: cover; display: block; }
.uploaded .meta {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 6px 8px;
  background: linear-gradient(transparent, rgba(0,0,0,0.85));
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--c-ink);
  display: flex;
  justify-content: space-between;
  gap: 6px;
}
.uploaded .meta span:first-child {
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  flex: 1;
}
.uploaded .remove {
  position: absolute; top: 6px; right: 6px;
  width: 24px; height: 24px;
  background: rgba(0,0,0,0.75);
  color: var(--c-cream);
  border: 0;
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.uploaded .remove:hover { background: var(--c-danger); }

/* ============================================================
   OVERLAY DE CARGA (envio del formulario: comprimir/subir/procesar)
   Pantalla completa, spinner + texto de fase + barra de progreso.
   Controlado por Alpine via x-show="submitting".
   ============================================================ */
.ju-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(10,10,10,0.78);
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.ju-overlay-box { text-align: center; max-width: 320px; width: 100%; }
.ju-overlay-label {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.04em;
  color: var(--mirr-crema, #EFE7DA);
  margin-top: 18px;
}
/* Spinner: anillo con el acento amarillo de marca */
.ju-spinner {
  width: 46px; height: 46px;
  margin: 0 auto;
  border: 3px solid rgba(239,231,218,0.25);
  border-top-color: var(--mirr-amarillo, #FCC32E);
  border-radius: 50%;
  animation: ju-spin 0.8s linear infinite;
}
@keyframes ju-spin { to { transform: rotate(360deg); } }
/* Barra de progreso */
.ju-progress {
  height: 4px;
  max-width: 220px;
  margin: 16px auto 0;
  background: rgba(239,231,218,0.18);
  overflow: hidden;
}
.ju-progress-bar {
  height: 100%;
  width: 0%;
  background: var(--mirr-amarillo, #FCC32E);
  transition: width 180ms ease;
}
/* Fases sin porcentaje (compresion / procesado en servidor): la barra se
   anima de lado a lado para comunicar "trabajando" sin un % concreto. */
.ju-progress.indeterminate .ju-progress-bar {
  width: 40%;
  transition: none;
  animation: ju-indeterminate 1.1s ease-in-out infinite;
}
@keyframes ju-indeterminate {
  0%   { transform: translateX(-120%); }
  100% { transform: translateX(320%); }
}
/* Respeto a usuarios que reducen el movimiento: sin giro/desplazamiento. */
@media (prefers-reduced-motion: reduce) {
  .ju-spinner { animation-duration: 1.6s; }
  .ju-progress.indeterminate .ju-progress-bar { animation: none; width: 100%; opacity: 0.6; }
}

/* ============================================================
   BUTTONS + ACTION ROW
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 16px 24px;
  border: 0;
  cursor: pointer;
  transition: background 200ms ease, transform 120ms ease, box-shadow 220ms ease;
  text-decoration: none;
  min-height: 52px;
}
.btn-primary { background: var(--c-yellow); color: #000; }
.btn-primary:hover { background: var(--c-yellow-bright); box-shadow: 0 0 0 4px rgba(252,195,46,0.18); }
.btn-primary:active { transform: translateY(1px); }
.btn-primary:disabled { opacity: 0.35; cursor: not-allowed; box-shadow: none; }

.btn-ghost {
  background: transparent;
  color: var(--c-ink);
  border: 1px solid var(--c-line-strong);
}
.btn-ghost:hover { border-color: var(--c-cream); background: rgba(239,231,218,0.04); }

.btn-cream { background: var(--c-cream); color: #000; }
.btn-cream:hover { background: #fff; }

.actions {
  margin-top: 56px;
  padding-top: 28px;
  border-top: 1px solid var(--c-line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.actions .left, .actions .right {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.consent {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-sans);
  font-size: 13px;
  color: var(--c-ink-2);
  cursor: pointer;
  user-select: none;
}
.consent input {
  appearance: none;
  width: 18px; height: 18px;
  border: 1px solid var(--c-line-strong);
  background: transparent;
  cursor: pointer;
  position: relative;
  margin: 0;
}
.consent input:checked { background: var(--c-yellow); border-color: var(--c-yellow); }
.consent input:checked::after {
  content: "";
  position: absolute; inset: 3px;
  background: #000;
  clip-path: polygon(14% 50%, 0 64%, 38% 100%, 100% 22%, 84% 8%, 38% 70%);
}

@media (max-width: 540px) {
  .actions { flex-direction: column-reverse; align-items: stretch; }
  .actions .right { justify-content: stretch; }
  .actions .right .btn { flex: 1; }
}

/* ============================================================
   VIDEO INTRO (split-screen editorial)
   ============================================================ */
.split {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  min-height: calc(100vh - 0px);
}
@media (max-width: 960px) {
  .split { grid-template-columns: 1fr; min-height: 0; }
}
.split .left {
  padding: 64px 64px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-right: 1px solid var(--c-line);
}
.split .right {
  padding: 64px 64px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: var(--c-lilac);
  color: #000;
}
@media (max-width: 960px) {
  .split .left, .split .right { padding: 48px 28px; border-right: 0; }
}
@media (max-width: 540px) {
  .split .left, .split .right { padding: 32px 20px; }
}

.spec-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.spec-list li {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 14px;
  align-items: start;
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.5;
  color: #000;
}
.spec-list li .num {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 22px;
  line-height: 1;
  color: #000;
}
.spec-list li strong { font-weight: 700; }

.right-eyebrow {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(0,0,0,0.6);
  margin-bottom: 24px;
}
.right h3 {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  line-height: 0.95;
  letter-spacing: -0.025em;
  text-transform: uppercase;
  margin: 0 0 28px;
  color: #000;
}

/* Video upload control — clear, intuitive, all states */
.video-upload {
  background: var(--c-cream);
  display: flex;
  flex-direction: column;
  outline: 2px solid transparent;
  transition: outline-color 120ms ease;
}
.video-upload.focus { outline-color: var(--c-yellow); }
.video-upload .head {
  display: flex;
  align-items: stretch;
  border-bottom: 1px solid rgba(0,0,0,0.08);
}
.video-upload .pick {
  background: var(--c-yellow);
  color: #000;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0 22px;
  border: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 56px;
  transition: background 200ms ease;
  flex-shrink: 0;
}
.video-upload .pick:hover { background: var(--c-yellow-bright); }
.video-upload .name {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 18px;
  font-family: var(--font-sans);
  font-size: 14px;
  color: #000;
  min-height: 56px;
  font-weight: 500;
  letter-spacing: -0.005em;
}
.video-upload .name.empty { color: rgba(0,0,0,0.45); }
.video-upload .name .file-icon {
  width: 18px; height: 18px;
  flex-shrink: 0;
}
.video-upload .preview {
  background: #000;
  position: relative;
}
.video-upload .preview video {
  width: 100%;
  display: block;
  max-height: 380px;
}
.video-upload .preview .clear {
  position: absolute;
  top: 12px; right: 12px;
  background: rgba(0,0,0,0.7);
  color: var(--c-cream);
  border: 1px solid rgba(239,231,218,0.3);
  padding: 6px 10px;
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
}
.video-upload .preview .clear:hover { background: var(--c-danger); border-color: var(--c-danger); }

/* Big drop area variant when no video */
.video-drop {
  border: 1.5px dashed var(--c-line-strong);
  background: rgba(239,231,218,0.02);
  padding: 56px 28px;
  text-align: center;
  cursor: pointer;
  transition: all 180ms ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.video-drop:hover, .video-drop.drag {
  border-color: var(--c-yellow);
  background: rgba(252,195,46,0.06);
}
.video-drop .icon-circle {
  width: 64px; height: 64px;
  border: 1.5px solid var(--c-cream);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--c-cream);
}
.video-drop h4 {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 22px;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: var(--c-ink);
  margin: 0;
}
.video-drop p {
  font-size: 13px;
  color: var(--c-ink-3);
  margin: 0;
  max-width: 36ch;
  line-height: 1.5;
}
.video-drop .pick-btn {
  margin-top: 8px;
  background: var(--c-yellow);
  color: #000;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 12px 22px;
  border: 0;
  cursor: pointer;
}
.video-drop .pick-btn:hover { background: var(--c-yellow-bright); }

/* ============================================================
   GRACIAS — split editorial
   ============================================================ */
.gracias-hero {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  border-bottom: 1px solid var(--c-line);
}
@media (max-width: 960px) { .gracias-hero { grid-template-columns: 1fr; } }
.gracias-hero .left {
  padding: 80px 64px;
}
.gracias-hero .right {
  padding: 80px 64px;
  background: var(--c-yellow);
  color: #000;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
@media (max-width: 960px) {
  .gracias-hero .left, .gracias-hero .right { padding: 56px 28px; }
}

/* Titular de las pantallas de GRACIAS (Join Us y Video comparten el mismo
   `.gracias-hero` con un `<h1 class="display">` de 3 lineas "Gracias por /
   compartir / tu reflejo"). La regla base `.display` llega a 6.5rem en
   escritorio y deja el titular desproporcionado en monitor. Bajamos SOLO el
   tope del clamp a 4.5rem (mismo minimo y mismo factor `vw` que la base, asi
   en movil se comporta igual que cualquier otro `.display`). Mantiene la
   estetica brutalista heredada de `.display`. Un unico selector cubre ambas
   pantallas y garantiza que sigan identicas entre si.
   OJO especificidad: `.gracias-hero .display` (2 clases) pisa tambien al
   override movil `.display` (1 clase) de `@media (max-width:540px)`. Por eso
   replicamos su MINIMO (2.25rem) y factor (vw mayor) en los breakpoints de
   abajo, para que en movil el titular quede igual que el resto de `.display`
   y solo cambie el TOPE en escritorio. */
.gracias-hero .display {
  font-size: clamp(3rem, 8vw, 4.5rem);
}
@media (max-width: 540px) {
  .gracias-hero .display { font-size: clamp(2.25rem, 11vw, 3rem); }
}
@media (max-width: 380px) {
  .gracias-hero .display { font-size: clamp(2rem, 12vw, 2.5rem); }
}

.gracias-quote {
  display: block;
  background: var(--c-lilac);
  color: #000;
  padding: 80px 64px;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2rem, 6vw, 4.5rem);
  line-height: 0.95;
  letter-spacing: -0.035em;
  text-transform: uppercase;
  text-decoration: none; /* es un <a>: cancelamos el subrayado del enlace */
  transition: background-color .2s ease;
}
/* La cita es un enlace a modelos.net: feedback de hover sutil (oscurece el
   lila) para que se perciba navegable sin romper la estetica brutalista. */
.gracias-quote:hover { background: #a98fc7; }
/* CTA pequeno bajo la cita ("Descubre mas en modelos.net →"): tipografia
   sans, NO en mayusculas de display, para que lea como accion y no como
   parte de la frase. La flecha refuerza que es navegable. */
.gracias-quote .quote-cta {
  display: block;
  margin-top: 28px;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: clamp(0.95rem, 1.4vw, 1.125rem);
  line-height: 1.2;
  letter-spacing: 0;
  text-transform: none;
  opacity: 0.85;
}
@media (max-width: 960px) {
  .gracias-quote { padding: 56px 28px; }
  .gracias-quote .quote-cta { margin-top: 22px; }
}

.ig-card {
  display: block;
  text-decoration: none;
  color: inherit;
}
.ig-card .ig-eyebrow {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(0,0,0,0.6);
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.ig-card h3 {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2rem, 4vw, 3.25rem);
  line-height: 0.95;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  margin: 0 0 24px;
  color: #000;
}
.ig-card .handle {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border-bottom: 2px solid #000;
  padding-bottom: 4px;
  transition: gap 200ms ease;
}
.ig-card:hover .handle { gap: 18px; }

/* ============================================================
   TOAST + helpers
   ============================================================ */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--c-cream);
  color: #000;
  padding: 12px 18px;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  z-index: 100;
  animation: toast-in 220ms cubic-bezier(0.2,0,0,1) both;
  max-width: 92vw;
}
@keyframes toast-in {
  from { opacity: 0; transform: translate(-50%, 8px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}

.screen { animation: screen-in 320ms cubic-bezier(0.2,0,0,1) both; }
@keyframes screen-in {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* footer mini */
.foot {
  border-top: 1px solid var(--c-line);
  padding: 24px 64px;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  font-family: var(--font-sans);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--c-ink-3);
  font-weight: 600;
  flex-wrap: wrap;
}
@media (max-width: 540px) { .foot { padding: 20px; } }

/* cross-link card to the other flow (NO USADO — reglas de negocio prohiben
   enlaces cruzados entre formularios. Se conserva la clase por si se
   reutiliza como tarjeta interna, pero ninguna vista la enlaza a otro form) */
.cross {
  margin-top: 64px;
  padding: 28px;
  border: 1px solid var(--c-line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  text-decoration: none;
  color: inherit;
  transition: border-color 200ms ease, background 200ms ease;
}
.cross:hover { border-color: var(--c-cream); background: rgba(239,231,218,0.03); }
.cross .label { font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--c-ink-3); margin-bottom: 4px; }
.cross .title { font-family: var(--font-display); font-weight: 900; font-size: 22px; letter-spacing: -0.02em; text-transform: uppercase; }
.cross .arrow {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 900;
}

/* ============================================================
   VALIDATION FEEDBACK
   ============================================================ */
.field-error {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  color: var(--c-danger);
  padding: 4px 14px 8px;
}
.field-error.block { padding: 8px 0 0; }

/* Pista neutra bajo un campo (no es error): p.ej. "Comprobando correo..."
   mientras se valida el email en vivo contra el servidor. */
.field-hint {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 400;
  color: var(--c-ink-3);
  padding: 4px 14px 8px;
}

.input.has-error { outline-color: var(--c-danger); }

.form-error {
  margin-top: 40px;
  padding: 14px 16px;
  border: 1px solid var(--c-danger);
  background: rgba(220,38,38,0.08);
  color: var(--c-cream);
  font-family: var(--font-sans);
  font-size: 13px;
  line-height: 1.5;
}
.form-error strong { color: var(--c-danger); font-weight: 700; }

/* Prominent consent block (Join Us · paso 03) */
.consent-box {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-top: 28px;
  padding: 16px;
  border: 1px solid var(--c-line-strong);
  background: rgba(239,231,218,0.03);
  cursor: pointer;
  user-select: none;
  font-family: var(--font-sans);
  font-size: 13px;
  color: var(--c-ink-2);
  line-height: 1.5;
}
.consent-box.has-error { border-color: var(--c-danger); }
.consent-box input {
  appearance: none;
  width: 18px; height: 18px;
  flex-shrink: 0;
  margin: 2px 0 0;
  border: 1px solid var(--c-line-strong);
  background: transparent;
  cursor: pointer;
  position: relative;
}
.consent-box input:checked { background: var(--c-yellow); border-color: var(--c-yellow); }
.consent-box input:checked::after {
  content: "";
  position: absolute; inset: 3px;
  background: #000;
  clip-path: polygon(14% 50%, 0 64%, 38% 100%, 100% 22%, 84% 8%, 38% 70%);
}
/* Enlace a la politica de privacidad dentro del consentimiento. Mantiene el
   mismo estilo que el texto del banner (mismo tamano y familia heredados,
   color atenuado `--c-ink-2`); solo lo distingue un subrayado fino. Al pasar
   el raton ACLARA al crema pleno `--c-ink` para que se reconozca navegable. */
.consent-link {
  color: var(--c-ink-2);
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-color: var(--c-line-strong);
  transition: color .15s ease, text-decoration-color .15s ease;
}
.consent-link:hover {
  color: var(--c-ink);
  text-decoration-color: var(--c-ink);
}

/* ============================================================
   STEPPER — locked (non-reachable) steps
   ============================================================ */
.step.locked { opacity: 0.4; cursor: default; }
.step.locked:hover { padding-left: 0; }
.step:disabled { cursor: default; background: transparent; }

/* ============================================================
   MOBILE NAV CUES — current step label + progress bar
   ============================================================ */
.mobile-step-label { display: none; }
.step-progress { display: none; }

@media (max-width: 960px) {
  /* Brand on the left, stepper cluster pushed right, lang stays visible */
  .sidebar-eyebrow { display: none; }
  .sidebar-meta-top { margin-left: auto; }

  .mobile-step-label {
    display: flex;
    flex-direction: column;
    gap: 2px;
    line-height: 1.1;
  }
  .mobile-step-label .ms-count {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--c-ink-3);
  }
  .mobile-step-label .ms-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--c-ink);
  }

  .lang-switch { margin-left: 4px; flex-shrink: 0; }

  /* Logo mas compacto en la topbar para que quepa el cluster del stepper. */
  .brand img { height: 20px; }
  .brand { min-width: 0; }
  /* El label de paso puede encogerse y truncar su nombre largo. */
  .mobile-step-label { min-width: 0; }
  .mobile-step-label .ms-name {
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
    max-width: 12ch;
  }
  /* Los circulos del stepper no se deforman. */
  .stepper { flex-shrink: 0; }

  .step-progress {
    display: block;
    position: absolute;
    left: 0; right: 0; bottom: 0;
    height: 3px;
    background: var(--c-line);
  }
  .step-progress > span {
    display: block;
    height: 100%;
    background: var(--c-yellow);
    transition: width 320ms ease;
  }
}

/* En moviles estrechos el texto "Paso X de Y · Nombre" sobra: los circulos
   numerados y la barra de progreso amarilla ya indican el paso. Lo ocultamos
   para liberar ancho y que la topbar nunca desborde. */
@media (max-width: 480px) {
  .mobile-step-label { display: none; }
  .sidebar { gap: 10px; padding: 12px 14px; }
  .brand img { height: 19px; }
  .step .num { width: 22px; height: 22px; }
}

/* ============================================================
   MULTI-SELECT DE IDIOMAS (Video) — combobox accesible
   No existe en el prototipo (alli el idioma era texto libre). Lo
   anadimos para casar con el backend, que espera idioma_nativo[] como
   array de IDs. Estilo coherente con .input / .tag de la marca.
   ============================================================ */
.multiselect { position: relative; }
.multiselect .ms-box {
  background: var(--c-cream);
  outline: 2px solid transparent;
  transition: outline-color 120ms ease;
  display: flex;
  flex-direction: column;
}
.multiselect .ms-box.has-error { outline-color: var(--c-danger); }
.multiselect .ms-box > label {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: rgba(0,0,0,0.55);
  padding: 10px 14px 0;
  display: flex;
  gap: 4px;
}
.multiselect .ms-box > label .req { color: var(--c-danger); font-weight: 700; }
.multiselect .ms-search {
  background: transparent;
  border: 0;
  outline: 0;
  padding: 4px 14px 12px;
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 500;
  color: #000;
  width: 100%;
}
@media (max-width: 540px) { .multiselect .ms-search { font-size: 16px; } }
.multiselect .ms-search::placeholder { color: rgba(0,0,0,0.38); font-weight: 400; }
.multiselect .ms-dropdown {
  position: absolute;
  left: 0; right: 0;
  top: 100%;
  z-index: 30;
  max-height: 240px;
  overflow-y: auto;
  background: var(--c-cream-2);
  border-top: 1px solid rgba(0,0,0,0.1);
  box-shadow: 0 12px 24px rgba(0,0,0,0.4);
}
.multiselect .ms-option {
  padding: 10px 14px;
  font-family: var(--font-sans);
  font-size: 14px;
  color: #000;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
}
.multiselect .ms-option:hover { background: rgba(252,195,46,0.25); }
.multiselect .ms-option.sel { background: rgba(252,195,46,0.4); font-weight: 600; }
.multiselect .ms-empty {
  padding: 12px 14px;
  font-family: var(--font-sans);
  font-size: 13px;
  color: rgba(0,0,0,0.5);
}
/* Chips DENTRO del recuadro crema (.ms-box): misma sangria horizontal
   (14px) que el label y el buscador, justo encima del input de busqueda. */
.multiselect .ms-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 8px 14px 0;
}
.multiselect .ms-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  padding: 6px 10px 6px 12px;
  background: var(--c-yellow);
  color: #000;
}
.multiselect .ms-chip button {
  background: transparent;
  border: 0;
  color: #000;
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
  padding: 0;
}

/* ============================================================
   ENDURECIMIENTO RESPONSIVE — eliminar scroll horizontal en movil
   ============================================================
   Causas detectadas y corregidas:
   1) Hijos de grid/flex con `min-width:auto` (por defecto) que NO se
      encogen y desbordan con contenido largo (emails, placeholders del
      multiselect de idiomas, nombres de fichero en las miniaturas).
   2) Titulares display en mayusculas demasiado grandes para <400px.
   3) Topbar movil (marca + stepper + ES/EN) sin permiso de wrap. */

/* Los hijos del grid de 12 col y sus inputs deben poder encogerse. */
.grid > [class*="col-"] { min-width: 0; }
.input, .multiselect, .multiselect .ms-box { min-width: 0; max-width: 100%; }
.input > input,
.input > textarea,
.input > select,
.multiselect .ms-search { max-width: 100%; }

/* El texto de las miniaturas de fotos no debe empujar el ancho. */
.uploaded .meta span:first-child { min-width: 0; }

/* Columnas del split / gracias: que puedan encoger en su grid. */
.split > .left, .split > .right,
.gracias-hero > .left, .gracias-hero > .right { min-width: 0; }

@media (max-width: 540px) {
  /* Titulares mas contenidos: bajamos el minimo del clamp para que una
     sola palabra larga en mayusculas no exceda los ~360px de un movil. */
  .display { font-size: clamp(2.25rem, 11vw, 3rem); }
  .display.medium { font-size: clamp(1.75rem, 8vw, 2.25rem); }
  .display.small { font-size: clamp(1.35rem, 6vw, 1.75rem); }
  .gracias-quote { font-size: clamp(1.6rem, 9vw, 2.4rem); }
  .section-head h2, .ig-card h3, .right h3 { font-size: clamp(1.4rem, 7vw, 2rem); }

  /* Topbar: permitir que el cluster envuelva en vez de desbordar. */
  .sidebar { flex-wrap: wrap; gap: 12px; }
  /* El parentesis decorativo de los titulares pasa a su propia linea
     para no estirar el ancho. */
  .display .paren { display: block; margin-left: 0; margin-top: 6px; }

  /* Previews de fotos mas pequenas y comodas en movil: 3 por fila con un
     minimo bajo para que no acaparen la pantalla. */
  .uploaded {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
  }
}

@media (max-width: 380px) {
  .display { font-size: clamp(2rem, 12vw, 2.5rem); }
  .page { padding: 20px 16px 56px; }
}
