:root {
  --bg: #f4efe7;
  --card: rgba(255, 253, 248, 0.78);
  --ink: #111111;
  --muted: rgba(17, 17, 17, 0.62);
  --line: rgba(17, 17, 17, 0.12);
  --white: #ffffff;
  --bone: #f8f3eb;
  --shadow: 0 28px 90px rgba(17, 17, 17, 0.10);
  --serif: "Cormorant Garamond", serif;
  --sans: "Inter", sans-serif;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  overflow-x: hidden;
}

body {
  font-family: var(--sans);
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(255,255,255,.72), transparent 34%),
    radial-gradient(circle at right, rgba(218,204,184,.34), transparent 32%),
    linear-gradient(135deg, #f8f4ee, #eee3d6);
}

button,
input,
select {
  font: inherit;
}

button {
  border: 0;
  cursor: pointer;
}

img {
  display: block;
  width: 100%;
}

.quote-page {
  min-height: 100vh;
  padding: 24px;
}

.quote-shell {
  position: relative;
  min-height: calc(100vh - 48px);
  border: 1px solid var(--line);
  border-radius: 42px;
  background: rgba(255, 253, 248, 0.56);
  box-shadow: var(--shadow);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  overflow: hidden;
}

.progress-area {
  position: absolute;
  top: 28px;
  left: 34px;
  right: 34px;
  z-index: 20;
}

.kicker,
.step-number {
  display: inline-block;
  margin-bottom: 12px;
  font-size: 11px;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 700;
}

.progress-top {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 12px;
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 700;
}

.progress-bar {
  height: 8px;
  border-radius: 999px;
  background: rgba(17,17,17,.08);
  overflow: hidden;
}

.progress-bar span {
  display: block;
  width: 25%;
  height: 100%;
  border-radius: inherit;
  background: #111;
  transition: width .55s var(--ease);
}

.step {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  padding: 130px 38px 48px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(34px) scale(.985);
  filter: blur(10px);
  transition:
    opacity .58s var(--ease),
    transform .68s var(--ease),
    filter .58s ease,
    visibility 0s linear .6s;
}

.step.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0) scale(1);
  filter: blur(0);
  transition:
    opacity .7s var(--ease),
    transform .78s var(--ease),
    filter .62s ease,
    visibility 0s linear 0s;
}

.step-content {
  width: min(1180px, 100%);
  margin: 0 auto;
}

.step h1 {
  max-width: 860px;
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(46px, 7vw, 96px);
  line-height: .9;
  font-weight: 500;
  letter-spacing: -.04em;
}

.step-content > p {
  max-width: 720px;
  margin: 18px 0 32px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.75;
}

/* GRID PRODUCTOS */



/* CANTIDADES */

.qty-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  max-width: 920px;
  margin-bottom: 28px;
}

.qty-btn {
  min-height: 68px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255,255,255,.72);
  color: var(--ink);
  font-weight: 700;
  transition: .25s var(--ease);
}

.qty-btn:hover {
  transform: translateY(-2px);
}

.qty-btn.is-active {
  background: #111;
  color: var(--bone);
  border-color: #111;
}

/* INPUTS */

label {
  display: block;
  margin-bottom: 10px;
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 700;
}

input,
select {
  width: 100%;
  min-height: 58px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255,255,255,.78);
  color: var(--ink);
  padding: 0 18px;
  outline: none;
}

#customQty {
  max-width: 920px;
}

input:focus,
select:focus {
  border-color: rgba(17,17,17,.35);
  box-shadow: 0 0 0 5px rgba(210, 194, 170, .25);
}

/* TOOLS PALETA */

.palette-tools {
  display: grid;
  grid-template-columns: 1fr 220px;
  gap: 14px;
  max-width: 920px;
  margin-bottom: 24px;
}

/* CARRUSEL COLORES */

.palette-grid {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  overflow-y: hidden;
  max-height: none;
  padding: 6px 4px 18px;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.palette-grid::-webkit-scrollbar {
  display: none;
}

.color-card {
  flex: 0 0 178px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255,255,255,.72);
  padding: 16px;
  text-align: left;
  transition:
    transform .25s var(--ease),
    border-color .25s var(--ease),
    box-shadow .25s var(--ease);
  scroll-snap-align: center;
  animation: colorEnter .42s var(--ease) both;
}

