/* «A medida»: los dos caminos para pedir el diseño (WhatsApp o el formulario corto). */
/* Los dos botones uno sobre otro y del mismo ancho (el del más largo). */
.custom-invitation-actions { display: grid; width: fit-content; max-width: 100%; gap: 0.7rem; margin-top: 1.75rem; }
.custom-invitation-actions .custom-invitation-whatsapp { margin-top: 0; }
.custom-invitation-form-link { border-color: rgba(255, 250, 246, 0.45); color: #fffaf6; background: transparent; }
.custom-invitation-form-link:hover, .custom-invitation-form-link:focus-visible { border-color: #dfbd8a; color: #2b1e1d; background: #dfbd8a; }

.custom-page .custom-design-hero { padding-bottom: clamp(3.5rem, 7vw, 5.5rem); }

/* El precio, ya en la tarjeta oscura de arriba, para que se vea sin bajar. */
.custom-invitation-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.35rem 0.6rem; margin: 1.4rem 0 0; color: rgba(255, 250, 246, 0.72); font-family: var(--legible); font-size: 0.95rem; }
.custom-invitation-price strong { color: #fffaf6; font-family: var(--legible); font-size: clamp(1.9rem, 3vw, 2.3rem); font-weight: 700; letter-spacing: -0.01em; line-height: 1; }
.custom-invitation-price a { color: #dfbd8a; font-weight: 600; text-underline-offset: 0.2em; }

/* Precios: personalizada y pack lado a lado, y abajo en qué se diferencia una plantilla. */
.custom-prices { padding-bottom: clamp(3.5rem, 7vw, 5.5rem); scroll-margin-top: 1.5rem; }
.custom-prices-head { max-width: 40rem; }
.custom-prices-head h2 { margin: 0.5rem 0 0; color: var(--wine-dark); font-family: var(--script); font-size: clamp(2.3rem, 4vw, 3.3rem); font-style: italic; font-weight: 500; line-height: 1.05; }
.custom-prices-head > p:not(.eyebrow) { margin: 1rem 0 0; color: var(--muted); font-family: var(--legible); font-size: 1rem; line-height: 1.65; }
.custom-prices-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; margin-top: 2rem; }
.custom-price-card { position: relative; display: flex; flex-direction: column; gap: 0.9rem; padding: clamp(1.4rem, 3vw, 2rem); border: 1px solid #eadfd6; border-radius: 1.4rem; background: #fffdf9; box-shadow: 0 1.5rem 4rem rgba(55, 35, 31, 0.07); }
.custom-price-card.is-pack { border-color: #dfc79f; background: linear-gradient(180deg, #fffaf1 0%, #fffdf9 60%); }
.custom-price-badge { position: absolute; top: -0.8rem; right: 1.4rem; margin: 0; padding: 0.35rem 0.75rem; border-radius: 999px; background: var(--wine); color: #fff; font-family: var(--legible); font-size: 0.75rem; font-weight: 700; letter-spacing: 0.04em; }
.custom-price-name { margin: 0; color: var(--wine-dark); font-family: var(--legible); font-size: 0.85rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; }
.custom-price-amount { display: flex; align-items: baseline; gap: 0.45rem; margin: 0; color: var(--muted); font-family: var(--legible); font-size: 0.95rem; }
.custom-price-amount strong { color: var(--ink); font-size: clamp(2.2rem, 4vw, 2.8rem); font-weight: 700; letter-spacing: -0.02em; line-height: 1; }
.custom-price-list { display: grid; gap: 0.55rem; margin: 0.3rem 0 0; padding: 0; list-style: none; }
.custom-price-list li { position: relative; padding-left: 1.6rem; color: var(--ink); font-family: var(--legible); font-size: 0.95rem; line-height: 1.5; }
.custom-price-list li::before { position: absolute; top: 0; left: 0; color: var(--wine); font-weight: 700; content: '✓'; }
.custom-price-pick { justify-content: center; margin-top: auto; }
.custom-price-card .button-outline { border-color: var(--wine); color: var(--wine); }
.custom-price-card .button-outline:hover, .custom-price-card .button-outline:focus-visible { background: var(--wine); color: #fff; }
.custom-price-card.is-pack .button { border-color: var(--wine); background: var(--wine); color: #fff; }
.custom-price-card.is-pack .button:hover, .custom-price-card.is-pack .button:focus-visible { border-color: var(--wine-dark); background: var(--wine-dark); }
.custom-prices-template { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.8rem 1.5rem; margin-top: 1.25rem; padding: 1.1rem 1.4rem; border: 1px dashed #d9c6d6; border-radius: 1.1rem; background: rgba(255, 253, 249, 0.6); }
.custom-prices-template p { flex: 1 1 26rem; margin: 0; color: var(--muted); font-family: var(--legible); font-size: 0.95rem; line-height: 1.6; }
.custom-prices-template strong { display: block; color: var(--wine-dark); }
.custom-prices-template a { color: var(--wine); font-family: var(--legible); font-weight: 700; text-decoration: none; white-space: nowrap; }
.custom-prices-template a:hover, .custom-prices-template a:focus-visible { text-decoration: underline; }
.custom-request {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  align-items: start;
  gap: clamp(2rem, 5vw, 4.5rem);
  padding-bottom: clamp(4rem, 8vw, 7rem);
  scroll-margin-top: 1.5rem;
}
.custom-request-intro h2 { margin: 0.5rem 0 0; color: var(--wine-dark); font-family: var(--script); font-size: clamp(2.3rem, 4vw, 3.3rem); font-style: italic; font-weight: 500; line-height: 1.05; }
.custom-request-intro > p:not(.eyebrow) { margin: 1rem 0 0; color: var(--muted); font-family: var(--legible); font-size: 1rem; line-height: 1.65; }
.custom-request-steps { display: grid; gap: 1rem; margin: 2rem 0 0; padding: 0; list-style: none; counter-reset: paso; }
.custom-request-steps li { display: grid; grid-template-columns: 2.2rem minmax(0, 1fr); column-gap: 0.9rem; counter-increment: paso; }
.custom-request-steps li::before { grid-row: span 2; display: grid; width: 2.2rem; height: 2.2rem; place-items: center; border: 1px solid #d9c6d6; border-radius: 50%; color: var(--wine); font-family: var(--legible); font-size: 0.9rem; font-weight: 700; content: counter(paso); }
.custom-request-steps strong { color: var(--wine-dark); font-family: var(--legible); font-size: 0.95rem; font-weight: 700; line-height: 1.4; }
.custom-request-steps span { color: var(--muted); font-family: var(--legible); font-size: 0.88rem; line-height: 1.5; }

.custom-request-card { padding: clamp(1.4rem, 3vw, 2.2rem); border: 1px solid #eadfd6; border-radius: 1.4rem; background: #fffdf9; box-shadow: 0 1.5rem 4rem rgba(55, 35, 31, 0.08); }
.custom-request-form { display: grid; gap: 1rem; }
.custom-request-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.custom-request-field { display: grid; gap: 0.4rem; min-width: 0; }
.custom-request-field[hidden] { display: none; }
.custom-request-field span { color: var(--wine-dark); font-family: var(--legible); font-size: 0.85rem; font-weight: 600; }
.custom-request-field input, .custom-request-field textarea {
  width: 100%;
  min-width: 0;
  padding: 0.8rem 0.95rem;
  border: 1px solid #e2d4ca;
  border-radius: 0.8rem;
  background: #fff;
  color: var(--ink);
  font-family: var(--legible);
  font-size: 1rem;
  line-height: 1.45;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}
.custom-request-field textarea { min-height: 8.5rem; resize: vertical; }
/* Personalizada o pack: dos opciones grandes, la elegida con el borde vino. */
.custom-request-plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.7rem; margin: 0; padding: 0; border: 0; min-width: 0; }
.custom-request-plans legend { margin-bottom: 0.4rem; padding: 0; color: var(--wine-dark); font-family: var(--legible); font-size: 0.85rem; font-weight: 600; }
.custom-request-plan { display: flex; align-items: flex-start; gap: 0.6rem; padding: 0.8rem 0.95rem; border: 1px solid #e2d4ca; border-radius: 0.8rem; background: #fff; cursor: pointer; transition: border-color 160ms ease, box-shadow 160ms ease; }
.custom-request-plan:has(input:checked) { border-color: var(--wine); box-shadow: 0 0 0 2px rgba(148, 59, 67, 0.14); }
.custom-request-plan input { margin: 0.2rem 0 0; accent-color: var(--wine); }
.custom-request-plan > span { display: grid; gap: 0.15rem; font-family: var(--legible); }
.custom-request-plan strong { color: var(--ink); font-size: 0.95rem; }
.custom-request-plan em { color: var(--muted); font-size: 0.85rem; font-style: normal; }
.custom-request-plan b { color: var(--wine-dark); }
.custom-request-field input:focus, .custom-request-field textarea:focus { border-color: #9270aa; outline: 0; box-shadow: 0 0 0 3px rgba(146, 112, 170, 0.18); }
.custom-request-field ::placeholder { color: #a39a94; }
.custom-request-signed { margin: 0; padding: 0.75rem 0.95rem; border-radius: 0.8rem; background: #f4edf3; color: var(--wine-dark); font-family: var(--legible); font-size: 0.9rem; }
.custom-request-error { margin: 0; padding: 0.7rem 0.9rem; border-radius: 0.7rem; background: #fbeceb; color: #8a2b2b; font-family: var(--legible); font-size: 0.9rem; }
.custom-request-error a { color: inherit; font-weight: 700; }
.custom-request-submit { width: 100%; min-height: 3.2rem; border-color: var(--wine); background: var(--wine); color: #fff; }
.custom-request-submit:hover, .custom-request-submit:focus-visible { border-color: var(--wine-dark); background: var(--wine-dark); color: #fff; }
.custom-request-submit:disabled { opacity: 0.7; cursor: progress; }
.custom-request-note { margin: 0; color: var(--muted); font-family: var(--legible); font-size: 0.82rem; line-height: 1.5; text-align: center; }
.custom-request-note a { color: var(--wine); font-weight: 600; }

.custom-request-done { display: grid; justify-items: center; gap: 0.7rem; padding: 1.5rem 0.5rem; text-align: center; outline: 0; }
.custom-request-done[hidden] { display: none; }
.custom-request-done-mark { display: grid; width: 3.2rem; height: 3.2rem; place-items: center; border-radius: 50%; background: #e8f2ea; color: #287549; font-family: var(--legible); font-size: 1.4rem; font-weight: 700; }
.custom-request-done h3 { margin: 0.3rem 0 0; color: var(--wine-dark); font-family: var(--script); font-size: 2.1rem; font-style: italic; font-weight: 500; }
.custom-request-done p { max-width: 28rem; margin: 0; color: var(--muted); font-family: var(--legible); font-size: 0.95rem; line-height: 1.6; }
.custom-request-done .button { margin-top: 0.5rem; }

@media (max-width: 60rem) {
  .custom-request { grid-template-columns: minmax(0, 1fr); }
  .custom-prices-grid { grid-template-columns: minmax(0, 1fr); gap: 1.6rem; }
}
@media (max-width: 40rem) {
  .custom-invitation-actions { width: 100%; }
  .custom-request { width: calc(100% - 2.5rem); }
  .custom-prices { width: calc(100% - 2.5rem); }
  .custom-request-plans { grid-template-columns: minmax(0, 1fr); }
  .custom-request-steps { gap: 0.8rem; margin-top: 1.5rem; }
  .custom-request-grid { grid-template-columns: minmax(0, 1fr); gap: 0.85rem; }
  .custom-request-card { padding: 1.2rem; border-radius: 1.1rem; }
}
