/*
 * Luxury Surprise — estilos
 *
 * Paleta tomada del sitio original (Elementor):
 *   #E8B455 oro · #B47E39 oro oscuro · #F4C2A8 durazno · #EAD3BB beige · #FDEBE0 rubor
 * Contraste (WCAG AA):
 *   - #E8B455 NO va como color de texto (1,9:1 sobre blanco). Solo en formas y fondos.
 *   - #B47E39 solo en títulos grandes (3,5:1 → válido desde 24px).
 *   - Texto chico y botones usan --oro-profundo #8C5A22 (5,8:1) y --cacao.
 * Tipografía: la original era Cocogoose Pro *trial* (licencia no comercial; reemplaza
 * los números por "TRIAL ONLY") y Calisga. Se reemplazan por Poppins y Fraunces (Google Fonts, OFL).
 */
:root {
  --rubor: #FCE9DF;
  --rubor-2: #FDF4EE;
  --durazno: #F4C2A8;
  --beige: #EAD3BB;
  --oro: #E8B455;
  --oro-oscuro: #B47E39;
  --oro-profundo: #8C5A22;
  --cacao: #3F2A1C;
  --cacao-2: #6B5343;
  --blanco: #FFFFFF;
  --verde-wa: #0E7C40;
  --error: #B3261E;

  --serif: "Fraunces", Georgia, serif;
  --sans: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
  --radio: 18px;
  --sombra: 0 10px 30px rgba(140, 90, 34, .12);
  --ancho: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--cacao);
  background: var(--blanco);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button { font: inherit; cursor: pointer; }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .5em; }
:focus-visible { outline: 3px solid var(--oro-oscuro); outline-offset: 3px; border-radius: 6px; }

.skip { position: absolute; left: -999px; top: 0; background: var(--cacao); color: #fff; padding: .6rem 1rem; z-index: 100; }
.skip:focus { left: 1rem; top: 1rem; }
.contenedor { width: min(var(--ancho), 100% - 32px); margin-inline: auto; }
.eyebrow {
  font-size: .8rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--oro-profundo); margin: 0 0 .6rem;
}
.req { color: var(--error); }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 48px; padding: .75rem 1.6rem; border-radius: 999px; border: 2px solid transparent;
  font-weight: 600; font-size: .95rem; letter-spacing: .04em; text-transform: uppercase;
  text-decoration: none; transition: transform .15s ease, background-color .15s ease, box-shadow .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn--primario { background: var(--oro-profundo); color: var(--blanco); box-shadow: 0 6px 18px rgba(140, 90, 34, .28); }