@keyframes colorEnter {
  from {
    opacity: 0;
    transform: translateX(42px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.color-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 42px rgba(17,17,17,.08);
}

.color-card.is-active {
  border-color: rgba(17,17,17,.42);
  box-shadow: inset 0 0 0 1px rgba(17,17,17,.18);
}

.color-chips,
.summary-chips {
  display: flex;
  gap: 7px;
  margin-bottom: 14px;
}

.color-chips span,
.summary-chips span {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid rgba(17,17,17,.13);
  box-shadow: 0 6px 16px rgba(17,17,17,.08);
}

.color-name {
  display: block;
  font-family: var(--serif);
  font-size: 21px;
  line-height: 1;
  margin-bottom: 6px;
}

.color-family {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

/* SUMMARY */

.summary-card {
  width: min(620px, 100%);
  border: 1px solid var(--line);
  border-radius: 34px;
  background: rgba(255,255,255,.76);
  box-shadow: 0 24px 70px rgba(17,17,17,.08);
  padding: 28px;
}

.summary-color {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
}

.summary-color p {
  margin: 6px 0 0;
  color: var(--muted);
}

.summary-line {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.summary-line span {
  color: var(--muted);
}

.summary-line strong {
  text-align: right;
}

.summary-line.total strong {
  font-family: var(--serif);
  font-size: 34px;
  font-weight: 500;
}

.summary-note {
  color: var(--muted);
  line-height: 1.7;
}

/* BOTONES */

.quote-btn,
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  border-radius: 999px;
  padding: 0 26px;
  text-decoration: none;
  letter-spacing: .14em;
  text-transform: uppercase;
  font-size: 11px;
  font-weight: 800;
  transition: .25s var(--ease);
}

.btn-primary,
.quote-btn {
  background: #111;
  color: var(--bone);
}

.btn-ghost {
  background: rgba(255,255,255,.72);
  color: var(--ink);
  border: 1px solid var(--line);
}

.btn:hover,
.quote-btn:hover {
  transform: translateY(-2px);
}

.step-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 34px;
}

/* TABLET */



/* MOBILE */

@media (max-width: 820px) {

  .quote-page {
    padding: 12px;
  }

  .quote-shell {
    min-height: calc(100vh - 24px);
    border-radius: 28px;
  }

  .progress-area {
    top: 22px;
    left: 20px;
    right: 20px;
  }

  .step {
    padding: 120px 20px 34px;
    align-items: flex-start;
    overflow-y: auto;
  }

  .step h1 {
    font-size: 46px;
  }

  

  
  .qty-grid {
    grid-template-columns: 1fr 1fr;
  }

  .palette-tools {
    grid-template-columns: 1fr;
  }

  .palette-grid {
    display: flex;
    overflow-x: auto;
    overflow-y: hidden;
    gap: 12px;
    padding-bottom: 18px;
    max-height: none;
  }

  .color-card {
    flex: 0 0 72%;
  }

  .summary-card {
    padding: 22px;
  }
}

/* MOBILE PEQUEÑO */

@media (max-width: 520px) {

  .step h1 {
    font-size: 38px;
  }

 

  .qty-grid {
    grid-template-columns: 1fr;
  }

  .color-card {
    flex: 0 0 82%;
  }

  .step-actions .btn,
  .quote-btn {
    width: 100%;
  }
}

.qty-price-preview {
  max-width: 920px;
  margin: 22px 0 0;
  padding: 22px 24px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255,255,255,.72);
  box-shadow: 0 18px 48px rgba(17,17,17,.06);
}

.qty-price-preview span {
  display: block;
  margin-bottom: 8px;
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 800;
}

.qty-price-preview strong {
  display: block;
  font-family: var(--serif);
  font-size: 38px;
  line-height: 1;
  font-weight: 500;
}

.qty-price-preview p {
  margin: 10px 0 6px;
  color: var(--ink);
}

.qty-price-preview small {
  color: var(--muted);
}



/* =========================================================
   CUSTOM COLOR
   ========================================================= */

.custom-color-box,
.candle-size-note{
  margin-top:32px;
  padding:28px;

  border-radius:28px;

  background:rgba(255,255,255,.68);
  border:1px solid var(--line);
}

.custom-color-box h3,
.candle-size-note h3{
  margin:0 0 12px;

  font-family:var(--serif);
  font-size:34px;
  font-weight:500;
}

.custom-color-box p,
.candle-size-note p{
  margin:0 0 14px;

  color:var(--muted);
  line-height:1.7;
}

.custom-color-box textarea{
  width:100%;
  min-height:140px;

  margin-top:18px;
  padding:22px;

  resize:none;
  outline:none;

  border-radius:24px;
  border:1px solid var(--line);

  background:#fff;

  font:inherit;
}

.event-date-box {
  max-width: 920px;
  margin: 24px 0 0;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255,255,255,.72);
}

.event-date-box h3 {
  margin: 0 0 10px;
  font-family: var(--serif);
  font-size: 34px;
  font-weight: 500;
}

.event-date-box p {
  color: var(--muted);
  line-height: 1.7;
}

.client-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  max-width: 920px;
}

