:root {
  --ink: #1f1a17;
  --ink-soft: #5c524b;
  --cream: #faf6ef;
  --paper: #ffffff;
  --line: #e8dfd2;
  --gold: #b9853a;
  --gold-soft: #f3e6cf;
  --plum: #2d1b2e;
  --danger: #a33a2b;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(31, 26, 23, 0.08);
  --serif: "Fraunces", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }
[x-cloak] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--cream); color: var(--ink); font: 16px/1.55 var(--sans); }
img { max-width: 100%; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.15; margin: 0 0 .6em; }
h1 { font-size: clamp(2rem, 4.5vw, 3.4rem); }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.6rem); }
h3 { font-size: 1.2rem; margin-top: 1.4em; }
h1 em, h2 em { font-style: italic; color: var(--gold); }
a { color: inherit; }
.muted { color: var(--ink-soft); }
.small { font-size: .85rem; }
.center { text-align: center; margin-top: 2rem; }
.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: .78rem; color: var(--gold); margin: 0 0 .8rem; font-weight: 600; }
.eyebrow.light { color: var(--gold-soft); }

/* botones */
.button { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; border: 0; cursor: pointer;
  background: var(--ink); color: var(--cream); padding: .85rem 1.5rem; border-radius: 999px; font: 600 .95rem var(--sans);
  text-decoration: none; transition: transform .15s, background .15s; }
.button:hover { background: var(--plum); transform: translateY(-1px); }
.button:disabled { opacity: .5; cursor: wait; transform: none; }
.button-small { padding: .55rem 1rem; font-size: .85rem; }
.button-ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.button-ghost:hover { background: var(--ink); color: var(--cream); }
.link { background: none; border: 0; color: var(--gold); font: 600 .9rem var(--sans); cursor: pointer; padding: 0; text-decoration: none; }

/* nav */
.nav { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: .9rem clamp(1rem, 4vw, 3rem); background: rgba(250, 246, 239, .92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.brand { font: 600 1.6rem var(--serif); text-decoration: none; letter-spacing: -.02em; }
.brand span { color: var(--gold); }
.navlinks { display: flex; gap: 1.6rem; }
.navlinks a { text-decoration: none; color: var(--ink-soft); font-size: .92rem; }
.navlinks a:hover { color: var(--ink); }

/* hero */
.hero { position: relative; overflow: hidden; color: var(--cream); padding: clamp(4rem, 10vw, 8rem) clamp(1rem, 6vw, 5rem);
  background: radial-gradient(1200px 500px at 85% 10%, rgba(185, 133, 58, .35), transparent 60%),
              radial-gradient(800px 400px at 10% 100%, rgba(120, 60, 90, .45), transparent 60%), var(--plum); }
.hero-content { max-width: 760px; }
.hero h1 em { color: var(--gold-soft); }
.hero-copy { font-size: 1.15rem; max-width: 560px; opacity: .9; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; }
.hero .button { background: var(--gold); color: var(--ink); }
.hero .button:hover { background: var(--gold-soft); }
.hero .button-ghost { background: transparent; color: var(--cream); box-shadow: inset 0 0 0 1.5px var(--cream); }
.hero-badges { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 3rem; }
.badge { display: inline-flex; gap: .5rem; align-items: center; padding: .5rem 1rem; border-radius: 999px;
  background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .15); font-size: .9rem; }

/* secciones */
.section { padding: clamp(3.5rem, 8vw, 6rem) clamp(1rem, 6vw, 5rem); max-width: 1200px; margin: 0 auto; }
.section.narrow { max-width: 760px; }
.section-dark { max-width: none; background: var(--ink); color: var(--cream); }
.section-dark h2 em { color: var(--gold-soft); }
.event-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1rem; margin-top: 2rem; }
.event-card { display: flex; flex-direction: column; gap: .3rem; padding: 1.6rem; border-radius: var(--radius); background: var(--paper);
  border: 1px solid var(--line); text-decoration: none; transition: transform .15s, box-shadow .15s; }
.event-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.event-card h3 { margin: .4rem 0 0; }
.event-card p { margin: 0; color: var(--ink-soft); font-size: .92rem; flex: 1; }
.event-icon { font-size: 2rem; }
.pillars { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 2rem; margin-top: 2rem; max-width: 1200px; }
.pillars p { opacity: .8; }
.pillar-n { font: italic 2.5rem var(--serif); color: var(--gold); }
.steps { list-style: none; counter-reset: s; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.5rem; margin-top: 2rem; }
.steps li { counter-increment: s; display: flex; flex-direction: column; gap: .3rem; padding: 1.5rem; border-top: 2px solid var(--ink); }
.steps li::before { content: "0" counter(s); font: italic 1.6rem var(--serif); color: var(--gold); }
.steps span { color: var(--ink-soft); }
.footer { padding: 3rem clamp(1rem, 6vw, 5rem); border-top: 1px solid var(--line); text-align: center; }

