/* =====================================================================
   styles.css · Catálogo "Mi Agenda a medida"
   Paleta rosa / malva / crema · Montserrat + Cormorant Garamond
   ===================================================================== */
:root {
  --hueso: #FDFAF6;
  --rosa: #E8B4B8;
  --rosa-soft: #F6E3E4;
  --malva: #C9A9C0;
  --malva-dark: #A9849F;
  --carbon: #3D3D3D;
  --gris: #9E9E9E;
  --crema: #F2E4C8;
  --blanco: #FFFFFF;
  --radius: 18px;
  --shadow: 0 10px 30px rgba(61, 61, 61, .07);
  --shadow-hover: 0 16px 40px rgba(201, 169, 192, .28);
  --ease: cubic-bezier(.22, .8, .32, 1);
  --sans: 'Montserrat', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --serif: 'Cormorant Garamond', Georgia, serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  font-weight: 400;
  color: var(--carbon);
  background:
    radial-gradient(circle at 10% 0%, rgba(232, 180, 184, .18), transparent 40%),
    radial-gradient(circle at 100% 100%, rgba(201, 169, 192, .16), transparent 45%),
    var(--hueso);
  background-attachment: fixed;
  min-height: 100vh;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  padding-bottom: 96px;
}
h1, h2, h3, h4 { margin: 0; font-weight: 500; }
p { margin: 0; }
button { font-family: inherit; cursor: pointer; color: inherit; }
input, select, textarea { font-family: inherit; }
:focus-visible { outline: 2px solid var(--malva); outline-offset: 3px; }
.muted { color: var(--gris); font-size: .9rem; }
.center { text-align: center; margin-top: 18px; }

/* ---------- Topbar / progreso ---------- */
.topbar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 32px;
  padding: 14px clamp(16px, 4vw, 48px);
  background: rgba(253, 250, 246, .88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(201, 169, 192, .25);
}
.brand { display: flex; align-items: center; gap: 10px; white-space: nowrap; }
.brand-mark { color: var(--rosa); font-size: 1.5rem; }
.brand-name { font-family: var(--serif); font-size: 1.45rem; font-weight: 600; letter-spacing: .3px; }
.brand-name em { color: var(--malva-dark); font-weight: 500; }
.progress { flex: 1; max-width: 640px; margin-left: auto; }
.progress-label { font-size: .75rem; letter-spacing: 1.2px; text-transform: uppercase; color: var(--gris); margin-bottom: 6px; }
.progress-label strong { color: var(--carbon); font-weight: 600; }
.progress-track { height: 4px; background: var(--crema); border-radius: 4px; overflow: hidden; }
.progress-fill { height: 100%; width: 0; background: linear-gradient(90deg, var(--rosa), var(--malva)); border-radius: 4px; transition: width .6s var(--ease); }
.progress-steps { display: flex; justify-content: space-between; list-style: none; margin: 8px 0 0; padding: 0; }
.progress-steps li {
  width: 26px; height: 26px; border-radius: 50%;
  display: grid; place-items: center;
  font-size: .7rem; font-weight: 600; color: var(--gris);
  background: var(--blanco); border: 1px solid var(--crema);
  cursor: pointer; transition: all .3s var(--ease);
}
.progress-steps li.done { background: var(--rosa); border-color: var(--rosa); color: var(--blanco); }
.progress-steps li.current { background: var(--malva); border-color: var(--malva); color: var(--blanco); transform: scale(1.12); box-shadow: 0 0 0 4px rgba(201, 169, 192, .25); }

/* ---------- Wizard / transiciones ---------- */
.wizard { max-width: 1120px; margin: 0 auto; padding: clamp(24px, 5vw, 56px) clamp(16px, 4vw, 40px) 24px; }
.step { display: none; }
.step.active { display: block; animation: slideIn .6s var(--ease) both; }
.step.active.from-left { animation-name: slideInLeft; }
@keyframes slideIn { from { opacity: 0; transform: translateX(40px); } to { opacity: 1; transform: none; } }
@keyframes slideInLeft { from { opacity: 0; transform: translateX(-40px); } to { opacity: 1; transform: none; } }
.step.shake { animation: shake .45s ease; }
@keyframes shake { 20%, 60% { transform: translateX(-8px); } 40%, 80% { transform: translateX(8px); } }