.btn--primario:hover { background: #74481A; }
.btn--linea { border-color: var(--oro-profundo); color: var(--oro-profundo); background: transparent; }
.btn--linea:hover { background: var(--rubor); }
.btn--suave { background: var(--beige); color: var(--oro-profundo); }
.btn--suave:hover { background: var(--durazno); }
.btn--whatsapp { background: var(--verde-wa); color: #fff; text-transform: none; letter-spacing: 0; font-size: 1rem; }
.btn--whatsapp:hover { background: #0A6634; }
.btn--bloque { width: 100%; }

/* ---------- Topbar + header ---------- */
.topbar {
  margin: 0; padding: .5rem 1rem; text-align: center;
  background: var(--oro-oscuro); color: var(--blanco);
  font-size: .8rem; font-weight: 500; letter-spacing: .03em;
}
.header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(255, 255, 255, .94); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--rubor);
}
.header__inner { width: min(var(--ancho), 100% - 32px); margin-inline: auto; display: flex; align-items: center; gap: 1.5rem; min-height: 72px; }
.header__logo img { width: 120px; }
.nav { display: none; gap: 1.8rem; margin-left: auto; }
.nav a { text-decoration: none; font-size: .88rem; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; color: var(--cacao-2); }
.nav a:hover { color: var(--oro-profundo); }
.cart-btn {
  margin-left: auto; position: relative; display: inline-flex; align-items: center; gap: .45rem;
  background: var(--rubor); color: var(--cacao); border: 1.5px solid var(--durazno);
  border-radius: 999px; padding: .55rem 1rem; font-weight: 600; font-size: .9rem;
}
.cart-btn:hover { background: var(--durazno); }
.cart-btn__count {
  min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; display: inline-grid; place-items: center;
  background: var(--oro-profundo); color: #fff; font-size: .75rem;
}
.cart-btn__count[hidden] { display: none; }
.cart-btn__count.pulso { animation: pulso .45s ease; }
@keyframes pulso { 50% { transform: scale(1.35); } }
@media (min-width: 900px) {
  .header__logo img { width: 150px; }
  .nav { display: flex; }
  .cart-btn { margin-left: 1rem; }
}
@media (max-width: 420px) { .cart-btn__label { display: none; } }

/* ---------- Hero ---------- */
.hero { background: var(--rubor); overflow: hidden; }
.hero__inner {
  width: min(var(--ancho), 100% - 32px); margin-inline: auto;
  display: grid; gap: 2rem; padding: 2.5rem 0 3rem; align-items: center;
}
.hero h1 {
  font-family: var(--serif); font-variation-settings: "SOFT" 100; font-weight: 650;
  font-size: clamp(2.3rem, 7vw, 4rem); color: var(--oro-oscuro); letter-spacing: -.01em;
}
.hero__lead { font-size: 1.08rem; color: var(--cacao-2); max-width: 36ch; }
.hero__lead strong { color: var(--cacao); }
.hero__ctas { display: flex; flex-wrap: wrap; gap: .8rem; margin: 1.6rem 0 1.4rem; }
.hero__datos { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.hero__datos li {
  font-size: .8rem; font-weight: 500; color: var(--oro-profundo);
  background: var(--blanco); border-radius: 999px; padding: .35rem .85rem;
}
@media (max-width: 559px) {
  .hero__ctas .btn { flex: 1; padding-inline: .7rem; font-size: .8rem; }
  .hero__datos li:nth-child(n+2) { display: none; }
}
.hero__media { position: relative; justify-self: center; width: min(460px, 100%); }
.hero__arco {
  position: absolute; inset: 8% -18% -10% 22%; border-radius: 50%;
  background: var(--oro); opacity: .9; z-index: 0;
}
.hero__media img {
  position: relative; z-index: 1; border-radius: 240px 240px var(--radio) var(--radio);
  aspect-ratio: 4 / 5; object-fit: cover; box-shadow: var(--sombra); border: 6px solid var(--blanco);
}
@media (min-width: 900px) {
  .hero__inner { grid-template-columns: 1.1fr .9fr; padding: 4rem 0 4.5rem; }
  .hero__media { justify-self: end; }
}

/* ---------- Secciones ---------- */
.seccion { padding: 4rem 0; }
.seccion--durazno { background: linear-gradient(180deg, var(--rubor-2), var(--rubor)); }
.seccion--rubor { background: var(--rubor-2); }
.seccion__head { text-align: center; max-width: 640px; margin: 0 auto 2.4rem; }
.seccion__head h2 {
  font-family: var(--serif); font-variation-settings: "SOFT" 100; font-weight: 650;
  font-size: clamp(1.8rem, 4.5vw, 2.6rem); color: var(--oro-oscuro);
}
.seccion__head p { color: var(--cacao-2); margin: 0; }

/* ---------- Tarjetas de producto ---------- */
.grilla { display: grid; gap: 1.2rem; grid-template-columns: 1fr; }
@media (min-width: 560px) { .grilla { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .grilla { grid-template-columns: repeat(3, 1fr); gap: 1.6rem; } .grilla--dos { grid-template-columns: repeat(2, 1fr); } }
.grilla--dos { max-width: 760px; margin-inline: auto; }
.card {
  display: flex; flex-direction: column; background: var(--blanco); border-radius: var(--radio);
  overflow: hidden; box-shadow: 0 2px 0 var(--rubor), var(--sombra); text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 2px 0 var(--durazno), 0 16px 36px rgba(140, 90, 34, .18); }
.card__img { position: relative; aspect-ratio: 4 / 5; background: var(--rubor); }
.card__img img { width: 100%; height: 100%; object-fit: cover; }
.card__tag {
  position: absolute; top: .8rem; left: .8rem; background: rgba(255, 255, 255, .92);
  color: var(--oro-profundo); font-size: .72rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  padding: .3rem .7rem; border-radius: 999px;
}
.card__body { padding: 1.1rem 1.2rem 1.3rem; display: flex; flex-direction: column; gap: .35rem; flex: 1; }
.card__nombre { font-family: var(--serif); font-variation-settings: "SOFT" 100; font-weight: 650; font-size: 1.45rem; margin: 0; color: var(--cacao); }
.card__bajada { font-size: .9rem; color: var(--cacao-2); margin: 0; flex: 1; }
.card__pie { display: flex; align-items: center; justify-content: space-between; gap: .8rem; margin-top: .6rem; }
.card__precio { font-size: 1.25rem; font-weight: 700; color: var(--oro-profundo); }
.card__cta {
  font-size: .82rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
  background: var(--oro-profundo); color: #fff; border-radius: 999px; padding: .55rem 1.1rem;
}

/* ---------- Nosotros ---------- */
.nosotros { background: var(--rubor); padding: 4rem 0; }
.nosotros__inner { display: grid; gap: 2rem; align-items: center; }
.nosotros__media img { border-radius: var(--radio); aspect-ratio: 4 / 5; object-fit: cover; width: min(420px, 100%); margin-inline: auto; box-shadow: var(--sombra); }
.titulo-serif { font-family: var(--serif); font-variation-settings: "SOFT" 100; font-weight: 650; font-size: clamp(1.9rem, 4.5vw, 2.8rem); color: var(--oro-oscuro); }
.nosotros__text p { color: var(--cacao-2); max-width: 52ch; }
.nosotros__text .btn { margin-top: .8rem; }
@media (min-width: 900px) { .nosotros__inner { grid-template-columns: .9fr 1.1fr; gap: 4rem; } }

/* ---------- Cómo comprar ---------- */
.pasos { list-style: none; padding: 0; margin: 0; display: grid; gap: 1.6rem; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); counter-reset: paso; }
.pasos li { text-align: center; counter-increment: paso; }
.pasos img { width: 120px; margin: 0 auto .8rem; }
.pasos h3 { font-size: 1rem; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; color: var(--oro-profundo); margin-bottom: .3rem; }
.pasos h3::before { content: counter(paso) ". "; }
.pasos p { font-size: .9rem; color: var(--cacao-2); margin: 0 auto; max-width: 24ch; }

/* ---------- Testimonios ---------- */
.testimonios {
  list-style: none; padding: 0 0 1rem; margin: 0; display: grid; grid-auto-flow: column;
  grid-auto-columns: min(82%, 320px); gap: 1rem; overflow-x: auto; scroll-snap-type: x mandatory;
}
.testimonios li { scroll-snap-align: start; background: var(--blanco); border-radius: var(--radio); padding: 1.5rem; box-shadow: var(--sombra); display: flex; flex-direction: column; }
.testimonios blockquote { margin: 0 0 1rem; font-size: .98rem; flex: 1; }
.testimonios li::before { content: "“"; font-family: var(--serif); color: var(--durazno); font-size: 3.4rem; line-height: .8; height: 1.6rem; }
.testimonios p { margin: 0; font-weight: 600; color: var(--oro-profundo); }
@media (min-width: 1000px) { .testimonios { grid-auto-flow: row; grid-template-columns: repeat(3, 1fr); overflow: visible; } }

/* ---------- Instagram ---------- */
.ig { text-align: center; }
.ig__usuario { font-family: var(--sans) !important; font-weight: 600 !important; font-size: clamp(1.3rem, 4vw, 2rem) !important; }
.ig__grilla { display: grid; grid-template-columns: repeat(3, 1fr); gap: .6rem; margin-bottom: 1.8rem; }
.ig__grilla img { aspect-ratio: 1; object-fit: cover; border-radius: 12px; width: 100%; transition: opacity .2s; }
.ig__grilla a:hover img { opacity: .85; }

/* ---------- Footer ---------- */
.footer { background: var(--cacao); color: #F3E6DA; padding: 3rem 0 1.5rem; }
.footer__inner { display: grid; gap: 2rem; }
.footer img { filter: brightness(1.05); background: var(--rubor); border-radius: 14px; padding: .6rem 1rem; }
.footer h2 { font-size: .85rem; letter-spacing: .12em; text-transform: uppercase; color: var(--durazno); margin-bottom: .8rem; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .45rem; font-size: .92rem; }
.footer a { text-decoration: none; }
.footer a:hover { text-decoration: underline; }
.footer__legal { text-align: center; font-size: .78rem; color: #C9B6A6; margin: 2.5rem 0 0; }
@media (min-width: 800px) { .footer__inner { grid-template-columns: auto 1fr 1fr; gap: 4rem; } }

/* ---------- WhatsApp flotante ---------- */
.wa-flotante {
  position: fixed; right: 16px; bottom: 16px; z-index: 30; display: inline-flex; align-items: center; gap: .5rem;
  background: var(--verde-wa); color: #fff; text-decoration: none; font-weight: 600; font-size: .9rem;
  padding: .7rem 1.1rem .7rem .8rem; border-radius: 999px; box-shadow: 0 8px 24px rgba(0, 0, 0, .22);
}
.wa-flotante:hover { background: #0A6634; }
@media (max-width: 480px) { .wa-flotante span { display: none; } .wa-flotante { padding: .8rem; } }

/* ---------- Modal de producto ---------- */
dialog { border: 0; padding: 0; color: var(--cacao); }
dialog::backdrop { background: rgba(63, 42, 28, .55); backdrop-filter: blur(2px); }
.modal { width: min(980px, 100% - 24px); max-height: calc(100dvh - 24px); border-radius: 22px; overflow: auto; }
.modal__cerrar-form { position: sticky; top: 0; height: 0; z-index: 2; display: flex; justify-content: flex-end; }
.modal__cerrar {
  width: 44px; height: 44px; margin: 10px; border-radius: 50%; border: 0;
  background: rgba(255, 255, 255, .95); color: var(--cacao); font-size: 1.6rem; line-height: 1; box-shadow: 0 2px 10px rgba(0, 0, 0, .12);
}
.modal__cuerpo { display: grid; }
.galeria { background: var(--rubor); padding: 12px; }
.galeria__principal { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 14px; }
.galeria__miniaturas { display: flex; gap: 8px; margin-top: 8px; }
.galeria__miniaturas button { padding: 0; border: 2px solid transparent; border-radius: 10px; overflow: hidden; width: 64px; height: 64px; background: none; }
.galeria__miniaturas button[aria-current="true"] { border-color: var(--oro-profundo); }
.galeria__miniaturas img { width: 100%; height: 100%; object-fit: cover; }
.mp { padding: 1.4rem 1.4rem 1.8rem; }
.mp__ref { margin: 0; font-size: .78rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--oro-profundo); }
.mp h2 { font-family: var(--serif); font-variation-settings: "SOFT" 100; font-weight: 650; font-size: 2.2rem; color: var(--oro-oscuro); margin: .1rem 0 .2rem; }
.mp__precio { font-size: 1.5rem; font-weight: 700; margin: 0; color: var(--cacao); }
.mp__bajada { color: var(--cacao-2); margin: .3rem 0 1.2rem; }
.opcion { border: 0; padding: 0; margin: 0 0 1.1rem; }
.opcion legend { font-weight: 600; font-size: .92rem; margin-bottom: .55rem; }
.opcion__elegido { font-weight: 400; color: var(--cacao-2); }
.chips { display: flex; flex-wrap: wrap; gap: .45rem; }
.chips label { position: relative; }
.chips input, .swatches input { position: absolute; opacity: 0; pointer-events: none; }
.chips span {
  display: inline-block; padding: .45rem .9rem; border-radius: 999px; border: 1.5px solid var(--beige);
  font-size: .86rem; background: var(--blanco); transition: background .15s, border-color .15s;
}
.chips label:hover span { border-color: var(--durazno); }
.chips input:checked + span { background: var(--oro-profundo); border-color: var(--oro-profundo); color: #fff; }
.chips input:focus-visible + span, .swatches input:focus-visible + span { outline: 3px solid var(--oro-oscuro); outline-offset: 2px; }
.swatches { display: flex; flex-wrap: wrap; gap: .55rem; }
.swatches label { position: relative; }
.swatches span {
  display: block; width: 36px; height: 36px; border-radius: 50%; border: 3px solid var(--blanco);
  box-shadow: 0 0 0 1.5px var(--beige); cursor: pointer;
}
.swatches input:checked + span { box-shadow: 0 0 0 2.5px var(--oro-profundo); }
.adicional {
  display: flex; align-items: center; gap: .6rem; background: var(--rubor-2); border: 1.5px dashed var(--durazno);
  padding: .75rem .9rem; border-radius: 12px; font-size: .92rem; margin-bottom: 1.1rem; cursor: pointer;
}
.adicional input { width: 20px; height: 20px; accent-color: var(--oro-profundo); }
.mp__comprar { display: flex; gap: .7rem; align-items: stretch; }
.cantidad { display: flex; align-items: center; border: 1.5px solid var(--beige); border-radius: 999px; flex-shrink: 0; }
.cantidad button { width: 42px; height: 46px; border: 0; background: none; font-size: 1.3rem; color: var(--oro-profundo); }
.cantidad output { min-width: 1.6rem; text-align: center; font-weight: 600; }
.mp__error { color: var(--error); font-size: .88rem; font-weight: 500; min-height: 1.2em; margin: .6rem 0 0; }
.mp__incluye { margin-top: .8rem; border-top: 1px solid var(--rubor); padding-top: 1rem; }
.mp__incluye summary { font-weight: 600; cursor: pointer; color: var(--oro-profundo); }
.mp__incluye ul { padding-left: 1.1rem; margin: .7rem 0 0; font-size: .92rem; color: var(--cacao-2); }
.mp__incluye li { margin-bottom: .25rem; }
.mp__incluye li::marker { color: var(--oro-oscuro); }
@media (min-width: 820px) {
  .modal__cuerpo { grid-template-columns: 1fr 1fr; }
  .galeria { padding: 18px; }
  .mp { padding: 2.2rem 2rem; }
}

/* ---------- Carrito (panel lateral) ---------- */
.carrito {
  margin: 0 0 0 auto; height: 100dvh; max-height: 100dvh; width: min(440px, 100%); max-width: 100%;
  display: none; flex-direction: column; background: var(--blanco);
}
.carrito[open] { display: flex; animation: entrar .25s ease; }
@keyframes entrar { from { transform: translateX(40px); opacity: 0; } }
.carrito__head { display: flex; align-items: center; justify-content: space-between; padding: .6rem .6rem .6rem 1.3rem; border-bottom: 1px solid var(--rubor); }
.carrito__head h2 { font-family: var(--serif); font-variation-settings: "SOFT" 100; font-size: 1.6rem; color: var(--oro-oscuro); margin: 0; }
.carrito__head .modal__cerrar { box-shadow: none; background: var(--rubor); }
.carrito__paso { flex: 1; overflow-y: auto; padding: 1.2rem 1.3rem 1.5rem; display: flex; flex-direction: column; }
.carrito__paso[hidden] { display: none; }
.carrito__items { list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem; }
.item { display: grid; grid-template-columns: 72px 1fr auto; gap: .8rem; align-items: start; padding-bottom: 1rem; border-bottom: 1px solid var(--rubor); }
.item img { width: 72px; height: 88px; object-fit: cover; border-radius: 10px; }
.item__nombre { font-weight: 600; margin: 0; }
.item__detalle { font-size: .82rem; color: var(--cacao-2); margin: .1rem 0 .5rem; }
.item__precio { font-weight: 700; color: var(--oro-profundo); white-space: nowrap; }
.item .cantidad button { width: 34px; height: 34px; font-size: 1.1rem; }
.item__quitar { background: none; border: 0; color: var(--cacao-2); font-size: .8rem; text-decoration: underline; padding: .2rem 0; margin-left: .6rem; }
.item__acciones { display: flex; align-items: center; }
.carrito__vacio { text-align: center; margin: auto; }
.carrito__vacio[hidden], .carrito__pie[hidden] { display: none; }
.carrito__pie { margin-top: auto; padding-top: 1.2rem; }
.carrito__total { display: flex; justify-content: space-between; align-items: baseline; font-size: 1.05rem; margin: 0 0 .3rem; }
.carrito__total strong { font-size: 1.4rem; color: var(--cacao); }
.carrito__nota { font-size: .82rem; color: var(--cacao-2); margin: 0 0 1rem; }
.carrito__form { gap: .9rem; }
.carrito__form label { display: grid; gap: .3rem; font-size: .88rem; font-weight: 600; }
.carrito__form input, .carrito__form textarea {
  font: inherit; font-weight: 400; padding: .7rem .85rem; border-radius: 12px; border: 1.5px solid var(--beige); background: var(--rubor-2); color: var(--cacao);
}
.carrito__form input:focus, .carrito__form textarea:focus { outline: none; border-color: var(--oro-profundo); background: #fff; }
.carrito__form [aria-invalid="true"] { border-color: var(--error); }
.carrito__form small { font-weight: 400; color: var(--cacao-2); font-size: .78rem; }
.volver { align-self: flex-start; background: none; border: 0; color: var(--oro-profundo); font-weight: 600; padding: 0; margin-bottom: .3rem; }
.carrito__listo { text-align: center; align-items: center; justify-content: center; gap: .8rem; }
.carrito__listo img { width: 110px; }
.carrito__listo h3 { font-family: var(--serif); font-variation-settings: "SOFT" 100; font-size: 1.6rem; color: var(--oro-oscuro); margin: 0; }
.carrito__listo p { color: var(--cacao-2); margin: 0 0 .6rem; }

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 88px; transform: translateX(-50%); z-index: 40;
  display: flex; align-items: center; gap: 1rem; background: var(--cacao); color: #fff;
  padding: .7rem .8rem .7rem 1.1rem; border-radius: 999px; box-shadow: 0 10px 30px rgba(0, 0, 0, .25);
  font-size: .9rem; width: max-content; max-width: calc(100% - 32px);
}
.toast[hidden] { display: none; }
.toast button { background: var(--durazno); color: var(--cacao); border: 0; border-radius: 999px; padding: .45rem .9rem; font-weight: 600; font-size: .82rem; white-space: nowrap; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

.catalogo-error { grid-column: 1 / -1; text-align: center; background: var(--rubor-2); padding: 1.5rem; border-radius: var(--radio); }