.client-note,
.qty-price-preview,
.custom-color-box,
.candle-size-note {
  max-width: 920px;
  margin: 24px 0 0;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255,255,255,.72);
  box-shadow: 0 18px 48px rgba(17,17,17,.06);
}

.client-note strong,
.qty-price-preview span {
  display: block;
  margin-bottom: 8px;
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 800;
}

.qty-price-preview strong {
  display: block;
  font-family: var(--serif);
  font-size: 38px;
  line-height: 1;
  font-weight: 500;
}

.client-note p,
.qty-price-preview p,
.custom-color-box p,
.candle-size-note p {
  margin: 10px 0 6px;
  color: var(--muted);
  line-height: 1.7;
}

.qty-price-preview small {
  color: var(--muted);
}

.custom-color-box h3,
.candle-size-note h3 {
  margin: 0 0 12px;
  font-family: var(--serif);
  font-size: 34px;
  font-weight: 500;
}

.custom-color-box textarea {
  width: 100%;
  min-height: 140px;
  margin-top: 18px;
  padding: 22px;
  resize: none;
  outline: none;
  border-radius: 24px;
  border: 1px solid var(--line);
  background: #fff;
  font: inherit;
}

@media (max-width: 820px) {
  .client-grid {
    grid-template-columns: 1fr;
  }
}

/* =========================================================
   INTRO STEP
   ========================================================= */

.intro-step{
  display:block;
}

.intro-shell{
  min-height:calc(100vh - 120px);

  padding:42px;

  border-radius:42px;

  background:
    radial-gradient(
      circle at top left,
      rgba(255,255,255,.78),
      rgba(255,255,255,.26)
    ),
    #f5f0e8;

  border:1px solid rgba(17,17,17,.06);

  overflow:hidden;

  position:relative;
}

.intro-top{
  display:flex;
  align-items:center;
  justify-content:space-between;

  margin-bottom:42px;
}

.intro-brand{
  display:flex;
  align-items:center;
  gap:12px;

  font-size:14px;
  letter-spacing:.22em;
  text-transform:uppercase;
  font-weight:700;
}

.intro-brand span{
  width:14px;
  height:14px;

  border-radius:999px;

  background:#d8c9b4;
}

.intro-top p{
  margin:0;

  font-size:13px;
  letter-spacing:.22em;
  text-transform:uppercase;

  color:rgba(17,17,17,.56);
}

.intro-progress{
  display:flex;
  align-items:center;
  gap:22px;

  margin-bottom:72px;
}

.intro-progress strong{
  font-size:16px;
  font-weight:600;
}

.intro-progress-bar{
  flex:1;
  height:10px;

  border-radius:999px;

  overflow:hidden;

  background:rgba(17,17,17,.06);
}

.intro-progress-bar span{
  display:block;

  width:14%;
  height:100%;

  border-radius:999px;

  background:#d6c3aa;
}

.intro-content{
  max-width:980px;
}

.intro-kicker{
  display:block;

  margin-bottom:26px;

  font-size:14px;
  letter-spacing:.32em;
  text-transform:uppercase;
  font-weight:700;

  color:rgba(17,17,17,.72);
}

.intro-content h1{
  margin:0 0 30px;

  font-family:var(--serif);

  font-size:clamp(72px, 9vw, 128px);

  line-height:.92;
  letter-spacing:-.06em;
  font-weight:500;
}

.intro-content p{
  max-width:920px;

  font-size:30px;
  line-height:1.72;

  color:rgba(17,17,17,.58);
}

.intro-notes{
  display:grid;
  grid-template-columns:repeat(2,1fr);

  gap:22px;

  margin-top:52px;
  margin-bottom:52px;
}

.intro-note{
  padding:28px;

  border-radius:28px;

  background:rgba(255,255,255,.58);

  border:1px solid rgba(17,17,17,.06);

  backdrop-filter:blur(10px);
}

.intro-note strong{
  display:block;

  margin-bottom:12px;

  font-size:13px;
  letter-spacing:.24em;
  text-transform:uppercase;
}

.intro-note p{
  margin:0;

  font-size:17px;
  line-height:1.8;
}

.intro-button{
  min-width:320px;
  height:76px;

  margin-top:12px;
}

/* MOBILE */

@media (max-width: 820px){

  .intro-shell{
    min-height:auto;
    padding:26px;
    border-radius:34px;
  }

  .intro-top{
    margin-bottom:34px;
  }

  .intro-progress{
    margin-bottom:54px;
  }

  .intro-content h1{
    font-size:clamp(54px, 14vw, 88px);
  }

  .intro-content p{
    font-size:18px;
    line-height:1.9;
  }

  .intro-notes{
    grid-template-columns:1fr;
  }

  .intro-button{
    width:100%;
    min-width:100%;
  }

}