.step-head { text-align: center; max-width: 640px; margin: 0 auto 36px; }
.eyebrow { font-size: .72rem; letter-spacing: 3px; text-transform: uppercase; color: var(--malva-dark); font-weight: 600; margin-bottom: 10px; }
.title { font-family: var(--serif); font-size: clamp(2rem, 5vw, 3.1rem); font-weight: 500; line-height: 1.12; outline: none; }
.title em { font-style: italic; color: var(--malva-dark); }
.subtitle { margin-top: 14px; color: var(--gris); font-size: clamp(.92rem, 1.6vw, 1rem); font-weight: 300; }
.subtitle strong { color: var(--carbon); font-weight: 500; }
.block-title { font-family: var(--serif); font-size: 1.6rem; margin: 40px 0 18px; text-align: center; }
.block-title small { font-family: var(--sans); font-size: .8rem; color: var(--gris); }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: none; border-radius: 999px;
  padding: 13px 28px;
  font-size: .82rem; font-weight: 500; letter-spacing: 1.2px; text-transform: uppercase;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s;
}
.btn:active { transform: scale(.97); }
.btn-primary { background: linear-gradient(135deg, var(--rosa), var(--malva)); color: var(--blanco); box-shadow: 0 8px 20px rgba(201, 169, 192, .4); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(201, 169, 192, .5); }
.btn-secondary { background: var(--blanco); color: var(--malva-dark); border: 1px solid var(--malva); }
.btn-secondary:hover { background: var(--malva); color: var(--blanco); }
.btn-ghost { background: transparent; color: var(--carbon); }
.btn-ghost:hover { color: var(--malva-dark); }
.btn-block { width: 100%; }
.btn-link { background: none; border: none; padding: 0; color: var(--malva-dark); font-size: .78rem; text-decoration: underline; text-underline-offset: 3px; }
.btn:disabled { opacity: .7; cursor: wait; }
.spinner { display: none; width: 16px; height: 16px; border: 2px solid rgba(255,255,255,.5); border-top-color: #fff; border-radius: 50%; animation: spin .8s linear infinite; }
.btn.loading .spinner { display: inline-block; }
.btn.loading .btn-label::after { content: '…'; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Carrusel ---------- */
.carousel {
  position: relative; max-width: 760px; margin: 0 auto;
  overflow: hidden; border-radius: 28px;
  background: linear-gradient(145deg, var(--blanco), var(--rosa-soft));
  box-shadow: var(--shadow);
  border: 1px solid rgba(232, 180, 184, .35);
}
.carousel::after { /* barra de tiempo del avance automático */
  content: ''; position: absolute; left: 0; bottom: 0; height: 3px; width: 100%;
  background: linear-gradient(90deg, var(--rosa), var(--malva));
  transform-origin: left; animation: timer 4s linear infinite;
}
.carousel.paused::after { animation-play-state: paused; opacity: .4; }
@keyframes timer { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.carousel-track { display: flex; transition: transform .8s var(--ease); }
.slide {
  flex: 0 0 100%; min-height: 360px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 48px clamp(56px, 10vw, 110px) 64px;
}
.slide > * { opacity: 0; transform: translateY(18px); transition: all .7s var(--ease); }
.slide.current > * { opacity: 1; transform: none; }
.slide.current > *:nth-child(2) { transition-delay: .1s; }
.slide.current > *:nth-child(3) { transition-delay: .2s; }
.slide.current > *:nth-child(4) { transition-delay: .3s; }
.slide.current > *:nth-child(5) { transition-delay: .4s; }
.slide-icon {
  width: 86px; height: 86px; border-radius: 50%;
  display: grid; place-items: center; font-size: 2.4rem;
  background: var(--blanco); box-shadow: 0 8px 24px rgba(232, 180, 184, .35);
  margin-bottom: 14px;
}
.slide.current .slide-icon { animation: float 3.5s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-8px); } }
.slide-num { font-family: var(--serif); font-style: italic; color: var(--rosa); font-size: 1.1rem; letter-spacing: 2px; }
.slide h3 { font-family: var(--serif); font-size: clamp(1.6rem, 3.6vw, 2.2rem); margin: 4px 0 10px; }
.slide p { color: #6b6b6b; font-weight: 300; max-width: 460px; }
.slide p strong { color: var(--malva-dark); font-weight: 600; }
.btn-start { margin-top: 24px; }
.carousel-btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid rgba(201, 169, 192, .4); background: rgba(255,255,255,.85);
  font-size: 1.6rem; line-height: 1; color: var(--malva-dark);
  transition: all .25s;
}
.carousel-btn:hover { background: var(--malva); color: var(--blanco); }
.carousel-btn.prev { left: 14px; }
.carousel-btn.next { right: 14px; }
.carousel-dots { position: absolute; bottom: 22px; left: 0; right: 0; display: flex; justify-content: center; gap: 8px; }
.dot { width: 9px; height: 9px; border-radius: 9px; border: none; padding: 0; background: rgba(201, 169, 192, .4); transition: all .35s var(--ease); }
.dot.active { width: 28px; background: var(--malva); }

/* ---------- Tarjetas de opción ---------- */
.cards { display: grid; gap: 22px; max-width: 860px; margin: 0 auto; }
.cards-2 { grid-template-columns: repeat(2, 1fr); }
.cards-3 { grid-template-columns: repeat(3, 1fr); }
.card {
  position: relative; text-align: center;
  background: var(--blanco);
  border: 1.5px solid transparent; border-radius: var(--radius);
  padding: 36px 26px 30px;
  box-shadow: var(--shadow);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s;
  overflow: hidden;
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow-hover); }
.card.selected { border-color: var(--malva); background: linear-gradient(180deg, #fff, var(--rosa-soft)); }
.card-icon {
  width: 76px; height: 76px; margin: 0 auto 16px; border-radius: 50%;
  display: grid; place-items: center; font-size: 2.1rem;
  background: var(--hueso); border: 1px solid var(--crema);
  transition: transform .4s var(--ease);
}
.card:hover .card-icon { transform: scale(1.08) rotate(-4deg); }
.card h3 { font-family: var(--serif); font-size: 1.7rem; margin-bottom: 8px; }
.card p { color: var(--gris); font-size: .9rem; font-weight: 300; }
.check {
  position: absolute; top: 16px; right: 16px;
  width: 26px; height: 26px; border-radius: 50%;
  border: 1.5px solid var(--crema); background: var(--blanco);
  transition: all .3s var(--ease);
}
.selected > .check, .selected .check { background: var(--malva); border-color: var(--malva); }
.selected > .check::after, .selected .check::after {
  content: ''; position: absolute; left: 8px; top: 4px; width: 6px; height: 11px;
  border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg);
}

/* Miniaturas al pasar el mouse (Sección 3) */
.mini-preview {
  margin: 0 auto; width: 150px; height: 0; opacity: 0;
  background: var(--hueso); border: 1px solid var(--crema); border-radius: 8px;
  overflow: hidden; transition: height .45s var(--ease), opacity .45s, margin .45s;
}
.has-preview:hover .mini-preview, .has-preview:focus-visible .mini-preview, .has-preview.selected .mini-preview { height: 110px; opacity: 1; margin-top: 18px; }
.mp-head { font-family: var(--serif); font-size: .9rem; padding: 6px 10px; background: var(--rosa-soft); text-align: left; }
.mp-lines { padding: 6px 10px; display: grid; gap: 9px; }
.mp-lines i { display: block; height: 1px; background: var(--malva); opacity: .5; }
.mp-lines i:nth-child(odd) { width: 80%; }
.mp-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; padding: 6px; height: 100%; }
.mp-grid i { font-style: normal; font-size: .6rem; font-weight: 600; color: var(--malva-dark); background: var(--blanco); border: 1px solid var(--crema); border-radius: 4px; padding: 3px; text-align: left; }

