/* YVY — estilos compartidos
   Paleta: verde monte #15351C · verde noche #0F2A16 · tierra colorada #A8512E · arena #F3ECDD · carbón #1E1B16
   Tipografías: Fraunces (títulos) · Work Sans (texto) — se cargan desde Google Fonts en cada página. */

:root {
  --verde: #15351C;
  --verde-noche: #0F2A16;
  --tierra: #A8512E;
  --arena: #F3ECDD;
  --carbon: #1E1B16;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --ease-drawer: cubic-bezier(0.32, 0.72, 0, 1);
  --serif: Fraunces, Georgia, serif;
  --sans: 'Work Sans', system-ui, -apple-system, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--arena); color: var(--carbon); font-family: var(--sans); font-size: 16px; line-height: 1.6; }
img { max-width: 100%; }
a { color: var(--verde); }
h1, h2, h3 { font-family: var(--serif); color: var(--verde); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.wrap { max-width: 1320px; margin: 0 auto; padding-left: clamp(20px, 4vw, 56px); padding-right: clamp(20px, 4vw, 56px); }
.eyebrow { margin: 0; font-size: 13px; font-weight: 700; letter-spacing: 1.5px; color: var(--tierra); }
.h2 { margin: 0; font-family: var(--serif); font-weight: 600; font-size: clamp(36px, 4.4vw, 56px); line-height: 1.08; color: var(--verde); }
.muted { color: rgba(30, 27, 22, 0.78); }

/* ---------- Botones ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 26px; border: 0; border-radius: 12px; font-family: inherit; font-weight: 600; font-size: 16px; text-decoration: none; cursor: pointer;
  transition: transform 200ms var(--ease-out), box-shadow 200ms var(--ease-out), background-color 160ms ease, opacity 160ms ease; }
.btn:active { transform: scale(0.97); }
.btn-verde { background: var(--verde); color: #fff; }
.btn-tierra { background: var(--tierra); color: #fff; }
.btn-linea { background: transparent; color: var(--verde); border: 1.5px solid var(--verde); }
.btn-linea-claro { background: transparent; color: var(--arena); border: 1.5px solid var(--arena); }
.btn-claro { background: var(--arena); color: var(--verde); }
.btn-ghost { background: #fff; color: var(--carbon); border: 1px solid rgba(21, 53, 28, 0.25); }
.btn-block { width: 100%; }
@media (hover: hover) and (pointer: fine) {
  .btn:hover { transform: translateY(-2px); box-shadow: 0 10px 22px rgba(21, 53, 28, 0.22); }
  .btn:hover:active { transform: scale(0.97); }
  .btn-verde:hover { background: #0E2613; }
  .btn-tierra:hover { background: #934625; }
}

/* ---------- Barra superior, header y menú ---------- */
.topbar { background: var(--verde-noche); color: var(--arena); font-size: 13px; padding: 9px 20px; display: flex; justify-content: center; flex-wrap: wrap; gap: 6px 32px; }
.header { position: sticky; top: 0; z-index: 40; background: var(--verde); }
.header-in { max-width: 1320px; margin: 0 auto; padding: 14px clamp(20px, 4vw, 56px); display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; }
.nav { display: flex; gap: 28px; font-size: 15px; font-weight: 500; }
.nav a { color: rgba(243, 236, 221, 0.82); text-decoration: none; padding-bottom: 2px; border-bottom: 2px solid transparent; }
.nav a[aria-current="page"] { color: #fff; border-bottom-color: var(--tierra); }
.logo { display: block; justify-self: center; }
.logo img { display: block; height: clamp(40px, 5vw, 58px); width: auto; }
.icon-btn { position: relative; width: 44px; height: 44px; border: 0; background: transparent; color: var(--arena); display: flex; align-items: center; justify-content: center; cursor: pointer; border-radius: 10px; }
.cart-count { position: absolute; top: 3px; right: 0; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 9999px; background: var(--tierra); color: #fff; font-size: 11px; font-weight: 700; line-height: 18px; text-align: center; }
.cart-count[data-n="0"] { display: none; }
.menu-btn { display: none; }
.mobile-nav { display: none; background: var(--verde); border-top: 1px solid rgba(243, 236, 221, 0.12); }
.mobile-nav a { display: block; padding: 14px clamp(20px, 4vw, 56px); color: var(--arena); text-decoration: none; font-size: 17px; border-bottom: 1px solid rgba(243, 236, 221, 0.08); }
.mobile-nav.open { display: block; }
@media (hover: hover) and (pointer: fine) { .nav a:hover { color: #fff; } }
@media (max-width: 860px) {
  .nav { display: none; }
  .menu-btn { display: flex; }
}

/* ---------- Footer ---------- */
.footer { background: var(--verde-noche); color: rgba(243, 236, 221, 0.86); }
.footer a { color: var(--arena); }
.footer-in { max-width: 1320px; margin: 0 auto; padding: 64px clamp(20px, 4vw, 56px) 32px; display: flex; flex-direction: column; gap: 40px; }
.footer-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 40px; }
.footer h4 { margin: 0 0 6px; font-family: var(--sans); font-size: 13px; font-weight: 700; letter-spacing: 1.5px; color: var(--arena); }
.footer-col { display: flex; flex-direction: column; gap: 8px; font-size: 15px; }
.footer-legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px 24px; padding-top: 24px; border-top: 1px solid rgba(243, 236, 221, 0.16); font-size: 13px; }
.footer-legal a { font-weight: 600; }

/* ---------- WhatsApp flotante ---------- */
.fab { position: fixed; right: 24px; bottom: 24px; z-index: 30; width: 60px; height: 60px; border-radius: 9999px; background: var(--tierra); color: #fff; display: flex; align-items: center; justify-content: center; box-shadow: 0 8px 24px rgba(30, 27, 22, 0.25); animation: fabIn 450ms var(--ease-out) 1400ms backwards; }
.fab { padding: 0; }
.fab svg { flex: none; }
@keyframes fabIn { from { opacity: 0; transform: translateY(12px) scale(0.92); } }

/* ---------- Carrito lateral ---------- */
.scrim { position: fixed; inset: 0; z-index: 60; background: rgba(15, 42, 22, 0.45); opacity: 0; visibility: hidden; transition: opacity 300ms ease, visibility 300ms; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; z-index: 70; width: min(420px, 100%); background: var(--arena); box-shadow: -12px 0 40px rgba(30, 27, 22, 0.18); display: flex; flex-direction: column; transform: translateX(100%); transition: transform 420ms var(--ease-drawer); visibility: hidden; }
body.cart-open .scrim { opacity: 1; visibility: visible; }
body.cart-open .drawer { transform: none; visibility: visible; }
.drawer-head { display: flex; justify-content: space-between; align-items: center; padding: 20px 24px; border-bottom: 1px solid rgba(21, 53, 28, 0.14); }
.drawer-head h2 { margin: 0; font-weight: 600; font-size: 26px; }
.drawer-body { flex: 1; overflow: auto; padding: 20px 24px; display: flex; flex-direction: column; gap: 16px; }
.drawer-foot { padding: 20px 24px 28px; border-top: 1px solid rgba(21, 53, 28, 0.14); display: flex; flex-direction: column; gap: 12px; }
.line { display: grid; grid-template-columns: 72px 1fr auto; gap: 14px; align-items: center; }
.line img { width: 72px; height: 72px; object-fit: cover; object-position: 50% 38%; border-radius: 8px; display: block; }
.line-name { margin: 0; font-weight: 600; font-size: 15px; line-height: 1.3; }
.line-remove { border: 0; background: transparent; color: rgba(30, 27, 22, 0.7); font: inherit; font-size: 13px; text-decoration: underline; cursor: pointer; padding: 4px 0; }

/* ---------- Selector de cantidad ---------- */
.qty { display: inline-flex; align-items: center; border: 1px solid rgba(21, 53, 28, 0.3); border-radius: 12px; background: #fff; overflow: hidden; }
.qty button { width: 44px; height: 44px; border: 0; background: transparent; font-size: 20px; color: var(--verde); cursor: pointer; }
.qty output, .qty span { min-width: 34px; text-align: center; font-weight: 600; font-variant-numeric: tabular-nums; }
.qty.lg button { width: 52px; height: 52px; }
.qty.sm button { width: 34px; height: 34px; font-size: 17px; }

/* ---------- Tarjetas de producto ---------- */
.grid-prod { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 24px; }
.card { background: #fff; border-radius: 12px; overflow: hidden; display: flex; flex-direction: column; }
.card-media { display: block; position: relative; overflow: hidden; }
.card-media img { display: block; width: 100%; aspect-ratio: 1 / 1; object-fit: cover; transition: transform 900ms var(--ease-out); }
.badge-off { position: absolute; top: 14px; right: 14px; padding: 4px 10px; border-radius: 4px; background: var(--tierra); color: #fff; font-size: 12px; font-weight: 700; letter-spacing: 1px; }
.card-body { padding: 22px 22px 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.card-body h3 { margin: 0; font-weight: 600; font-size: 22px; line-height: 1.25; }
.card-body h3 a { color: inherit; text-decoration: none; }
.price { font-family: var(--serif); font-weight: 600; color: var(--verde); }
.price-was { color: rgba(30, 27, 22, 0.65); }
@media (hover: hover) and (pointer: fine) { .card-media:hover img, .zoom:hover img { transform: scale(1.05); } }
.zoom { overflow: hidden; }
.zoom img { transition: transform 900ms var(--ease-out); }

/* Botón "Agregar" con cambio a "¡Agregado!" */
.add-btn { display: grid; place-items: center; }
.add-btn > span { grid-area: 1 / 1; display: inline-flex; align-items: center; gap: 8px; transition: opacity 200ms ease, filter 200ms ease, transform 200ms var(--ease-out); }
.add-btn .lbl-b { opacity: 0; filter: blur(4px); transform: translateY(8px); }
.add-btn.added .lbl-a { opacity: 0; filter: blur(4px); transform: translateY(-8px); }
.add-btn.added .lbl-b { opacity: 1; filter: none; transform: none; }
.bump { animation: bump 260ms var(--ease-out); }
@keyframes bump { 40% { transform: scale(1.3); } }

/* ---------- Formularios ---------- */
.field { width: 100%; min-height: 48px; padding: 0 14px; border: 1px solid rgba(21, 53, 28, 0.3); border-radius: 12px; font: inherit; font-weight: 400; background: #fff; color: var(--carbon); }
textarea.field { padding: 12px 14px; resize: vertical; min-height: 120px; }
.field:focus, .focusable:focus-visible { outline: 2px solid var(--tierra); outline-offset: 1px; }
.lbl { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 600; }
.lbl small { font-weight: 400; color: rgba(30, 27, 22, 0.7); font-size: 14px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.alert { margin: 0; font-size: 14px; color: var(--tierra); }
.ok-msg { margin: 0; padding: 12px 14px; border-radius: 12px; background: var(--arena); color: var(--verde); font-weight: 600; }

/* ---------- Animaciones ---------- */
.rise { animation: rise 700ms var(--ease-out) 120ms both; }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } }
@supports (animation-timeline: view()) {
  .reveal { animation: rise linear both; animation-timeline: view(); animation-range: entry 0% entry 70%; }
  .draw path { animation: draw linear both; animation-timeline: view(); animation-range: entry 10% entry 100%; }
  .fly { animation: flyIn linear both; animation-timeline: view(); animation-range: entry 0% entry 90%; }
}
.draw path { stroke-dasharray: 1; stroke-dashoffset: 0; }
@keyframes draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes flyIn { from { opacity: 0; transform: translate3d(28%, 38%, -420px) rotateY(-34deg) rotateZ(-14deg); } }

/* Hero */
.hero { background: var(--verde); color: var(--arena); position: relative; }
.slides { display: grid; }
.slide { grid-area: 1 / 1; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr)); min-height: 600px; transition: opacity 700ms ease, visibility 700ms; }
.slide[aria-hidden="true"] { opacity: 0; visibility: hidden; }
.slide-text { padding: clamp(48px, 7vw, 104px) clamp(20px, 5vw, 72px) clamp(96px, 9vw, 120px); display: flex; flex-direction: column; justify-content: center; gap: 28px; }
.slide-text .eyebrow { color: rgba(243, 236, 221, 0.75); }
.slide-title { margin: 0; font-family: var(--serif); font-weight: 700; font-size: clamp(48px, 6.4vw, 92px); line-height: 1; letter-spacing: -1.5px; color: var(--arena); }
.slide-media { position: relative; overflow: hidden; min-height: 420px; }
.slide-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.kb { animation: kb 14s ease-in-out infinite alternate; transform-origin: 40% 60%; }
@keyframes kb { to { transform: scale(1.12); } }
.unveil { animation: unveil 1100ms var(--ease-in-out) 100ms both; }
@keyframes unveil { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0 0 0 0); } }
.w { display: inline-block; overflow: hidden; vertical-align: bottom; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.w > span { display: inline-block; animation: wordUp 900ms var(--ease-out) both; }
@keyframes wordUp { from { transform: translateY(105%); } }
.hero-controls { position: absolute; left: clamp(20px, 5vw, 72px); bottom: 28px; display: flex; align-items: center; gap: 12px; }
.round-btn { width: 44px; height: 44px; border-radius: 9999px; border: 1px solid rgba(243, 236, 221, 0.4); background: transparent; color: var(--arena); cursor: pointer; display: flex; align-items: center; justify-content: center; }
.dot { width: 8px; height: 8px; border-radius: 9999px; border: 0; padding: 0; background: rgba(243, 236, 221, 0.45); cursor: pointer; transition: width 300ms var(--ease-out), background-color 300ms ease; }
.dot[aria-current="true"] { width: 28px; background: var(--arena); }

/* Hero con video de fondo */
.hero-video { position: relative; overflow: hidden; min-height: clamp(560px, 82vh, 820px); display: flex; align-items: flex-end; }
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-veil { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(21, 53, 28, 0.30) 0%, rgba(21, 53, 28, 0.45) 45%, rgba(15, 42, 22, 0.82) 100%); }
.hero-content { position: relative; width: 100%; padding-top: 120px; padding-bottom: clamp(56px, 8vw, 96px); display: flex; flex-direction: column; gap: 24px; }
.hero-content .slide-title { max-width: 12ch; }
.hero-pause { position: absolute; right: clamp(20px, 4vw, 56px); top: 20px; background: rgba(15, 42, 22, 0.35); }

/* Cinta */
.marquee-wrap { background: var(--verde-noche); color: var(--arena); overflow: hidden; padding: 18px 0; border-top: 1px solid rgba(243, 236, 221, 0.1); }
.marquee { display: flex; width: max-content; animation: marquee 38s linear infinite; font-family: var(--serif); font-size: clamp(22px, 2.4vw, 32px); white-space: nowrap; }
.marquee > span { display: flex; gap: 40px; padding-right: 40px; align-items: center; }
.marquee i { font-style: italic; }
.marquee b { font-weight: 400; color: var(--tierra); }
@keyframes marquee { to { transform: translateX(-50%); } }
@media (hover: hover) and (pointer: fine) { .marquee-wrap:hover .marquee { animation-play-state: paused; } }

/* Probame: paquete 360° */
.probame { background: var(--verde); color: var(--arena); overflow: hidden; }
.stage { perspective: 1200px; position: relative; min-height: clamp(440px, 46vw, 600px); display: flex; align-items: center; justify-content: center; }
.p3d { transform-style: preserve-3d; }
.float { position: relative; width: clamp(240px, 24vw, 330px); animation: float 5.2s var(--ease-in-out) infinite alternate; }
@keyframes float { from { transform: translateY(0) rotate(-1.5deg); } to { transform: translateY(-22px) rotate(1.5deg); } }
.pshadow { position: absolute; left: 50%; bottom: 6%; width: 56%; height: 34px; margin-left: -28%; border-radius: 50%; background: radial-gradient(closest-side, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0)); animation: pshadow 5.2s var(--ease-in-out) infinite alternate; }
@keyframes pshadow { to { transform: scale(0.8); opacity: 0.55; } }
.spinbox { width: 100%; aspect-ratio: 448 / 600; overflow: hidden; cursor: grab; touch-action: pan-y; filter: drop-shadow(0 30px 40px rgba(0, 0, 0, 0.35)); }
.spinbox:active { cursor: grabbing; }
.spin-row { width: 100%; height: 600%; }
.spin-row img { display: block; width: 800%; height: 100%; max-width: none; user-select: none; -webkit-user-drag: none; pointer-events: none; }
.turnY { animation: turnY 2.4s steps(6) infinite; }
.turnX { animation: turnX 0.4s steps(8) infinite; }
@keyframes turnY { to { transform: translateY(-100%); } }
@keyframes turnX { to { transform: translateX(-100%); } }
.sello { position: relative; display: block; width: 168px; height: 168px; border-radius: 9999px; background: var(--tierra); color: #fff; text-decoration: none; box-shadow: 0 14px 30px rgba(0, 0, 0, 0.25); transition: transform 220ms var(--ease-out); }
.sello:active { transform: scale(0.96); }
.sello svg.giro { animation: spin 16s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (hover: hover) and (pointer: fine) { .sello:hover { transform: scale(1.06); } }

/* Checkout */
.steps { position: relative; margin: 0 0 32px; }
.steps-track, .steps-fill { position: absolute; left: 12.5%; right: 12.5%; top: 19px; height: 2px; background: rgba(21, 53, 28, 0.15); }
.steps-fill { background: var(--verde); transform-origin: left center; transform: scaleX(0); transition: transform 400ms var(--ease-out); }
.steps ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); position: relative; }
.steps li { display: flex; flex-direction: column; align-items: center; gap: 8px; font-size: 14px; text-align: center; color: rgba(30, 27, 22, 0.6); }
.steps li span { position: relative; z-index: 1; width: 40px; height: 40px; border-radius: 9999px; display: flex; align-items: center; justify-content: center; font-weight: 700; background: #fff; border: 2px solid rgba(21, 53, 28, 0.25); color: rgba(30, 27, 22, 0.55); }
.steps li.cur, .steps li.done { color: var(--verde); }
.steps li.cur span { border-color: var(--verde); color: var(--verde); }
.steps li.done span { background: var(--verde); border-color: var(--verde); color: #fff; }
.panel { background: #fff; border-radius: 12px; padding: clamp(20px, 3vw, 32px); display: flex; flex-direction: column; gap: 20px; }
.panel[hidden] { display: none; }
.panel:not([hidden]) { animation: stepIn 260ms var(--ease-out) both; }
@keyframes stepIn { from { opacity: 0; transform: translateY(8px); } }
.choice { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; width: 100%; min-height: 128px; padding: 16px; border-radius: 12px; font-family: inherit; font-size: 16px; text-align: center; cursor: pointer; color: var(--carbon); border: 1px solid rgba(21, 53, 28, 0.22); background: #fff; transition: border-color 160ms ease, background-color 160ms ease; }
.choice[aria-checked="true"] { border: 2px solid var(--verde); background: var(--arena); color: var(--verde); }
.choice small { font-size: 13px; color: rgba(30, 27, 22, 0.72); }
.pay-table { border: 1px solid rgba(21, 53, 28, 0.2); border-radius: 12px; overflow: hidden; }
.pay-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 14px 16px; border-bottom: 1px solid rgba(21, 53, 28, 0.12); }
.pay-row > div { flex: 1 1 auto !important; min-width: 0; }
.pay-row:last-child { border-bottom: 0; }
.pay-row .k { margin: 0; font-size: 12px; font-weight: 700; letter-spacing: 1px; color: rgba(30, 27, 22, 0.65); }
.pay-row .v { margin: 2px 0 0; font-weight: 600; font-size: 17px; font-variant-numeric: tabular-nums; overflow-wrap: break-word; }
.copy { flex: none; min-height: 40px; padding: 0 14px; border: 1px solid rgba(21, 53, 28, 0.25); border-radius: 10px; background: #fff; color: var(--verde); font-family: inherit; font-weight: 600; font-size: 14px; cursor: pointer; }
.drop { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; min-height: 132px; padding: 18px; border-radius: 12px; text-align: center; cursor: pointer; border: 1.5px dashed rgba(21, 53, 28, 0.35); background: #fff; transition: border-color 160ms ease, background-color 160ms ease; }
.drop.has-file { border: 2px solid var(--verde); background: var(--arena); }
.drop:focus-within { outline: 2px solid var(--tierra); outline-offset: 2px; }
.drop input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.timeline { list-style: none; margin: 8px 0 0; padding: 0; align-self: stretch; text-align: left; }
.timeline li { display: flex; gap: 14px; align-items: flex-start; padding: 12px 0; border-top: 1px solid rgba(21, 53, 28, 0.12); }
.timeline .tdot { flex: none; width: 28px; height: 28px; border-radius: 9999px; display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 700; background: #fff; border: 2px solid rgba(21, 53, 28, 0.25); color: rgba(30, 27, 22, 0.5); }
.timeline .done .tdot { background: var(--verde); border-color: var(--verde); color: #fff; }
.timeline .now .tdot { border-color: var(--tierra); }
.okDraw path { stroke-dasharray: 1; stroke-dashoffset: 1; animation: okDraw 500ms var(--ease-out) 200ms forwards; }
@keyframes okDraw { to { stroke-dashoffset: 0; } }

/* ---------- Movimiento reducido ---------- */
@media (prefers-reduced-motion: reduce) {
  .kb, .rise, .reveal, .w > span, .unveil, .marquee, .bump, .draw path, .float, .pshadow, .fly, .sello svg.giro, .turnY, .turnX { animation: none !important; }
  .fab { animation: fade 300ms ease 600ms backwards; }
  .btn, .zoom img, .card-media img, .add-btn > span, .drawer, .steps-fill { transition: none; }
  .btn:active { transform: none; }
  .slide { transition: opacity 300ms ease, visibility 300ms; }
  .okDraw path { animation: none; stroke-dashoffset: 0; }
  .panel:not([hidden]) { animation: fade 200ms ease both; }
}
@keyframes fade { from { opacity: 0; } }