/* wizard */
.wizard { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 2rem; max-width: 1200px; margin: 0 auto;
  padding: 2rem clamp(1rem, 4vw, 3rem) 4rem; align-items: start; }
.wizard-main { min-width: 0; }
.panel h1 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); }
.progress { display: flex; flex-wrap: wrap; gap: .4rem; list-style: none; padding: 0; margin: 0 0 2rem; }
.progress button { border: 0; background: var(--paper); border: 1px solid var(--line); border-radius: 999px; padding: .35rem .85rem;
  font: 500 .8rem var(--sans); color: var(--ink-soft); cursor: pointer; }
.progress button:disabled { cursor: default; opacity: .55; }
.progress .done button { background: var(--gold-soft); border-color: var(--gold-soft); color: var(--ink); }
.progress .current button { background: var(--ink); border-color: var(--ink); color: var(--cream); }

.choice-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: .9rem; }
.choice-grid.three { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.choice-card { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: .25rem; text-align: left;
  padding: 1.2rem; border-radius: var(--radius); background: var(--paper); border: 1.5px solid var(--line); cursor: pointer;
  font: inherit; color: inherit; transition: border-color .15s, box-shadow .15s, transform .15s; }
.choice-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.choice-card.selected { border-color: var(--gold); box-shadow: 0 0 0 3px var(--gold-soft); }
.choice-card small { color: var(--ink-soft); }
.choice-icon { font-size: 1.8rem; }
.check { position: absolute; top: .9rem; right: .9rem; width: 20px; height: 20px; border-radius: 6px; border: 1.5px solid var(--line); }
.selected > .check, .selected .promo-head .check { background: var(--gold); border-color: var(--gold); }
.selected > .check::after, .selected .promo-head .check::after { content: "✓"; color: #fff; font-size: 13px; display: grid; place-items: center; height: 100%; }
.tiers { display: flex; flex-direction: column; gap: .1rem; margin-top: .5rem; font-size: .82rem; color: var(--ink-soft); }

.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem; margin: 1rem 0; }
.form-grid .wide { grid-column: 1 / -1; }
label { display: flex; flex-direction: column; gap: .35rem; font-size: .88rem; font-weight: 500; color: var(--ink-soft); }
label.inline { flex-direction: row; align-items: center; gap: .8rem; margin-top: 1.2rem; }
label.inline input { width: 120px; }
input, select, textarea { font: 400 1rem var(--sans); color: var(--ink); padding: .7rem .85rem; border-radius: 10px;
  border: 1.5px solid var(--line); background: var(--paper); width: 100%; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px var(--gold-soft); }
.questions { display: grid; gap: 1.1rem; margin-top: 1.5rem; }
.question { display: flex; flex-direction: column; gap: .4rem; }
.q-label { font-weight: 600; }
.req { color: var(--gold); }

.chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.chip { border: 1.5px solid var(--line); background: var(--paper); border-radius: 999px; padding: .5rem 1rem; cursor: pointer; font: 500 .9rem var(--sans); color: var(--ink); }
.chip.selected { background: var(--ink); border-color: var(--ink); color: var(--cream); }
.segmented { display: inline-flex; flex-wrap: wrap; border: 1.5px solid var(--line); border-radius: 999px; padding: 3px; background: var(--paper); gap: 2px; }
.segmented button { border: 0; background: transparent; border-radius: 999px; padding: .45rem 1rem; cursor: pointer; font: 500 .9rem var(--sans); color: var(--ink-soft); }
.segmented button.selected { background: var(--ink); color: var(--cream); }
.segmented.small button { padding: .3rem .8rem; font-size: .8rem; }
.two-col { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1rem; }

.suggestion { margin-top: 1.5rem; padding: 1.2rem; border-radius: var(--radius); background: var(--paper); border: 1px solid var(--line); }
.suggestion h3 { margin-top: 0; }
.product-row { display: grid; grid-template-columns: 56px minmax(0, 1fr) 80px auto; gap: .8rem; align-items: center;
  padding: .7rem 0; border-bottom: 1px solid var(--line); width: 100%; background: none; border-left: 0; border-right: 0; border-top: 0; text-align: left; font: inherit; color: inherit; }
.product-row:last-of-type { border-bottom: 0; }
.product-row img { width: 56px; height: 56px; object-fit: contain; background: #fff; border-radius: 8px; }
.product-info { display: flex; flex-direction: column; min-width: 0; }
.product-info strong { font-weight: 600; font-size: .92rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.product-row input { padding: .5rem; text-align: center; }

.promo-list { display: grid; gap: .8rem; }
.promo { border: 1.5px solid var(--line); border-radius: var(--radius); background: var(--paper); }
.promo.selected { border-color: var(--gold); }
.promo-head { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 1rem; align-items: center; width: 100%;
  padding: 1rem 3rem 1rem 1.2rem; background: none; border: 0; cursor: pointer; text-align: left; font: inherit; color: inherit; }
.promo-head small { display: block; color: var(--ink-soft); }
.promo-head .check { top: 50%; transform: translateY(-50%); }
.from { font-size: .85rem; color: var(--ink-soft); }
.promo-body { padding: 0 1.2rem 1.2rem; margin: 0; }

.summary-group h3 { margin: 1.2rem 0 .4rem; font-size: 1.05rem; }
.summary-line { display: grid; grid-template-columns: minmax(0, 1fr) auto 110px; gap: 1rem; padding: .5rem 0; border-bottom: 1px dashed var(--line); font-size: .93rem; }
.summary-line strong { text-align: right; }
.summary-line small { display: block; }

.wizard-summary { position: sticky; top: 90px; padding: 1.5rem; border-radius: var(--radius); background: var(--paper); border: 1px solid var(--line); box-shadow: var(--shadow); }
.wizard-summary h2 { font-size: 1.4rem; }
.summary-row { display: flex; justify-content: space-between; gap: 1rem; padding: .35rem 0; font-size: .93rem; }
.summary-total { display: flex; justify-content: space-between; align-items: baseline; margin-top: .8rem; padding-top: .8rem; border-top: 2px solid var(--ink); }
.summary-total strong { font: 600 1.6rem var(--serif); }
.wizard-nav { display: flex; justify-content: space-between; gap: 1rem; margin-top: 2rem; }
.wizard-nav .button:last-child { margin-left: auto; }
.error { color: var(--danger); background: #fbecea; padding: .7rem 1rem; border-radius: 10px; margin-top: 1.5rem; }

.modal { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 1rem; background: rgba(31, 26, 23, .45); }
.modal-box { width: min(640px, 100%); max-height: 85vh; display: flex; flex-direction: column; gap: .8rem; padding: 1.4rem; border-radius: var(--radius); background: var(--cream); }
.modal-head { display: flex; justify-content: space-between; align-items: center; }
.modal-head h3 { margin: 0; }
.picker-list { overflow-y: auto; }
.picker-list .product-row { grid-template-columns: 56px minmax(0, 1fr); cursor: pointer; }
.picker-list .product-row:hover { background: var(--paper); }

.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; margin-top: 1.5rem; }
.lead { font-size: 1.1rem; }
.folio { font-family: var(--serif); font-size: 1.3rem; color: var(--gold); }

@media (max-width: 900px) {
  .wizard { grid-template-columns: 1fr; }
  .wizard-summary { position: static; order: -1; }
  .navlinks { display: none; }
}
@media (max-width: 560px) {
  .product-row { grid-template-columns: 48px minmax(0, 1fr) 64px; }
  .product-row .button { grid-column: 2 / -1; justify-self: start; }
  .summary-line { grid-template-columns: minmax(0, 1fr) auto; }
  .summary-line > span.muted { grid-column: 1; grid-row: 2; }
  .promo-head { grid-template-columns: auto minmax(0, 1fr); }
  .promo-head .from { grid-column: 2; }
}

/* landing: nosotros, contacto y WhatsApp */
.section-soft { max-width: none; background: var(--gold-soft); }
.about { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 2rem 4rem; max-width: 1200px; margin: 0 auto; }
.about-list { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; gap: .6rem; }
.about-list li { padding-left: 1.4rem; position: relative; }
.about-list li::before { content: "✦"; position: absolute; left: 0; color: var(--gold); }
.contact { text-align: center; }
.contact .lead { color: var(--ink-soft); }
.contact-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: .8rem; margin-top: 1.5rem; }
.footer-contact { display: flex; flex-wrap: wrap; justify-content: center; gap: .4rem 1.5rem; }
.footer-contact a { color: var(--ink-soft); }
.wa-float { position: fixed; right: 1.2rem; bottom: 1.2rem; z-index: 40; display: grid; place-items: center; width: 56px; height: 56px;
  border-radius: 50%; background: #25d366; color: #fff; box-shadow: var(--shadow); transition: transform .15s; }
.wa-float:hover { transform: scale(1.06); }
@media (max-width: 900px) {
  .about { grid-template-columns: 1fr; }
  .nav .button-small { display: none; }
}