/* ---------- Checklist (Sección 4 / accesorios) ---------- */
.checklist { display: grid; gap: 16px; max-width: 680px; margin: 0 auto; }
.check-item {
  display: flex; align-items: flex-start; gap: 18px; width: 100%; text-align: left;
  background: var(--blanco); border: 1.5px solid transparent; border-radius: var(--radius);
  padding: 22px 24px; box-shadow: var(--shadow);
  transition: all .3s var(--ease);
}
.check-item:hover { transform: translateX(4px); box-shadow: var(--shadow-hover); }
.check-item.selected { border-color: var(--malva); background: linear-gradient(90deg, var(--rosa-soft), #fff); }
.check-item h3 { font-family: var(--serif); font-size: 1.4rem; }
.check-item p { color: var(--gris); font-size: .88rem; font-weight: 300; }
.box {
  flex: 0 0 26px; height: 26px; margin-top: 4px; position: relative;
  border: 1.5px solid var(--malva); border-radius: 8px; background: var(--blanco);
  transition: all .3s var(--ease);
}
.selected .box { background: var(--malva); }
.selected .box::after {
  content: ''; position: absolute; left: 8px; top: 3px; width: 6px; height: 12px;
  border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg);
  animation: pop .3s var(--ease);
}
@keyframes pop { from { transform: rotate(45deg) scale(0); } }

/* ---------- Extras (Sección 5) ---------- */
.extras-layout { display: grid; grid-template-columns: 1fr 300px; gap: 28px; align-items: start; }
.extras-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 16px; align-items: start; }
.extra-card {
  position: relative; background: var(--blanco); border-radius: var(--radius);
  border: 1.5px solid transparent; box-shadow: var(--shadow);
  transition: all .3s var(--ease);
}
.extra-card:hover { box-shadow: var(--shadow-hover); }
.extra-card.selected { border-color: var(--malva); }
.extra-toggle {
  width: 100%; border: none; background: none; padding: 24px 16px 18px;
  display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center;
}
.extra-toggle .check { top: 10px; right: 10px; width: 22px; height: 22px; }
.extra-toggle .check::after { left: 6px !important; top: 3px !important; width: 5px !important; height: 9px !important; }
.extra-icon { font-size: 1.8rem; transition: transform .3s var(--ease); }
.extra-card:hover .extra-icon { transform: scale(1.15); }
.extra-name { font-size: .86rem; font-weight: 500; line-height: 1.35; }
.extra-delete {
  position: absolute; top: 8px; left: 10px; border: none; background: none;
  color: var(--gris); font-size: 1.2rem; line-height: 1;
}
.extra-delete:hover { color: var(--malva-dark); }
.extra-config {
  display: grid; grid-template-columns: 70px 1fr; gap: 8px;
  max-height: 0; overflow: hidden; padding: 0 14px;
  transition: max-height .4s var(--ease), padding .4s var(--ease);
}
.extra-card.selected .extra-config { max-height: 120px; padding: 0 14px 16px; }
.extra-config label { font-size: .66rem; letter-spacing: 1px; text-transform: uppercase; color: var(--gris); display: grid; gap: 4px; }
select, input[type=text], input[type=email], textarea {
  width: 100%; border: 1px solid var(--crema); border-radius: 10px;
  background: var(--hueso); color: var(--carbon);
  padding: 9px 10px; font-size: .85rem;
  transition: border-color .25s, box-shadow .25s;
}
select { appearance: none; -webkit-appearance: none; padding-right: 24px;
  background-image: linear-gradient(45deg, transparent 50%, var(--malva) 50%), linear-gradient(135deg, var(--malva) 50%, transparent 50%);
  background-position: calc(100% - 13px) 55%, calc(100% - 8px) 55%; background-size: 5px 5px; background-repeat: no-repeat; }
