:root {
  --fondo: #fbf8f1;
  --fondo-2: #f4eee1;
  --blanco: #ffffff;
  --borde: #ebe2cf;
  --tinta: #2b2419;
  --suave: #776b58;
  --oro: #b98a2c;
  --oro-txt: #95691a;
  --oro-luz: #f3dc9a;
  --verde: #4d7f45;
  --verde-luz: #e7efdf;
  --rojo: #c4513d;
  --dorado: linear-gradient(135deg, #f6e3a3 0%, #e0b65a 35%, #c18f30 65%, #e9c97a 100%);
  --sombra: 0 10px 30px rgba(92, 70, 30, .10);
  --sans: "Montserrat", system-ui, sans-serif;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--fondo); color: var(--tinta); font-family: var(--sans); font-size: 15px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
img, video { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--oro-txt); }
[hidden] { display: none !important; }
.oro-txt { color: var(--oro-txt); }

.aviso { background: var(--verde); color: #fff; text-align: center; font-weight: 600; font-size: 13px; padding: 7px 16px; }

.barra { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 16px; background: rgba(251, 248, 241, .92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--borde); }
.marca { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--tinta); }
.marca .logo-img { width: 50px; height: 50px; object-fit: contain; }
.marca-txt { display: flex; flex-direction: column; line-height: 1.1; }
.marca-txt b { font-size: 17px; font-weight: 800; letter-spacing: .02em; }
.marca-txt small { font-size: 10px; letter-spacing: .2em; text-transform: uppercase; color: var(--oro-txt); font-weight: 700; }
.btn-carrito { position: relative; width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--borde); background: var(--blanco); color: var(--tinta); display: grid; place-items: center; }
.btn-carrito svg { width: 23px; height: 23px; }
.btn-carrito span { position: absolute; top: -4px; right: -4px; min-width: 21px; height: 21px; padding: 0 5px; border-radius: 11px; background: var(--verde); color: #fff; font-size: 12px; font-weight: 800; display: grid; place-items: center; }
.btn-carrito.salta { animation: salta .5s; }
@keyframes salta { 30% { transform: scale(1.18); } 60% { transform: scale(.95); } }

/* Hero */
.hero { position: relative; overflow: hidden; padding: 26px 16px 44px; display: grid; gap: 14px; justify-items: center; text-align: center;
  background: radial-gradient(circle at 80% 30%, rgba(224, 182, 90, .28), transparent 55%), radial-gradient(circle at 10% 90%, rgba(77, 127, 69, .12), transparent 50%), linear-gradient(180deg, #fffdf8, var(--fondo)); }
.hero-logo .logo-img { width: min(46vw, 190px); filter: drop-shadow(0 6px 14px rgba(150, 110, 30, .18)); }
.hero-txt { position: relative; max-width: 560px; }
.sello { display: inline-block; margin: 0 0 10px; font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--verde); font-weight: 800; background: var(--verde-luz); padding: 6px 12px; border-radius: 999px; }
.hero h1 { margin: 0; font-size: clamp(28px, 6.6vw, 48px); line-height: 1.08; font-weight: 800; letter-spacing: -.02em; }
.hero h1 em { font-style: normal; color: var(--oro-txt); }
.hero-sub { color: var(--suave); margin: 12px auto 18px; max-width: 460px; font-size: 15.5px; }
.hero-cta { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.b-oro, .b-linea { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border-radius: 999px; font-weight: 700; text-decoration: none; border: 0; }
.b-oro { background: var(--dorado); color: #2b1d05; box-shadow: 0 6px 18px rgba(185, 138, 44, .28); }
.b-linea { border: 1.5px solid var(--oro); color: var(--oro-txt); background: var(--blanco); }
.b-oro:disabled { opacity: .5; }

/* Frascos que van rotando */
.hero-frascos { position: relative; width: 100%; max-width: 480px; height: 250px; }
.hero-frascos::before { content: ""; position: absolute; left: 12%; right: 12%; bottom: 4px; height: 26px; border-radius: 50%; background: radial-gradient(closest-side, rgba(92, 70, 30, .22), transparent); }
.hero-frascos .trio { position: absolute; inset: 0; display: flex; justify-content: center; align-items: flex-end; transition: opacity .7s ease, transform .7s ease; }
.hero-frascos .trio.sale { opacity: 0; transform: translateY(14px) scale(.97); }
.hero-frascos .trio.entra { opacity: 0; transform: translateY(-14px) scale(.97); }
.hero-frascos img { height: 72%; max-width: 34%; object-fit: contain; object-position: bottom; filter: drop-shadow(0 14px 14px rgba(60, 45, 15, .22)); }
.hero-frascos img:nth-child(1) { transform: rotate(-6deg); margin-right: -4%; }
.hero-frascos img:nth-child(2) { height: 94%; max-width: 40%; z-index: 1; }
.hero-frascos img:nth-child(3) { transform: rotate(6deg); margin-left: -4%; }

@media (min-width: 900px) {
  .hero { grid-template-columns: 220px 1fr 1fr; text-align: left; justify-items: start; align-items: center; padding: 44px max(32px, calc(50vw - 600px)) 54px; }
  .hero-logo .logo-img { width: 210px; }
  .hero-cta { justify-content: flex-start; }
  .hero-sub { margin-left: 0; }
  .hero-frascos { height: 340px; }
}

.ahorro { margin: 0 16px; padding: 14px 16px; border-radius: 18px; background: var(--blanco); border: 1px solid var(--borde); box-shadow: var(--sombra); display: flex; flex-wrap: wrap; gap: 6px 18px; justify-content: center; font-weight: 600; font-size: 14px; text-align: center; }
.ahorro b { color: var(--verde); }
@media (min-width: 900px) { .ahorro { max-width: 1200px; margin: 0 auto; } }

/* Secciones */
.seccion { padding: 34px 0 10px; max-width: 1232px; margin: 0 auto; }
.tit { padding: 0 16px; margin-bottom: 14px; }
.tit h2 { margin: 0; font-size: clamp(22px, 5vw, 30px); font-weight: 800; letter-spacing: -.01em; }
.tit p { margin: 2px 0 0; color: var(--suave); font-size: 14px; }

.buscar { margin: 0 16px 12px; display: flex; align-items: center; gap: 10px; padding: 0 16px; border-radius: 999px; background: var(--blanco); border: 1px solid var(--borde); box-shadow: 0 2px 8px rgba(92, 70, 30, .05); }
.buscar svg { width: 20px; height: 20px; color: var(--oro); flex: none; }
.buscar input { flex: 1; min-width: 0; height: 50px; border: 0; background: none; outline: none; font-size: 16px; }
.cats { display: flex; gap: 8px; overflow-x: auto; padding: 0 16px 16px; scrollbar-width: none; }
.cats::-webkit-scrollbar { display: none; }
.cats button { flex: none; padding: 9px 16px; border-radius: 999px; border: 1px solid var(--borde); background: var(--blanco); font-weight: 600; font-size: 13.5px; white-space: nowrap; }
.cats button[aria-pressed="true"] { background: var(--verde); color: #fff; border-color: transparent; }

.grilla { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; padding: 0 16px; }
@media (min-width: 700px) { .grilla { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; } }
@media (min-width: 1050px) { .grilla { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.cargando, .vacio { grid-column: 1 / -1; text-align: center; color: var(--suave); padding: 30px 0; }
.card { position: relative; display: flex; flex-direction: column; border-radius: 20px; background: var(--blanco); border: 1px solid var(--borde); overflow: hidden; transition: transform .2s, box-shadow .2s; }
.card:hover { transform: translateY(-3px); box-shadow: var(--sombra); }
.card-img { position: relative; aspect-ratio: 1; border: 0; width: 100%; padding: 0; background: radial-gradient(circle at 50% 60%, #fbefd0 0%, #fbf6ea 45%, #fff 75%); }
.card-img img { position: absolute; inset: 14px; width: calc(100% - 28px); height: calc(100% - 28px); object-fit: contain; filter: drop-shadow(0 10px 10px rgba(60, 45, 15, .2)); transition: transform .3s; }
.card:hover .card-img img { transform: scale(1.05) rotate(-2deg); }
.chip-video { position: absolute; right: 10px; top: 10px; z-index: 1; font-size: 11px; font-weight: 700; padding: 4px 9px; border-radius: 999px; background: rgba(255, 255, 255, .95); color: var(--tinta); box-shadow: 0 2px 6px rgba(0, 0, 0, .08); }
.etq { position: absolute; top: 10px; left: 10px; z-index: 1; font-size: 11px; font-weight: 800; padding: 4px 9px; border-radius: 999px; }
.etq.promo { background: var(--rojo); color: #fff; }
.etq.ultimas { background: #f3b04a; color: #3a2502; }
.etq.agotado { background: #e8e1d3; color: var(--suave); }
.card.agotado .card-img img { filter: grayscale(1); opacity: .55; }
.card-cuerpo { padding: 6px 14px 14px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.card h3 { margin: 0; font-size: 14.5px; line-height: 1.25; font-weight: 700; }
.card .gancho { margin: 0; font-size: 12.5px; color: var(--suave); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.precio { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; margin-top: auto; padding-top: 6px; }
.precio b { font-size: 17px; color: var(--tinta); font-weight: 800; }
.precio s { font-size: 12.5px; color: var(--suave); }
.agregar { margin-top: 8px; height: 42px; border-radius: 12px; border: 0; background: var(--verde); color: #fff; font-weight: 700; font-size: 14px; }
.agregar:hover { filter: brightness(1.07); }
.agregar.en { background: var(--verde-luz); color: var(--verde); }
.agregar:disabled { background: #eee8dc; color: var(--suave); cursor: default; }

.confianza { max-width: 1200px; margin: 34px auto 0; padding: 0 16px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.confianza div { padding: 16px 12px; border-radius: 16px; border: 1px solid var(--borde); background: var(--blanco); text-align: center; display: grid; gap: 6px; font-size: 13px; font-weight: 600; }
.confianza b { font-size: 22px; }
@media (min-width: 800px) { .confianza { grid-template-columns: repeat(4, 1fr); } }

.pie { margin-top: 40px; padding: 30px 16px 110px; background: var(--fondo-2); border-top: 1px solid var(--borde); text-align: center; color: var(--suave); font-size: 13.5px; }
.pie .logo-img { width: 110px; margin: 0 auto 8px; }
.pie .legal { font-size: 12px; max-width: 480px; margin: 8px auto; }

.wa-flota { position: fixed; right: 16px; bottom: 18px; z-index: 15; width: 58px; height: 58px; border-radius: 50%; background: #25d366; color: #fff; display: grid; place-items: center; box-shadow: 0 8px 24px rgba(0, 0, 0, .2); }
.wa-flota svg { width: 32px; height: 32px; }
.pedido-flota { position: fixed; left: 16px; right: 86px; bottom: 18px; z-index: 15; height: 58px; border-radius: 999px; border: 0; background: var(--tinta); color: #fff; font-weight: 800; display: flex; align-items: center; justify-content: space-between; padding: 0 22px; box-shadow: 0 8px 26px rgba(0, 0, 0, .25); }
.pedido-flota span:last-child { color: var(--oro-luz); }
@media (min-width: 700px) { .pedido-flota { left: auto; width: 340px; } }

/* Hojas */
.hoja { border: 0; padding: 0; margin: auto auto 0; width: 100%; max-width: 980px; max-height: 92vh; border-radius: 22px 22px 0 0; background: var(--blanco); color: var(--tinta); box-shadow: 0 -10px 40px rgba(0, 0, 0, .2); }
.hoja::backdrop { background: rgba(43, 36, 25, .55); }
.hoja[open] { animation: sube .28s ease; }
@keyframes sube { from { transform: translateY(40px); opacity: 0; } }
@media (min-width: 800px) { .hoja { margin: auto; border-radius: 22px; } }
.hoja.lateral { max-width: 480px; }
@media (min-width: 800px) { .hoja.lateral { margin: 0 0 0 auto; height: 100vh; max-height: 100vh; border-radius: 22px 0 0 22px; } }
.cerrar { position: absolute; top: 12px; right: 12px; z-index: 3; width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .92); color: var(--tinta); font-size: 22px; line-height: 1; box-shadow: 0 2px 8px rgba(0, 0, 0, .12); }

.ficha { display: grid; }
@media (min-width: 800px) { .ficha { grid-template-columns: 400px 1fr; } }
.ficha-media { position: relative; height: 46vh; min-height: 300px; background: radial-gradient(circle at 50% 58%, #fbefd0 0%, #fbf6ea 50%, #fff 80%); }
.ficha-media.es-video { background: #000; height: 64vh; }
@media (min-width: 800px) { .ficha-media, .ficha-media.es-video { height: 92vh; max-height: 760px; position: sticky; top: 0; } }
.ficha-media img { position: absolute; inset: 22px 22px 66px; width: calc(100% - 44px); height: calc(100% - 88px); object-fit: contain; filter: drop-shadow(0 16px 16px rgba(60, 45, 15, .22)); }
.ficha-media video { width: 100%; height: 100%; object-fit: contain; }
.ficha-tabs { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); z-index: 2; display: flex; gap: 4px; padding: 4px; border-radius: 999px; background: rgba(255, 255, 255, .95); box-shadow: 0 4px 14px rgba(0, 0, 0, .12); }
.ficha-media.es-video .ficha-tabs { top: 14px; bottom: auto; }
.ficha-tabs button { border: 0; background: none; padding: 8px 16px; border-radius: 999px; font-size: 13px; font-weight: 700; color: var(--tinta); white-space: nowrap; }
.ficha-tabs button[aria-pressed="true"] { background: var(--verde); color: #fff; }
.ficha-info { padding: 22px 18px 28px; display: grid; gap: 16px; align-content: start; }
.ficha-info h2 { margin: 0; font-size: 25px; line-height: 1.15; font-weight: 800; }
.ficha-cats { display: flex; flex-wrap: wrap; gap: 6px; }
.ficha-cats span { font-size: 11.5px; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: var(--verde-luz); color: var(--verde); }
.ficha-gancho { margin: 0; font-size: 16px; font-weight: 600; color: var(--suave); }
.ficha .precio b { font-size: 26px; }
.comprar { display: flex; gap: 10px; }
.cant { display: flex; align-items: center; border: 1px solid var(--borde); border-radius: 14px; overflow: hidden; background: var(--blanco); }
.cant button { width: 44px; height: 50px; border: 0; background: none; font-size: 20px; color: var(--verde); font-weight: 700; }
.cant span { min-width: 30px; text-align: center; font-weight: 800; }
.comprar .b-oro { flex: 1; border-radius: 14px; min-height: 52px; }
.bloque h4 { margin: 0 0 6px; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--oro-txt); }
.bloque p { margin: 0; }
.beneficios { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.beneficios li { display: grid; grid-template-columns: 22px 1fr; gap: 8px; }
.beneficios li::before { content: "✓"; width: 22px; height: 22px; border-radius: 50%; background: var(--verde); color: #fff; display: grid; place-items: center; font-size: 12px; font-weight: 800; margin-top: 1px; }
.datos { display: grid; gap: 10px; padding: 14px; border-radius: 16px; background: var(--fondo); border: 1px solid var(--borde); }
.combina { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 4px; }
.combina button { flex: 0 0 140px; display: grid; gap: 4px; justify-items: center; padding: 10px; border-radius: 14px; border: 1px solid var(--borde); background: var(--fondo); text-align: center; font-size: 12.5px; font-weight: 600; }
.combina img { height: 90px; width: 100%; object-fit: contain; }
.combina small { color: var(--verde); font-weight: 800; }

/* Carrito */
.carro { display: flex; flex-direction: column; height: 100%; max-height: inherit; }
.carro header { padding: 18px 60px 12px 18px; border-bottom: 1px solid var(--borde); }
.carro header h2 { margin: 0; font-size: 21px; font-weight: 800; }
.carro-cuerpo { flex: 1; overflow-y: auto; padding: 14px 18px; display: grid; gap: 12px; align-content: start; }
.linea { display: grid; grid-template-columns: 58px 1fr auto; gap: 10px; align-items: center; }
.linea img { width: 58px; height: 58px; object-fit: contain; border-radius: 12px; background: radial-gradient(circle, #fbefd0, #fff 75%); }
.linea b { display: block; font-size: 13.5px; line-height: 1.25; }
.linea small { color: var(--suave); }
.linea .cant button { width: 34px; height: 36px; font-size: 17px; }
.meta-ahorro { padding: 12px 14px; border-radius: 14px; background: var(--verde-luz); color: #2f5a29; font-size: 13.5px; font-weight: 600; }
.cuentas { display: grid; gap: 4px; font-size: 14px; }
.cuentas div { display: flex; justify-content: space-between; }
.cuentas .total { font-size: 18px; font-weight: 800; padding-top: 6px; border-top: 1px solid var(--borde); margin-top: 4px; }
.form { display: grid; gap: 10px; }
.form label { display: grid; gap: 4px; font-size: 12.5px; font-weight: 600; color: var(--suave); }
.form input, .form select, .form textarea { width: 100%; min-height: 48px; padding: 10px 14px; border-radius: 12px; border: 1px solid var(--borde); background: var(--fondo); font-size: 16px; color: var(--tinta); }
.form textarea { min-height: 70px; resize: vertical; }
.pagos { display: flex; flex-wrap: wrap; gap: 8px; }
.pagos label { display: flex; align-items: center; gap: 6px; padding: 10px 14px; border-radius: 12px; border: 1px solid var(--borde); color: var(--tinta); font-size: 14px; background: var(--blanco); }
.pagos input { width: auto; min-height: 0; accent-color: var(--verde); }
.pagos label:has(input:checked) { border-color: var(--verde); background: var(--verde-luz); }
.carro footer { padding: 14px 18px calc(14px + env(safe-area-inset-bottom)); border-top: 1px solid var(--borde); display: grid; gap: 10px; }
.carro footer .b-oro { width: 100%; min-height: 54px; font-size: 16px; }
.error { color: var(--rojo); font-weight: 600; font-size: 13.5px; margin: 0; }
.listo { text-align: center; padding: 40px 22px; display: grid; gap: 12px; justify-items: center; }
.listo .logo-img { width: 120px; }
.listo h2 { margin: 0; font-weight: 800; }

.toast { position: fixed; left: 50%; bottom: 92px; transform: translateX(-50%); z-index: 50; background: var(--tinta); color: #fff; padding: 12px 18px; border-radius: 14px; font-weight: 600; font-size: 14px; box-shadow: 0 10px 30px rgba(0, 0, 0, .25); max-width: calc(100% - 32px); }
