/* Glow Up Express — Interior Designer MX
   Paleta de marca: vino sobre crema, con bloque rosa como en su feed. */
:root {
  --papel: #f7efe6;
  --papel-2: #efe3d6;
  --hoja: #fffaf4;
  --vino: #8b162b;
  --vino-2: #6e1021;
  --rosa: #f4b6b6;
  --tinta: #2b1418;
  --tinta-2: #6b5458;
  --linea: #e3d2c4;
  --ok: #2f6b4f;
  --display: "Bodoni Moda", "Didot", "Bodoni 72", Georgia, serif;
  --texto: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ancho: 1180px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }

body {
  margin: 0;
  background: var(--papel);
  color: var(--tinta);
  font: 400 17px/1.55 var(--texto);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
[hidden] { display: none !important; }
a { color: var(--vino); }
:focus-visible { outline: 3px solid var(--vino); outline-offset: 3px; border-radius: 2px; }

.envoltura { width: 100%; max-width: var(--ancho); margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .envoltura { padding: 0 32px; } }

/* ---------- Barra superior ---------- */
.barra { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 18px; padding-bottom: 18px; }
.barra .firma { font-family: var(--display); font-size: 19px; font-weight: 500; color: var(--tinta); text-decoration: none; letter-spacing: -0.01em; }
.barra .firma small { display: block; font-family: var(--texto); font-size: 12px; color: var(--tinta-2); letter-spacing: 0.02em; font-weight: 500; }
.barra .contacto { font-weight: 600; font-size: 15px; text-decoration: none; display: inline-flex; align-items: center; gap: 8px; padding: 10px 0; }
.barra .contacto svg { width: 18px; height: 18px; }

/* ---------- Tipografía ---------- */
h1, h2 { font-family: var(--display); font-weight: 500; letter-spacing: -0.02em; margin: 0; text-wrap: balance; }
h2 { font-size: clamp(34px, 7vw, 58px); line-height: 1.02; color: var(--vino); }
h3 { font-family: var(--texto); font-weight: 650; font-size: 18px; line-height: 1.3; margin: 0; }
p { margin: 0; }
.lede { font-size: 19px; line-height: 1.5; max-width: 34ch; }
@media (min-width: 960px) { .lede { font-size: 21px; } }
.pequeno { font-size: 14px; color: var(--tinta-2); line-height: 1.5; }

/* ---------- Botones ---------- */
.boton {
  appearance: none; border: 0; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  background: var(--vino); color: var(--hoja);
  font: 600 17px/1 var(--texto); text-decoration: none;
  padding: 19px 28px; border-radius: 3px; min-height: 56px;
  transition: background .15s;
}
.boton:hover { background: var(--vino-2); }
.boton:disabled { opacity: .5; cursor: default; }
.boton.secundario { background: transparent; color: var(--vino); box-shadow: inset 0 0 0 1.5px var(--vino); }
.boton.secundario:hover { background: rgba(139, 22, 43, .06); }
.boton.ancho { width: 100%; }
.boton svg { width: 20px; height: 20px; flex: none; }
.enlace { background: none; border: 0; padding: 12px 0; font: 600 16px var(--texto); color: var(--tinta-2); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Hero ---------- */
.hero { display: grid; gap: 40px; padding-top: 8px; padding-bottom: 72px; }
@media (min-width: 960px) { .hero { grid-template-columns: 1.05fr 1fr; align-items: center; gap: 64px; padding-top: 24px; padding-bottom: 112px; } }
.marca {
  font-size: clamp(64px, 18vw, 136px);
  line-height: .86;
  padding-bottom: .08em;
  color: var(--vino);
  font-variation-settings: "opsz" 96;
  margin-left: -0.04em;
}
.marca span { display: block; white-space: nowrap; }
.hero-texto { display: grid; gap: 26px; justify-items: start; }
.precio { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; }
.precio .cifra { font-family: var(--display); font-size: 44px; line-height: 1; color: var(--tinta); font-weight: 500; }
.precio .tachado { font-family: var(--display); font-size: 26px; color: var(--tinta-2); text-decoration-thickness: 1.5px; }
.precio-bloque { display: grid; gap: 10px; }
.promo { background: var(--rosa); color: var(--tinta); border-radius: 4px; padding: 10px 14px; font-size: 15px; line-height: 1.45; max-width: 46ch; }
.precio .detalle { color: var(--tinta-2); font-size: 16px; max-width: 26ch; line-height: 1.4; }
.hero .boton { width: 100%; }
@media (min-width: 560px) { .hero .boton { width: auto; } }

/* ---------- Comparador antes / después ---------- */
.comparador { margin: 0; }
.comparador .lienzo { position: relative; padding: 0 18px 18px 0; }
.comparador .bloque-rosa { position: absolute; inset: 18px 0 0 18px; background: var(--rosa); }
.comparador .marco {
  position: relative; overflow: hidden; aspect-ratio: 4 / 5; background: var(--papel-2);
  --pos: 50%;
}
.comparador.horizontal .marco { aspect-ratio: 3 / 2; }
.comparador img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.comparador .antes { clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.comparador input[type="range"] {
  position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; z-index: 3;
}
.comparador .linea { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; margin-left: -1px; background: var(--hoja); z-index: 2; pointer-events: none; }
.comparador .perilla {
  position: absolute; top: 50%; left: var(--pos); width: 46px; height: 46px; margin: -23px 0 0 -23px; z-index: 2;
  border-radius: 50%; background: var(--hoja); color: var(--vino); display: grid; place-items: center; pointer-events: none;
  box-shadow: 0 2px 10px rgba(43, 20, 24, .25);
}
.comparador .perilla svg { width: 22px; height: 22px; }
.comparador input[type="range"]:focus-visible ~ .perilla { outline: 3px solid var(--vino); outline-offset: 3px; }
.comparador .etq { position: absolute; bottom: 14px; z-index: 2; font: 600 13px var(--texto); background: rgba(255, 250, 244, .92); color: var(--tinta); padding: 6px 10px; border-radius: 2px; pointer-events: none; }
.comparador .etq-antes { left: 14px; }
.comparador .etq-despues { right: 14px; }
.comparador figcaption { margin-top: 14px; font-size: 14px; color: var(--tinta-2); }
.comparador .vacio { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 32px; color: var(--tinta-2); font-family: var(--display); font-style: italic; font-size: 22px; line-height: 1.3; }

/* ---------- Secciones ---------- */
.seccion { padding-top: 72px; padding-bottom: 72px; border-top: 1px solid var(--linea); }
@media (min-width: 960px) { .seccion { padding-top: 104px; padding-bottom: 104px; } }
.seccion > h2 { margin-bottom: 40px; max-width: 16ch; }

.pasos ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 36px; }
@media (min-width: 720px) { .pasos ol { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .pasos ol { grid-template-columns: repeat(4, 1fr); gap: 32px; } }
.pasos li { display: grid; gap: 10px; align-content: start; }
.pasos .num { font-family: var(--display); font-size: 64px; line-height: .9; color: var(--rosa); font-weight: 500; -webkit-text-stroke: 1px var(--vino); }
.pasos p { color: var(--tinta-2); max-width: 32ch; }

.alcance .columnas { display: grid; gap: 40px; }
@media (min-width: 820px) { .alcance .columnas { grid-template-columns: 1fr 1fr; gap: 64px; } }
.alcance ul { list-style: none; margin: 14px 0 0; padding: 0; }
.alcance li { padding: 12px 0; border-bottom: 1px solid var(--linea); display: flex; gap: 12px; align-items: baseline; }
.alcance li::before { content: ""; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--vino); transform: translateY(-2px); }
.alcance .no li::before { background: transparent; box-shadow: inset 0 0 0 1.5px var(--tinta-2); }
.alcance .nota-ae { margin-top: 18px; color: var(--tinta-2); max-width: 40ch; }

/* ---------- Diagnóstico ---------- */
.diagnostico { background: var(--papel-2); border-top: 0; }
.diagnostico .cabeza { display: grid; gap: 14px; margin-bottom: 32px; max-width: 640px; align-content: start; }
@media (min-width: 1040px) {
  .diag-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 56px; align-items: start; }
  .diag-grid .cabeza { position: sticky; top: 32px; margin-bottom: 0; }
}
.panel { background: var(--hoja); border-radius: 18px; padding: 28px 20px 24px; max-width: 760px; box-shadow: 0 1px 0 var(--linea); }
@media (min-width: 720px) { .panel { padding: 44px 48px 36px; } }
.progreso { display: flex; align-items: center; gap: 16px; margin-bottom: 28px; }
.progreso .riel { flex: 1; height: 4px; background: var(--papel-2); border-radius: 2px; overflow: hidden; }
.progreso .riel span { display: block; height: 100%; width: 0; background: var(--vino); transition: width .3s ease; }
.progreso .contador { font-size: 14px; color: var(--tinta-2); white-space: nowrap; font-variant-numeric: tabular-nums; }

.paso { border: 0; margin: 0; padding: 0; min-width: 0; }
.paso[hidden] { display: none; }
.paso legend { font-family: var(--display); font-weight: 500; font-size: clamp(28px, 6vw, 38px); line-height: 1.08; letter-spacing: -0.015em; padding: 0; margin-bottom: 10px; color: var(--tinta); text-wrap: balance; }
.paso .ayuda { color: var(--tinta-2); margin-bottom: 22px; }

.opciones { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chip span {
  display: inline-flex; align-items: center; min-height: 48px; padding: 11px 18px;
  border-radius: 999px; box-shadow: inset 0 0 0 1.5px var(--linea); background: var(--hoja);
  font-weight: 550; cursor: pointer; user-select: none; transition: background .12s, color .12s, box-shadow .12s;
}
.chip span:hover { box-shadow: inset 0 0 0 1.5px var(--tinta-2); }
.chip input:checked + span { background: var(--vino); color: var(--hoja); box-shadow: none; }
.chip input:focus-visible + span { outline: 3px solid var(--vino); outline-offset: 2px; }
.chip input:disabled + span { opacity: .4; cursor: default; }

.looks { display: grid; gap: 10px; margin-top: 20px; }
@media (min-width: 620px) { .looks { grid-template-columns: 1fr 1fr; } }
.look { position: relative; }
.look input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.look span { display: grid; gap: 4px; padding: 16px 18px; border-radius: 10px; box-shadow: inset 0 0 0 1.5px var(--linea); cursor: pointer; height: 100%; transition: box-shadow .12s, background .12s; }
.look b { font-family: var(--display); font-weight: 600; font-size: 21px; }
.look small { color: var(--tinta-2); font-size: 15px; line-height: 1.4; }
.look span:hover { box-shadow: inset 0 0 0 1.5px var(--tinta-2); }
.look input:checked + span { box-shadow: inset 0 0 0 2px var(--vino); background: #fbeceb; }
.look input:focus-visible + span { outline: 3px solid var(--vino); outline-offset: 2px; }

.campo { display: grid; gap: 8px; margin-top: 18px; }
.campo label { font-weight: 600; font-size: 15px; }
.campo input, .campo textarea {
  font: 400 17px/1.4 var(--texto); color: var(--tinta); background: var(--hoja);
  border: 1.5px solid var(--linea); border-radius: 6px; padding: 14px 14px; width: 100%; min-height: 52px;
}
.campo textarea { min-height: 96px; resize: vertical; }
.campo input:focus, .campo textarea:focus { outline: none; border-color: var(--vino); box-shadow: 0 0 0 3px rgba(139, 22, 43, .14); }
.campo .pequeno { margin-top: -2px; }

/* Foto */
.tips { margin: 6px 0 22px; padding: 0; list-style: none; display: grid; gap: 8px; color: var(--tinta-2); }
.tips li { display: flex; gap: 10px; }
.tips li::before { content: "·"; color: var(--vino); font-weight: 700; }
.zona-foto {
  display: grid; place-items: center; gap: 10px; text-align: center; cursor: pointer;
  border: 1.5px dashed var(--tinta-2); border-radius: 12px; padding: 40px 20px; min-height: 220px; background: var(--papel);
  transition: border-color .12s, background .12s;
}
.zona-foto:hover, .zona-foto.arrastrando { border-color: var(--vino); background: #fbeceb; }
.zona-foto b { font-size: 18px; }
.zona-foto svg { width: 34px; height: 34px; color: var(--vino); }
.zona-foto input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.vista-foto { display: grid; gap: 12px; }
.vista-foto img { width: 100%; max-height: 420px; object-fit: contain; background: var(--papel-2); border-radius: 10px; }
.vista-foto .fila { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }

/* Resumen */
.resumen { display: grid; gap: 18px; }
.resumen .texto-diag { font-family: var(--display); font-size: 22px; line-height: 1.4; }
.resumen ul { margin: 0; padding-left: 20px; display: grid; gap: 6px; }
.resumen .total { display: flex; justify-content: space-between; align-items: baseline; padding: 16px 0; border-top: 1px solid var(--linea); border-bottom: 1px solid var(--linea); }
.resumen .total b { font-family: var(--display); font-size: 34px; font-weight: 500; }
.resumen .miniatura { width: 100%; max-height: 200px; object-fit: cover; border-radius: 8px; }

.navegacion { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 30px; }
.navegacion .boton { flex: 1; }
@media (min-width: 620px) { .navegacion .boton { flex: 0 0 auto; min-width: 220px; } }
.error { color: var(--vino); background: #fbeceb; border-radius: 6px; padding: 12px 14px; margin-top: 16px; font-weight: 550; }
.error[hidden] { display: none; }

/* ---------- Asesoría Express ---------- */
.ae { display: grid; gap: 40px; }
@media (min-width: 960px) { .ae { grid-template-columns: 1fr 1fr; align-items: center; gap: 64px; } }
.ae .fotos { display: grid; grid-template-columns: 1.4fr 1fr; gap: 10px; align-items: end; }
.ae .fotos img { width: 100%; aspect-ratio: 3/4; object-fit: cover; }
.ae .fotos img:first-child { aspect-ratio: 4/5; }
.ae .texto { display: grid; gap: 22px; justify-items: start; }
.ae .texto h2 { max-width: 14ch; }
.ae .incluye { margin: 0; padding: 0; list-style: none; columns: 1; }
.ae .incluye li { padding: 8px 0; border-bottom: 1px solid var(--linea); }

/* ---------- Preguntas ---------- */
.preguntas details { border-bottom: 1px solid var(--linea); max-width: 760px; }
.preguntas summary { cursor: pointer; list-style: none; padding: 20px 40px 20px 0; position: relative; font-weight: 600; font-size: 18px; }
.preguntas summary::-webkit-details-marker { display: none; }
.preguntas summary::after { content: "+"; position: absolute; right: 4px; top: 14px; font-family: var(--display); font-size: 30px; color: var(--vino); transition: transform .2s; }
.preguntas details[open] summary::after { transform: rotate(45deg); }
.preguntas details p { padding: 0 0 22px; color: var(--tinta-2); max-width: 62ch; }

/* ---------- Pie ---------- */
.pie { border-top: 1px solid var(--linea); padding-top: 40px; padding-bottom: 48px; display: grid; gap: 10px; color: var(--tinta-2); font-size: 15px; }
.pie .firma { font-family: var(--display); font-size: 24px; color: var(--tinta); }

/* ---------- Página de resultado ---------- */
.estado { padding-top: 24px; padding-bottom: 80px; }
.estado[hidden] { display: none; }
.estado .titulo { font-family: var(--display); font-weight: 500; font-size: clamp(40px, 9vw, 76px); line-height: .98; color: var(--vino); max-width: 14ch; margin-bottom: 20px; }
.estado .intro { max-width: 46ch; font-size: 18px; margin-bottom: 30px; }
.cargando { height: 3px; background: var(--papel-2); overflow: hidden; max-width: 520px; border-radius: 2px; margin: 28px 0 18px; }
.cargando span { display: block; height: 100%; width: 0; background: var(--vino); transition: width 1s linear; }
.frase { font-family: var(--display); font-style: italic; font-size: 22px; color: var(--tinta-2); min-height: 1.4em; }
.listo { display: grid; gap: 40px; }
@media (min-width: 960px) { .listo { grid-template-columns: 1.25fr 1fr; gap: 56px; align-items: start; } }
.listo .acciones { display: grid; gap: 12px; }
.listo .lado { display: grid; gap: 28px; }
.ficha { background: var(--hoja); border-radius: 14px; padding: 22px; display: grid; gap: 10px; }
.ficha dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; font-size: 15px; }
.ficha dt { color: var(--tinta-2); }
.ficha dd { margin: 0; font-weight: 550; }
.tarjeta-ae { border-top: 1px solid var(--linea); padding-top: 26px; margin-top: 56px; display: grid; gap: 14px; justify-items: start; max-width: 620px; }
.concepto { display: grid; gap: 8px; border-top: 1px solid var(--linea); padding-top: 24px; }
.concepto h2 { font-size: clamp(34px, 6vw, 48px); line-height: 1.02; }
.frase-concepto { font-family: var(--display); font-style: italic; font-size: 21px; line-height: 1.4; color: var(--tinta-2); }
.propuesta { display: grid; gap: 40px; margin-top: 64px; padding-top: 48px; border-top: 1px solid var(--linea); }
@media (min-width: 900px) { .propuesta { grid-template-columns: 1fr 1fr; gap: 48px 64px; } }
.propuesta .bloque h3 { font-family: var(--display); font-weight: 500; font-size: 28px; color: var(--vino); margin-bottom: 16px; }
.propuesta .lectura p { font-size: 19px; line-height: 1.55; max-width: 46ch; }
.decisiones { margin: 0; padding: 0; list-style: none; counter-reset: d; display: grid; gap: 16px; }
.decisiones li { counter-increment: d; display: grid; grid-template-columns: 34px 1fr; gap: 4px 12px; }
.decisiones li::before { content: counter(d); grid-row: span 2; font-family: var(--display); font-size: 28px; line-height: 1; color: var(--vino); }
.decisiones b { font-weight: 650; }
.decisiones span { color: var(--tinta-2); font-size: 15px; }
.paleta { list-style: none; margin: 0; padding: 0; display: flex; gap: 18px; flex-wrap: wrap; }
.paleta li { display: grid; justify-items: center; gap: 8px; font-size: 13px; color: var(--tinta-2); text-align: center; max-width: 84px; }
.paleta i { width: 64px; height: 64px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(43,20,24,.12); }
.texturas { list-style: none; margin: 0; padding: 0; display: flex; gap: 8px; flex-wrap: wrap; }
.texturas li { padding: 8px 14px; border-radius: 999px; box-shadow: inset 0 0 0 1.5px var(--linea); font-weight: 550; font-size: 15px; }
.piezas { list-style: none; margin: 0; padding: 0; counter-reset: p; }
.piezas li { counter-increment: p; display: grid; grid-template-columns: 26px 1fr auto; align-items: baseline; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--linea); font-size: 15px; }
.piezas li::before { content: counter(p); font-family: var(--display); font-size: 20px; line-height: 1; color: var(--vino); }
.piezas li small { color: var(--tinta-2); white-space: nowrap; font-variant-numeric: tabular-nums; }
.tarjeta-ae h3 { font-family: var(--display); font-weight: 500; font-size: 30px; line-height: 1.08; color: var(--vino); }
.codigo { font-variant-numeric: tabular-nums; letter-spacing: .04em; font-weight: 650; }

.piezas .fase-titulo{display:block;counter-increment:none;border:0;padding:16px 0 4px;color:var(--vino);font-size:13px;letter-spacing:.08em;text-transform:uppercase}
.piezas .fase-titulo::before{content:none}