select:focus, input:focus, textarea:focus { outline: none; border-color: var(--malva); box-shadow: 0 0 0 3px rgba(201, 169, 192, .2); }
.custom-extra { margin-top: 24px; background: var(--blanco); border: 1.5px dashed var(--rosa); border-radius: var(--radius); padding: 20px; }
.custom-extra label { display: block; font-size: .85rem; font-weight: 500; margin-bottom: 10px; }
.custom-extra .row { display: flex; gap: 10px; }
.custom-extra input { flex: 1; padding: 12px 14px; }
.side-summary {
  position: sticky; top: 130px;
  background: var(--blanco); border-radius: var(--radius); padding: 24px;
  box-shadow: var(--shadow); border-top: 4px solid var(--rosa);
}
.side-summary h3 { font-family: var(--serif); font-size: 1.5rem; margin-bottom: 12px; }
.side-summary ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; max-height: 50vh; overflow: auto; }
.side-summary li { padding: 10px 12px; background: var(--hueso); border-radius: 10px; border-left: 3px solid var(--malva); animation: fadeUp .35s var(--ease); }
.side-summary li span { display: block; font-size: .85rem; font-weight: 500; }
.side-summary li small { color: var(--gris); font-size: .74rem; }
.side-count { margin-top: 14px; font-size: .75rem; letter-spacing: 1px; text-transform: uppercase; color: var(--malva-dark); }
@keyframes fadeUp { from { opacity: 0; transform: translateY(8px); } }

/* ---------- Portada (Sección 6) ---------- */
.uploads { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; max-width: 920px; margin: 0 auto; }
.upload-block { background: var(--blanco); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); text-align: center; }
.upload-block h3 { font-family: var(--serif); font-size: 1.6rem; margin-bottom: 16px; }
.upload-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: center; }
.dropzone {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  min-height: 200px; padding: 16px; border-radius: 14px;
  border: 1.5px dashed var(--malva); background: var(--hueso);
  cursor: pointer; transition: all .3s var(--ease);
}
.dropzone:hover, .dropzone.drag { background: var(--rosa-soft); border-color: var(--rosa); transform: scale(1.02); }
.dz-icon { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: var(--blanco); color: var(--malva-dark); font-size: 1.2rem; box-shadow: 0 4px 12px rgba(201,169,192,.3); }
.dz-text { font-size: .82rem; font-weight: 500; }
.dz-text small { color: var(--gris); font-weight: 300; }
.book-preview {
  position: relative; aspect-ratio: 8 / 11; width: 100%; max-width: 170px; margin: 0 auto;
  border-radius: 4px 12px 12px 4px; overflow: hidden;
  background: linear-gradient(135deg, var(--crema), var(--rosa-soft));
  box-shadow: 6px 8px 20px rgba(61,61,61,.15), inset 6px 0 0 rgba(0,0,0,.05);
  transition: transform .5s var(--ease);
}
.book-preview.back { border-radius: 12px 4px 4px 12px; box-shadow: -6px 8px 20px rgba(61,61,61,.15), inset -6px 0 0 rgba(0,0,0,.05); }
.book-preview:hover { transform: rotate(-2deg) scale(1.03); }
.book-img { position: absolute; inset: 0; background-size: cover; background-position: center; z-index: 1; }
.book-placeholder { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--serif); font-style: italic; font-size: 1.1rem; color: var(--malva-dark); }
.has-file .book-placeholder, .has-img .book-placeholder { display: none; }
.has-file .book-img { animation: reveal .6s var(--ease); }
@keyframes reveal { from { opacity: 0; transform: scale(1.08); } }
.file-info { margin-top: 14px; font-size: .78rem; min-height: 1.2em; word-break: break-word; }
.file-info.ok { color: #6d9a76; }
.file-info.warn { color: #c0876b; }

/* ---------- Hoja y accesorios (Sección 7) ---------- */
.paper {
  width: 110px; height: 140px; margin: 0 auto 18px; border-radius: 6px;
  background-color: #fff; border: 1px solid var(--crema);
  box-shadow: 4px 6px 14px rgba(61,61,61,.08);
  transition: transform .4s var(--ease);
}
.paper-card:hover .paper { transform: rotate(-3deg) translateY(-4px); }
.paper-lined { background-image: repeating-linear-gradient(to bottom, transparent 0 13px, rgba(201,169,192,.6) 13px 14px); background-position: 0 10px; }
.paper-dotted { background-image: radial-gradient(circle, rgba(201,169,192,.85) 1.2px, transparent 1.4px); background-size: 12px 12px; background-position: 6px 6px; }
.paper-blank { background: #fff; }
.accessories { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; max-width: 860px; margin: 0 auto; }
.accessory { background: var(--blanco); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.accessory .check-item { box-shadow: none; border-radius: 0; }
.accessory .check-item:hover { transform: none; }
.color-picker { padding: 4px 24px 22px; animation: fadeUp .35s var(--ease); }
.color-picker p { font-size: .8rem; color: var(--gris); margin-bottom: 12px; }
.color-picker strong { color: var(--carbon); font-weight: 600; }
.swatches { display: flex; flex-wrap: wrap; gap: 10px; }
.swatch {
  width: 32px; height: 32px; border-radius: 50%; padding: 0;
  background: var(--c); border: 2px solid #fff;
  box-shadow: 0 0 0 1px rgba(61,61,61,.15);
  transition: transform .2s var(--ease), box-shadow .2s;
}
.swatch:hover { transform: scale(1.15); }
.swatch.active { box-shadow: 0 0 0 2px var(--malva-dark); transform: scale(1.12); }

/* ---------- Resumen y formulario (Sección 8) ---------- */
.final-layout { display: grid; grid-template-columns: 1fr 360px; gap: 28px; align-items: start; }
.sum-hero {
  display: flex; align-items: center; gap: 24px; flex-wrap: wrap;
  background: linear-gradient(135deg, var(--rosa-soft), var(--crema));
  border-radius: var(--radius); padding: 24px; margin-bottom: 20px;
}
.sum-thumbs { display: flex; gap: 12px; }
.sum-thumb { margin: 0; text-align: center; width: 90px; }
.sum-thumb .book-placeholder { font-size: .72rem; text-align: center; padding: 4px; }
.sum-thumb figcaption { font-size: .68rem; letter-spacing: 1px; text-transform: uppercase; color: var(--gris); margin-top: 6px; }
.sum-title { font-family: var(--serif); font-size: 2rem; }
.sum-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.sum-card { background: var(--blanco); border-radius: 14px; padding: 18px 20px; box-shadow: var(--shadow); animation: fadeUp .5s var(--ease) both; }
.sum-card:nth-child(2) { animation-delay: .05s; } .sum-card:nth-child(3) { animation-delay: .1s; }
.sum-card:nth-child(4) { animation-delay: .15s; } .sum-card:nth-child(5) { animation-delay: .2s; }
.sum-card:nth-child(6) { animation-delay: .25s; } .sum-card:nth-child(7) { animation-delay: .3s; }
.sum-head { display: flex; justify-content: space-between; align-items: baseline; border-bottom: 1px solid var(--crema); padding-bottom: 8px; margin-bottom: 10px; }
.sum-head h4 { font-family: var(--serif); font-size: 1.25rem; color: var(--malva-dark); }
.sum-card ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.sum-card li { font-size: .85rem; padding-left: 16px; position: relative; display: flex; align-items: center; gap: 8px; }
.sum-card li::before { content: ''; position: absolute; left: 2px; top: .62em; width: 6px; height: 6px; border-radius: 50%; background: var(--rosa); }
.dot-color { width: 14px; height: 14px; border-radius: 50%; flex: 0 0 14px; box-shadow: 0 0 0 1px rgba(61,61,61,.2); }
.order-form {
  position: sticky; top: 130px;
  background: var(--blanco); border-radius: var(--radius); padding: 28px;
  box-shadow: var(--shadow); border-top: 4px solid var(--malva);
}
.order-form h3 { font-family: var(--serif); font-size: 1.7rem; margin-bottom: 18px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: .72rem; letter-spacing: 1.2px; text-transform: uppercase; font-weight: 500; margin-bottom: 6px; }
.field label small { text-transform: none; color: var(--gris); letter-spacing: 0; }
.field input, .field textarea { padding: 12px 14px; font-size: .9rem; resize: vertical; }
.field-error { display: block; color: #c0687a; font-size: .75rem; min-height: 1em; margin-top: 4px; }
.field.invalid input { border-color: #e3a1ad; }
.form-msg { margin-top: 12px; font-size: .82rem; text-align: center; }
.form-msg.error { color: #c0687a; }

/* ---------- Confirmación ---------- */
.confirm-box { max-width: 560px; margin: 4vh auto 0; text-align: center; background: var(--blanco); border-radius: 28px; padding: 56px 32px; box-shadow: var(--shadow); }
.confirm-icon { font-size: 3.4rem; animation: float 3s ease-in-out infinite; margin-bottom: 10px; }
.confirm-box .muted { margin: 16px 0 28px; }
.confirm-folio { margin: 18px auto 0; display: inline-block; padding: 10px 22px; border: 1px dashed var(--rosa); border-radius: 999px; background: var(--hueso); font-size: .78rem; letter-spacing: 1.5px; text-transform: uppercase; color: var(--gris); }
.confirm-folio strong { display: block; margin-top: 2px; font-family: var(--serif); font-size: 1.5rem; letter-spacing: 1px; text-transform: none; color: var(--carbon); }
.confirm-warn { margin: 14px 0 0; font-size: .82rem; color: #c0687a; }
.hp-field { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Navegación inferior ---------- */
.wizard-nav {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 14px clamp(16px, 4vw, 48px);
  background: rgba(253, 250, 246, .92);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-top: 1px solid rgba(201, 169, 192, .25);
}
.nav-msg { flex: 1; text-align: center; font-size: .82rem; color: #c0687a; }

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 96px; z-index: 30;
  transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  background: var(--carbon); color: #fff; padding: 12px 22px; border-radius: 999px; font-size: .82rem;
  transition: all .35s var(--ease);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Iconos SVG de línea (Lucide · currentColor) ---------- */
.svg-icon { display: block; width: 100%; height: 100%; flex-shrink: 0; overflow: visible; }
.icon { display: inline-flex; align-items: center; justify-content: center; line-height: 0; }
.icon > .svg-icon, .extra-icon > .svg-icon, .sum-icon > .svg-icon { width: var(--icon-size, 1em); height: var(--icon-size, 1em); }
.icon-btn { --icon-size: 16px; }
.btn .svg-icon.icon-btn { width: 16px; height: 16px; }
.icon-inline { --icon-size: 1.05em; vertical-align: -0.18em; color: var(--malva-dark); }
svg.icon-inline { display: inline-block; width: 1.05em; height: 1.05em; vertical-align: -0.18em; }
.icon-title { --icon-size: .8em; color: var(--malva-dark); vertical-align: -0.05em; margin-right: 4px; }
.brand-mark { --icon-size: 26px; color: var(--rosa); }
.slide-icon { --icon-size: 38px; color: var(--malva-dark); }
.card-icon { --icon-size: 32px; color: var(--malva-dark); }
.card.selected .card-icon { color: var(--carbon); background: var(--blanco); border-color: var(--rosa); }
.extra-icon { --icon-size: 30px; display: inline-flex; width: 52px; height: 52px; align-items: center; justify-content: center;
  border-radius: 50%; background: var(--hueso); border: 1px solid var(--crema); color: var(--malva-dark); transition: all .3s var(--ease); }
.extra-card.selected .extra-icon { background: var(--rosa-soft); border-color: var(--rosa); color: var(--carbon); }
.extra-delete { width: 24px; height: 24px; padding: 4px; display: grid; place-items: center; border-radius: 50%; }
.extra-delete .svg-icon { width: 16px; height: 16px; }
.extra-delete:hover { background: var(--rosa-soft); }
.item-icon { --icon-size: 22px; flex: 0 0 44px; height: 44px; border-radius: 12px; background: var(--hueso);
  border: 1px solid var(--crema); color: var(--malva-dark); transition: all .3s var(--ease); }
.check-item.selected .item-icon { background: var(--blanco); border-color: var(--rosa); color: var(--carbon); }
.dz-icon { --icon-size: 22px; }
.carousel-btn { display: grid; place-items: center; padding: 0; --icon-size: 20px; }
.confirm-icon { --icon-size: 40px; width: 88px; height: 88px; margin: 0 auto 14px; border-radius: 50%;
  background: linear-gradient(135deg, var(--rosa-soft), var(--crema)); color: var(--malva-dark); }
.mp-grid i.mp-note { --icon-size: 12px; justify-content: flex-start; align-items: flex-start; color: var(--malva-dark); }
.sum-icon { --icon-size: 18px; display: inline-flex; vertical-align: -3px; margin-right: 8px; color: var(--rosa); }
.file-info .svg-icon { display: inline-block; }
.custom-extra label .icon { --icon-size: 18px; vertical-align: -4px; color: var(--malva-dark); }
.btn.loading .btn-send-icon { display: none; }

/* ---------- Responsivo ---------- */
/* =====================================================================
   PASO 8 · VISTA PREVIA
   ===================================================================== */
.preview-sub { font-family: var(--sans); font-weight: 300; letter-spacing: .02em; }
.preview-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 300px)); justify-content: center; gap: 40px; margin: 8px auto 28px; }
.preview-card { margin: 0; background: var(--hueso); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px 22px 16px; display: flex; flex-direction: column; align-items: center; }
.preview-cap { align-self: flex-start; display: flex; align-items: center; gap: 8px; font-family: var(--serif); font-size: 1.35rem; color: var(--malva-dark); margin-bottom: 14px; }
#pvCoverNote { margin-top: 34px; }
.pv-note { margin: 12px 0 0; font-size: .78rem; color: var(--gris); text-align: center; min-height: 1.2em; }

/* --- Portada (maqueta de libro) --- */
.pv-book { position: relative; width: 100%; max-width: 240px; aspect-ratio: 1 / 1.4; border-radius: 6px 14px 14px 6px; box-shadow: 0 14px 30px rgba(61,61,61,.18), inset 4px 0 0 rgba(0,0,0,.06); overflow: visible; }
.pv-cover-img { position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(135deg, var(--rosa-soft), var(--rosa)); background-size: cover; background-position: center; transition: background-image .4s; }
.pv-cover-img.pv-fallback { background-image: linear-gradient(150deg, var(--rosa) 0%, #DDB0BE 45%, var(--malva) 100%) !important; }
.pv-cover-shade { position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(90deg, rgba(0,0,0,.14) 0, rgba(0,0,0,0) 9%, rgba(255,255,255,.08) 10%, rgba(0,0,0,0) 13%), linear-gradient(180deg, rgba(253,250,246,0) 55%, rgba(61,61,61,.18) 100%); pointer-events: none; }
.pv-title-plate { position: absolute; left: 16%; right: 9%; top: 14%; padding: 12px 10px 10px; background: rgba(253,250,246,.86); border: 1px solid rgba(201,169,192,.6); border-radius: 4px; text-align: center; backdrop-filter: blur(2px); }
.pv-title { display: block; font-family: var(--serif); font-size: 2rem; font-weight: 500; font-style: italic; color: var(--carbon); line-height: 1; }
.pv-year { display: block; margin-top: 6px; font-size: .62rem; letter-spacing: .32em; color: var(--malva-dark); }
.pv-book.con-resorte .pv-cover-img, .pv-book.con-resorte .pv-cover-shade { left: 0; }
.pv-spiral { position: absolute; left: -9px; top: 4%; bottom: 4%; width: 22px; display: flex; flex-direction: column; justify-content: space-between; z-index: 3; }
.pv-spiral i { display: block; width: 22px; height: 9px; border: 2.5px solid var(--aro, var(--malva)); border-radius: 50%; background: transparent; box-shadow: 0 1px 2px rgba(0,0,0,.25); }
.pv-ribbon { position: absolute; right: 26%; bottom: -26px; width: 10px; height: 46px; background: var(--liston, var(--rosa)); z-index: 0; clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 82%, 0 100%); box-shadow: 0 2px 3px rgba(0,0,0,.15); }
.pv-book > :not(.pv-ribbon) { z-index: 1; }
.pv-book .pv-spiral { z-index: 3; }

/* --- Página interior --- */
.pv-page { position: relative; width: 100%; max-width: 240px; aspect-ratio: 1 / 1.4; background: #fff; border-radius: 4px 10px 10px 4px; box-shadow: 0 10px 24px rgba(61,61,61,.12), inset 6px 0 10px -6px rgba(0,0,0,.12); padding: 14px 14px 12px 18px; display: flex; flex-direction: column; gap: 10px; overflow: hidden; }
.pv-page-head { display: flex; align-items: center; gap: 7px; font-family: var(--serif); font-size: 1.05rem; color: var(--carbon); border-bottom: 1px solid var(--rosa); padding-bottom: 6px; }
.pv-head-icon { display: inline-flex; width: 18px; height: 18px; color: var(--malva-dark); flex-shrink: 0; }
.pv-head-icon .svg-icon { width: 18px; height: 18px; }
.pv-mini-cal { display: flex; gap: 8px; flex-wrap: wrap; }
.pv-cal { flex: 1 1 60px; min-width: 60px; background: var(--hueso); border: 1px solid var(--rosa-soft); border-radius: 5px; padding: 5px; }
.pv-cal > span { display: block; font-size: .5rem; text-transform: uppercase; letter-spacing: .14em; color: var(--malva-dark); margin-bottom: 4px; }
.pv-cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }
.pv-cal-grid i { aspect-ratio: 1; background: #fff; border: 1px solid #EEE7EA; border-radius: 1px; }
.pv-cal-grid i.on { background: var(--rosa); border-color: var(--rosa); }
.pv-cal-meses { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2px; }
.pv-cal-meses i { height: 9px; background: #fff; border: 1px solid #EEE7EA; border-radius: 1px; }
.pv-cal-lines i { display: block; height: 3px; margin: 4px 0; background: var(--malva); opacity: .45; border-radius: 2px; }
.pv-cal-lines i:nth-child(2) { width: 70%; } .pv-cal-lines i:nth-child(3) { width: 45%; }
.pv-cal-dias { display: flex; gap: 2px; }
.pv-cal-dias b { flex: 1; font-size: .45rem; font-weight: 500; text-align: center; color: var(--gris); background: #fff; border: 1px solid #EEE7EA; padding: 2px 0 10px; border-radius: 1px; }
.pv-paper { flex: 1; border-radius: 2px; }
.pv-paper-rayada { background-image: repeating-linear-gradient(to bottom, transparent 0 11px, #DADADA 11px 12px); }
.pv-paper-punteada { background-image: radial-gradient(circle, #C8C8C8 1px, transparent 1.2px); background-size: 10px 10px; background-position: 5px 5px; }
.pv-paper-blanca { background: #fff; }

/* --- Resumen compacto --- */
.pv-summary { max-width: 760px; margin: 0 auto; text-align: center; }
.pv-summary-text { font-size: .95rem; color: var(--carbon); line-height: 1.7; margin: 0 0 14px; }
.pv-summary-text strong { font-weight: 500; color: var(--malva-dark); }
.pv-chips { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.pv-chips li { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; background: var(--blanco); border: 1px solid var(--rosa-soft); border-radius: 999px; font-size: .8rem; box-shadow: 0 2px 6px rgba(61,61,61,.04); }
.pv-chip-icon { display: inline-flex; width: 15px; height: 15px; color: var(--malva-dark); }
.pv-chip-icon .svg-icon { width: 15px; height: 15px; }
.pv-chips .dot { width: 10px; height: 10px; border-radius: 50%; border: 1px solid rgba(0,0,0,.12); }
.pv-actions { display: flex; justify-content: center; margin-top: 28px; }

@media (max-width: 680px) {
  .preview-grid { grid-template-columns: minmax(0, 300px); gap: 28px; }
}

@media (max-width: 960px) {
  .extras-layout, .final-layout { grid-template-columns: 1fr; }
  .side-summary, .order-form { position: static; }
  .side-summary { order: -1; }
}
@media (max-width: 760px) {
  .topbar { flex-direction: column; align-items: stretch; gap: 8px; padding: 10px 16px; }
  .brand { justify-content: center; }
  .brand-name { font-size: 1.2rem; }
  .progress { margin: 0; max-width: none; }
  .progress-label { text-align: center; }
  .progress-steps li { width: 22px; height: 22px; font-size: .62rem; }
  .cards-2, .cards-3, .uploads, .accessories, .sum-grid { grid-template-columns: 1fr; }
  .cards-3 .card { display: grid; grid-template-columns: 90px 1fr; text-align: left; gap: 0 16px; padding: 20px; align-items: center; }
  .cards-3 .paper { width: 80px; height: 100px; margin: 0; grid-row: span 2; }
  .slide-icon { width: 72px; height: 72px; --icon-size: 32px; }
  .card-icon { width: 64px; height: 64px; --icon-size: 28px; }
  .item-icon { flex-basis: 38px; height: 38px; --icon-size: 20px; }
  .slide { min-height: 400px; padding: 40px 48px 64px; }
  .carousel-btn { width: 36px; height: 36px; font-size: 1.3rem; }
  .carousel-btn.prev { left: 6px; } .carousel-btn.next { right: 6px; }
  .side-summary ul { max-height: 180px; }
  .nav-msg { position: absolute; bottom: 100%; left: 0; right: 0; background: var(--hueso); padding: 6px 12px; }
  .nav-msg:empty { display: none; }
  .wizard-nav .btn { padding: 12px 18px; }
}
@media (max-width: 480px) {
  .upload-wrap { grid-template-columns: 1fr; }
  .dropzone { min-height: 140px; }
  .extras-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .extra-config { grid-template-columns: 1fr; }
  .extra-icon { width: 44px; height: 44px; --icon-size: 24px; }
  .extra-card.selected .extra-config { max-height: 160px; }
  .custom-extra .row { flex-direction: column; }
  .card { padding: 28px 20px 24px; }
  .sum-hero { flex-direction: column; text-align: center; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
