/* =========================================================
   LA CUBOTECA · estilos (mobile first)
   ========================================================= */
:root {
  --grafito: #1F2328;
  --crema: #F6F3EE;
  --crema-2: #EDE8E0;
  --naranja: #FF6B35;
  --naranja-osc: #D9501F;
  --menta: #2EC4B6;
  --menta-osc: #138A7E;
  --gris: #8A8F98;
  --texto: #1F2328;
  --texto-2: #5A5F66;
  --borde: #DDD6CB;
  --blanco: #FFFFFF;
  --ok: #138A5A;
  --error: #C2381E;
  --radio: 14px;
  --radio-sm: 10px;
  --sombra: 0 1px 2px rgba(31,35,40,.06), 0 8px 24px rgba(31,35,40,.08);
  --f-titulo: "Space Grotesk", system-ui, sans-serif;
  --f-texto: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --ease: cubic-bezier(.2,.7,.2,1);
  --header-h: 64px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--f-texto); font-size: 16px; line-height: 1.6; color: var(--texto); background: var(--crema); -webkit-font-smoothing: antialiased; }
img, svg { max-width: 100%; display: block; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { font-family: var(--f-titulo); line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.02em; font-weight: 700; }
h1 { font-size: clamp(2rem, 6vw, 3.4rem); }
h2 { font-size: clamp(1.5rem, 4vw, 2.2rem); }
h3 { font-size: 1.1rem; }
p { margin: 0 0 1em; }
.container { width: min(1180px, 100% - 2.5rem); margin-inline: auto; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.muted { color: var(--texto-2); }
:focus-visible { outline: 3px solid var(--menta); outline-offset: 2px; border-radius: 4px; }
.skip-link { position: absolute; left: 1rem; top: -60px; z-index: 100; background: var(--grafito); color: #fff; padding: .6rem 1rem; border-radius: var(--radio-sm); transition: top .2s; }
.skip-link:focus { top: 1rem; }
[hidden] { display: none !important; }

/* ---------- iconos ---------- */
.icon, .icon-btn svg, .btn svg, .wa-inline svg, .wa-float svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- barra de aviso ---------- */
.promo { background: var(--grafito); color: var(--crema); font-size: .82rem; text-align: center; padding: .45rem 1rem; }
@media (max-width: 600px) { .hide-sm { display: none; } }
.promo strong { color: var(--naranja); font-weight: 600; }

/* ---------- encabezado ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(246,243,238,.9); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid transparent; transition: border-color .3s, box-shadow .3s; }
.site-header.scrolled { border-color: var(--borde); box-shadow: 0 4px 20px rgba(31,35,40,.06); }
.header-inner { display: flex; align-items: center; gap: 1rem; height: var(--header-h); }
.brand { display: flex; align-items: center; gap: .55rem; text-decoration: none; font-family: var(--f-titulo); font-weight: 700; font-size: 1.25rem; letter-spacing: -.03em; margin-right: auto; }
.brand svg { width: 34px; height: 34px; transition: transform .5s var(--ease); }
.brand:hover svg { transform: rotate(-12deg) scale(1.05); }
.brand b { color: var(--naranja); font-weight: 700; }
.header-actions { display: flex; align-items: center; gap: .25rem; }
.icon-btn { position: relative; display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; border: 0; background: none; cursor: pointer; text-decoration: none; transition: background .2s; }
.icon-btn:hover { background: var(--crema-2); }
.cart-count { position: absolute; top: 4px; right: 2px; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 10px; background: var(--naranja); color: #fff; font-size: .7rem; font-weight: 700; display: grid; place-items: center; animation: pop .35s var(--ease); }
@keyframes pop { from { transform: scale(.4); } }
/* El header tiene backdrop-filter, así que el menú fijo se posiciona respecto del header */
.main-nav { position: fixed; top: var(--header-h); left: 0; right: 0; height: calc(100vh - var(--header-h)); height: calc(100dvh - var(--header-h)); background: var(--crema); padding: 1.5rem 1.25rem; transform: translateX(100%); visibility: hidden; transition: transform .35s var(--ease), visibility .35s; overflow-y: auto; }
.main-nav.open { transform: none; visibility: visible; }
.main-nav ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .25rem; }
.main-nav a { display: block; padding: .85rem .5rem; font-family: var(--f-titulo); font-size: 1.35rem; font-weight: 600; text-decoration: none; border-bottom: 1px solid var(--borde); }
.main-nav a[aria-current="page"] { color: var(--naranja-osc); }
body.nav-open { overflow: hidden; }
@media (min-width: 960px) {
  .menu-toggle { display: none; }
  .main-nav { position: static; height: auto; transform: none; visibility: visible; background: none; padding: 0; overflow: visible; }
  .main-nav ul { display: flex; gap: .25rem; }
  .main-nav a { font-family: var(--f-texto); font-size: .95rem; font-weight: 500; padding: .5rem .8rem; border: 0; border-radius: 10px; position: relative; }
  .main-nav a::after { content: ""; position: absolute; left: .8rem; right: .8rem; bottom: .3rem; height: 2px; background: var(--naranja); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
  .main-nav a:hover::after, .main-nav a[aria-current="page"]::after { transform: scaleX(1); }
  .main-nav a[aria-current="page"] { color: inherit; }
  .main-nav { margin-right: .5rem; }
}

/* ---------- botones ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 48px; padding: .75rem 1.4rem; border-radius: 12px; border: 2px solid transparent; font-weight: 600; font-size: 1rem; text-decoration: none; cursor: pointer; transition: transform .2s var(--ease), background .2s, box-shadow .2s, color .2s; position: relative; overflow: hidden; }
.btn:active { transform: translateY(1px) scale(.99); }
.btn-primary { background: var(--naranja); color: #fff; box-shadow: 0 4px 14px rgba(255,107,53,.3); }
.btn-primary:hover { background: var(--naranja-osc); }
/* efecto "capas" al pasar el mouse */
.btn-primary::before { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(0deg, rgba(255,255,255,.14) 0 2px, transparent 2px 6px); transform: translateY(100%); transition: transform .45s var(--ease); }
.btn-primary:hover::before { transform: none; }
.btn-dark { background: var(--grafito); color: var(--crema); }
.btn-dark:hover { background: #000; }
.btn-ghost { background: transparent; border-color: var(--grafito); color: var(--grafito); }
.btn-ghost:hover { background: var(--grafito); color: var(--crema); }
.btn-wa { background: #1FA855; color: #fff; }
.btn-wa:hover { background: #178A45; }
.btn-wa svg { fill: currentColor; stroke: none; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .6; cursor: progress; }
.link-btn { background: none; border: 0; padding: .25rem 0; color: var(--texto-2); text-decoration: underline; cursor: pointer; font-size: .9rem; }
.link-btn:hover { color: var(--error); }

/* ---------- secciones ---------- */
.section { padding: clamp(3rem, 8vw, 5.5rem) 0; }
.section-alt { background: var(--blanco); }
.section-dark { background: var(--grafito); color: var(--crema); }
.section-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 1rem; margin-bottom: 2rem; }
.section-head h2 { margin: 0; }
.eyebrow { font-family: var(--f-titulo); text-transform: uppercase; letter-spacing: .14em; font-size: .78rem; font-weight: 600; color: var(--naranja-osc); margin-bottom: .5rem; }
.section-dark .eyebrow { color: var(--naranja); }
.lead { font-size: 1.1rem; color: var(--texto-2); }
.page-hero { padding: clamp(2.5rem, 7vw, 4.5rem) 0 2rem; background-image: linear-gradient(var(--borde) 1px, transparent 1px), linear-gradient(90deg, var(--borde) 1px, transparent 1px); background-size: 28px 28px; background-position: -1px -1px; mask-image: none; position: relative; }
.page-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(246,243,238,.6), var(--crema)); pointer-events: none; }
.page-hero > * { position: relative; z-index: 1; }
.page-hero p { max-width: 60ch; }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; padding: clamp(2.5rem, 7vw, 5rem) 0 clamp(3rem, 7vw, 5rem); }
.hero::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(31,35,40,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(31,35,40,.06) 1px, transparent 1px); background-size: 32px 32px; mask-image: radial-gradient(ellipse at 70% 40%, #000 20%, transparent 75%); -webkit-mask-image: radial-gradient(ellipse at 70% 40%, #000 20%, transparent 75%); }
.hero-grid { position: relative; display: grid; gap: 2rem; align-items: center; }
.hero h1 { margin-bottom: .4em; }
.hero h1 em { font-style: normal; color: var(--naranja); position: relative; white-space: nowrap; }
.hero h1 em::after { content: ""; position: absolute; left: 0; right: 0; bottom: .02em; height: .18em; background: repeating-linear-gradient(90deg, var(--menta) 0 6px, transparent 6px 10px); opacity: .8; }
.hero .lead { max-width: 46ch; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.5rem; }
.hero-art { max-width: 520px; margin-inline: auto; width: 100%; }
.hero-art .nozzle { animation: nozzle 4.5s ease-in-out infinite; }
.hero-art .layer-new { animation: layerIn 4.5s ease-in-out infinite; transform-origin: center bottom; }
@keyframes nozzle { 0%, 100% { transform: translateX(-46px); } 50% { transform: translateX(46px); } }
@keyframes layerIn { 0%, 15% { opacity: 0; } 40%, 100% { opacity: 1; } }
.hero-stats { display: flex; flex-wrap: wrap; gap: 1.5rem 2rem; margin-top: 2rem; padding: 0; list-style: none; }
.hero-stats li { font-size: .9rem; color: var(--texto-2); }
.hero-stats strong { display: block; font-family: var(--f-titulo); font-size: 1.5rem; color: var(--texto); }
@media (min-width: 900px) { .hero-grid { grid-template-columns: 1.05fr 1fr; } }

/* ---------- franja de beneficios ---------- */
.features { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.feature { display: flex; gap: .9rem; align-items: flex-start; padding: 1.1rem; border-radius: var(--radio); background: var(--crema); }
.feature .icon { flex: none; width: 42px; height: 42px; padding: 9px; border-radius: 12px; background: var(--grafito); color: var(--naranja); }
.feature h3 { margin: 0 0 .15rem; font-size: 1rem; }
.feature p { margin: 0; font-size: .9rem; color: var(--texto-2); }

/* ---------- categorías ---------- */
.cats { display: grid; gap: .9rem; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 720px) { .cats { grid-template-columns: repeat(4, 1fr); } }
.cat { position: relative; display: block; border-radius: var(--radio); overflow: hidden; background: var(--blanco); text-decoration: none; border: 1px solid var(--borde); transition: transform .35s var(--ease), box-shadow .35s; }
.cat:hover { transform: translateY(-4px); box-shadow: var(--sombra); }
.cat img { aspect-ratio: 1; object-fit: cover; width: 100%; transform: scale(1.12); transition: transform .6s var(--ease); }
.cat:hover img { transform: scale(1.2); }
.cat span { position: absolute; left: .75rem; right: .75rem; bottom: .75rem; background: rgba(255,255,255,.94); border-radius: 10px; padding: .5rem .7rem; }
.cat strong { display: block; font-family: var(--f-titulo); }
.cat small { color: var(--texto-2); font-size: .78rem; }
.cat-wide { grid-column: span 2; }
.cat-wide img { aspect-ratio: 2 / 1; object-position: center 60%; }

/* ---------- tarjetas de producto ---------- */
.grid { display: grid; gap: 1.1rem; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 760px) { .grid { grid-template-columns: repeat(3, 1fr); gap: 1.4rem; } }
@media (min-width: 1100px) { .grid-4 { grid-template-columns: repeat(4, 1fr); } }
.card { display: flex; flex-direction: column; background: var(--blanco); border-radius: var(--radio); overflow: hidden; border: 1px solid var(--borde); transition: transform .35s var(--ease), box-shadow .35s; }
.card:hover { transform: translateY(-4px); box-shadow: var(--sombra); }
.card-media { position: relative; display: block; aspect-ratio: 1; overflow: hidden; background: var(--crema); }
.card-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .45s, transform .6s var(--ease); }
.card-media img.alt { opacity: 0; }
@media (hover: hover) { .card:hover .card-media img.alt { opacity: 1; } .card:hover .card-media img { transform: scale(1.04); } }
.badges { position: absolute; top: .6rem; left: .6rem; display: flex; gap: .35rem; z-index: 1; }
.badge { display: inline-block; padding: .2rem .55rem; border-radius: 999px; font-size: .72rem; font-weight: 700; letter-spacing: .02em; }
.badge-new { background: var(--menta); color: #04342C; }
.badge-off { background: var(--naranja); color: #fff; }
.card-body { padding: .85rem .9rem 1rem; display: flex; flex-direction: column; gap: .3rem; flex: 1; }
.card-cat { margin: 0; font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; color: var(--texto-2); }
.card-title { margin: 0; font-size: .98rem; font-family: var(--f-texto); font-weight: 600; letter-spacing: -.01em; }
.card-title a { text-decoration: none; }
.card-title a::after { content: ""; position: absolute; inset: 0; }
.card { position: relative; }
.card-swatches { display: flex; gap: .3rem; align-items: center; margin-top: .15rem; }
.dot { display: inline-block; width: 14px; height: 14px; border-radius: 50%; background: var(--c); box-shadow: inset 0 0 0 1px rgba(0,0,0,.18); }
.dot-more { font-size: .72rem; color: var(--texto-2); }
.card-price { margin: auto 0 0; padding-top: .35rem; display: flex; flex-wrap: wrap; align-items: baseline; gap: .1rem .45rem; }
.card-price strong { font-size: 1.1rem; font-family: var(--f-titulo); }
.card-price .from { font-size: .78rem; color: var(--texto-2); width: 100%; }
.card-price s { color: var(--texto-2); font-size: .85rem; }

/* ---------- pasos ---------- */
.steps { display: grid; gap: 1rem; counter-reset: step; list-style: none; padding: 0; margin: 0; }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.steps li { counter-increment: step; padding: 1.4rem; border-radius: var(--radio); background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); }
.section:not(.section-dark) .steps li { background: var(--blanco); border-color: var(--borde); }
.steps li::before { content: "0" counter(step); display: block; font-family: var(--f-titulo); font-size: 2rem; font-weight: 700; color: var(--naranja); margin-bottom: .4rem; }
.steps h3 { margin-bottom: .3rem; }
.steps p { margin: 0; opacity: .85; }

/* ---------- banda CTA ---------- */
.cta-band { display: grid; gap: 1.5rem; align-items: center; padding: clamp(1.75rem, 5vw, 3rem); border-radius: 22px; background: var(--naranja); color: #fff; position: relative; overflow: hidden; }
.cta-band::after { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(0deg, rgba(255,255,255,.08) 0 2px, transparent 2px 8px); pointer-events: none; }
.cta-band > * { position: relative; z-index: 1; }
.cta-band h2 { margin: 0 0 .3rem; }
.cta-band p { margin: 0; opacity: .92; }
@media (min-width: 760px) { .cta-band { grid-template-columns: 1fr auto; } }

/* ---------- catálogo ---------- */
.shop { display: grid; gap: 1.5rem; padding-bottom: 4rem; }
@media (min-width: 960px) { .shop { grid-template-columns: 260px 1fr; align-items: start; } }
.toolbar { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; justify-content: space-between; margin-bottom: 1.25rem; }
.search { position: relative; flex: 1 1 260px; }
.search svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; position: absolute; left: .9rem; top: 50%; transform: translateY(-50%); width: 20px; height: 20px; color: var(--texto-2); pointer-events: none; }
.search input { width: 100%; min-height: 48px; padding: .7rem 1rem .7rem 2.7rem; border-radius: 12px; border: 1.5px solid var(--borde); background: var(--blanco); }
.search input:focus { border-color: var(--grafito); outline: none; box-shadow: 0 0 0 3px rgba(46,196,182,.35); }
.toolbar-right { display: flex; gap: .6rem; align-items: center; }
.select { min-height: 44px; padding: .5rem 2.2rem .5rem .8rem; border-radius: 10px; border: 1.5px solid var(--borde); background: var(--blanco) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231F2328' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right .6rem center / 16px; appearance: none; -webkit-appearance: none; }
.result-count { font-size: .9rem; color: var(--texto-2); margin: 0 0 1rem; }
.filters-btn { display: inline-flex; }
.filters-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.filters { position: fixed; inset: 0; z-index: 70; background: var(--crema); padding: 1.25rem 1.25rem 6rem; overflow-y: auto; transform: translateY(100%); visibility: hidden; transition: transform .35s var(--ease), visibility .35s; }
.filters.open { transform: none; visibility: visible; }
.filters-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem; }
.filters-foot { position: fixed; left: 0; right: 0; bottom: 0; padding: 1rem 1.25rem; background: var(--crema); border-top: 1px solid var(--borde); display: flex; gap: .6rem; }
body.filters-open { overflow: hidden; }
@media (min-width: 960px) {
  .filters-btn, .filters-head button, .filters-foot { display: none !important; }
  .filters { position: sticky; top: calc(var(--header-h) + 1rem); transform: none; visibility: visible; padding: 0; background: none; overflow: visible; z-index: 1; }
}
.f-group { border: 0; padding: 1rem 0; margin: 0; box-shadow: 0 -1px 0 var(--borde); }
.f-group legend { font-family: var(--f-titulo); font-weight: 600; padding: 0; margin-bottom: .6rem; }
.check { display: flex; align-items: center; gap: .6rem; padding: .3rem 0; cursor: pointer; font-size: .95rem; }
.check input { width: 18px; height: 18px; accent-color: var(--naranja); }
.check em { margin-left: auto; font-style: normal; font-size: .8rem; color: var(--texto-2); }
.swatch-list { display: flex; flex-wrap: wrap; gap: .45rem; }
.swatch-check { position: relative; cursor: pointer; }
.swatch-check input, .chip-check input, .swatch input, .size input, .pay input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.swatch-check .dot { width: 30px; height: 30px; transition: transform .2s; }
.swatch-check input:checked + .dot { box-shadow: 0 0 0 2px var(--crema), 0 0 0 4px var(--grafito); }
.swatch-check input:focus-visible + .dot { outline: 3px solid var(--menta); outline-offset: 3px; }
.swatch-check:hover .dot { transform: scale(1.1); }
.chip-list { display: flex; flex-wrap: wrap; gap: .4rem; }
.chip-check span { display: inline-block; padding: .35rem .8rem; border-radius: 999px; border: 1.5px solid var(--borde); background: var(--blanco); cursor: pointer; font-size: .9rem; transition: all .2s; }
.chip-check input:checked + span { background: var(--grafito); color: var(--crema); border-color: var(--grafito); }
.chip-check input:focus-visible + span { outline: 3px solid var(--menta); outline-offset: 2px; }
input[type=range] { width: 100%; accent-color: var(--naranja); }
.range-out { display: flex; justify-content: space-between; font-size: .85rem; color: var(--texto-2); }

/* ---------- ficha de producto ---------- */
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: .3rem; padding: 0; margin: 1.25rem 0 1.25rem; font-size: .85rem; color: var(--texto-2); }
.breadcrumb li + li::before { content: "/"; margin-right: .3rem; opacity: .5; }
.breadcrumb a { text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.product { display: grid; gap: 2rem; padding-bottom: 3rem; }
@media (min-width: 900px) { .product { grid-template-columns: 1.1fr 1fr; gap: 3rem; align-items: start; } .gallery { position: sticky; top: calc(var(--header-h) + 1rem); } }
.gallery-main { position: relative; border-radius: 18px; overflow: hidden; background: var(--blanco); aspect-ratio: 1; touch-action: pan-y; }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.gallery-main img.in { animation: fadeIn .45s var(--ease); }
@keyframes fadeIn { from { opacity: 0; transform: scale(1.02); } }
.g-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255,255,255,.92); display: grid; place-items: center; cursor: pointer; box-shadow: var(--sombra); transition: transform .2s; }
.g-nav:hover { transform: translateY(-50%) scale(1.08); }
.g-nav svg { width: 22px; height: 22px; fill: none; stroke: var(--grafito); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.g-prev { left: .75rem; } .g-next { right: .75rem; }
.thumbs { display: flex; gap: .6rem; margin-top: .75rem; }
.thumbs button { width: 76px; height: 76px; padding: 0; border-radius: 12px; overflow: hidden; border: 2px solid transparent; cursor: pointer; background: var(--blanco); opacity: .7; transition: opacity .2s, border-color .2s; }
.thumbs button[aria-current="true"] { border-color: var(--grafito); opacity: 1; }
.thumbs button:hover { opacity: 1; }
.product-info h1 { font-size: clamp(1.8rem, 4.5vw, 2.6rem); }
.price { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem .7rem; margin-bottom: 1rem; }
.price-now { font-family: var(--f-titulo); font-size: 2rem; font-weight: 700; }
.price-before { color: var(--texto-2); }
.price-note { width: 100%; margin: 0; font-size: .9rem; color: var(--menta-osc); font-weight: 600; }
.opt { border: 0; padding: 0; margin: 0 0 1.25rem; }
.opt legend { font-weight: 600; margin-bottom: .55rem; padding: 0; }
.opt legend strong { font-weight: 400; color: var(--texto-2); }
.swatches { display: flex; flex-wrap: wrap; gap: .6rem; }
.swatch { position: relative; cursor: pointer; }
.swatch .dot { width: 38px; height: 38px; transition: transform .2s; }
.swatch:hover .dot { transform: scale(1.08); }
.swatch input:checked + .dot { box-shadow: 0 0 0 3px var(--crema), 0 0 0 5px var(--grafito); }
.swatch input:focus-visible + .dot { outline: 3px solid var(--menta); outline-offset: 5px; }
.sizes { display: flex; flex-wrap: wrap; gap: .5rem; }
.size span { display: grid; place-items: center; min-width: 76px; padding: .55rem .9rem; border-radius: 12px; border: 1.5px solid var(--borde); background: var(--blanco); cursor: pointer; font-weight: 700; line-height: 1.2; transition: all .2s; }
.size small { font-weight: 500; font-size: .75rem; color: var(--texto-2); }
.size input:checked + span { border-color: var(--grafito); background: var(--grafito); color: var(--crema); }
.size input:checked + span small { color: var(--crema-2); }
.size input:focus-visible + span { outline: 3px solid var(--menta); outline-offset: 2px; }
.buy-row { display: flex; gap: .6rem; margin: 1.25rem 0 .6rem; }
.qty { display: inline-flex; align-items: center; border: 1.5px solid var(--borde); border-radius: 12px; background: var(--blanco); overflow: hidden; flex: none; }
.qty button { width: 42px; height: 46px; border: 0; background: none; font-size: 1.25rem; cursor: pointer; }
.qty button:hover { background: var(--crema-2); }
.qty input { width: 42px; height: 46px; border: 0; text-align: center; font-weight: 600; -moz-appearance: textfield; background: none; }
.qty input::-webkit-inner-spin-button, .qty input::-webkit-outer-spin-button { -webkit-appearance: none; }
.qty-sm button, .qty-sm input { height: 38px; width: 36px; }
.wa-inline { display: inline-flex; align-items: center; gap: .45rem; margin: 1rem 0; color: #178A45; font-weight: 600; text-decoration: none; }
.wa-inline svg { fill: currentColor; stroke: none; }
.wa-inline:hover { text-decoration: underline; }
.perks { list-style: none; padding: 1rem; margin: 0 0 1rem; background: var(--blanco); border-radius: var(--radio); border: 1px solid var(--borde); font-size: .92rem; display: grid; gap: .4rem; }
.perks li { padding-left: 1.6rem; position: relative; }
.perks li::before { content: ""; position: absolute; left: .2rem; top: .45em; width: 12px; height: 12px; border-radius: 3px; background: var(--menta); transform: rotate(45deg) scale(.75); }
.accordion details { border-top: 1px solid var(--borde); }
.accordion details:last-child { border-bottom: 1px solid var(--borde); }
.accordion summary { cursor: pointer; list-style: none; padding: 1rem 0; font-weight: 600; display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::after { content: "+"; font-size: 1.4rem; font-weight: 400; transition: transform .3s var(--ease); flex: none; }
.accordion details[open] summary::after { transform: rotate(45deg); }
.accordion details > :not(summary) { margin-top: 0; padding-bottom: 1rem; color: var(--texto-2); animation: fadeIn .35s var(--ease); }
.specs { padding-left: 1.2rem; margin: 0; }
.specs li { margin-bottom: .25rem; }

/* ---------- carrito ---------- */
.cart-layout { display: grid; gap: 1.5rem; padding-bottom: 4rem; }
@media (min-width: 900px) { .cart-layout { grid-template-columns: 1fr 360px; align-items: start; } }
.cart-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .75rem; }
.cart-item { display: grid; grid-template-columns: 84px 1fr; gap: .9rem; padding: .9rem; background: var(--blanco); border-radius: var(--radio); border: 1px solid var(--borde); animation: fadeIn .35s var(--ease); }
.cart-img img { width: 84px; height: 84px; border-radius: 10px; object-fit: cover; }
.cart-info h3 { margin: 0 0 .2rem; font-family: var(--f-texto); font-size: 1rem; }
.cart-info h3 a { text-decoration: none; }
.cart-info p { margin: 0; font-size: .85rem; }
.cart-actions { display: flex; align-items: center; gap: 1rem; margin-top: .6rem; }
.cart-sub { grid-column: 2; margin: 0; font-family: var(--f-titulo); font-weight: 700; font-size: 1.05rem; }
@media (min-width: 600px) { .cart-item { grid-template-columns: 96px 1fr auto; } .cart-img img { width: 96px; height: 96px; } .cart-sub { grid-column: auto; } }
.summary { background: var(--blanco); border-radius: var(--radio); border: 1px solid var(--borde); padding: 1.25rem; display: grid; gap: .75rem; }
@media (min-width: 900px) { .summary { position: sticky; top: calc(var(--header-h) + 1rem); } }
.summary h2 { font-size: 1.3rem; margin: 0; }
.totals { display: grid; grid-template-columns: 1fr auto; gap: .45rem 1rem; margin: 0; }
.totals dt { color: var(--texto-2); }
.totals dd { margin: 0; text-align: right; font-weight: 600; }
.totals .total { font-family: var(--f-titulo); font-size: 1.35rem; color: var(--texto); padding-top: .6rem; border-top: 1px solid var(--borde); }
.ship-progress p { margin: 0 0 .4rem; font-size: .9rem; }
.bar { height: 8px; border-radius: 4px; background: var(--crema-2); overflow: hidden; }
.bar span { display: block; height: 100%; background: repeating-linear-gradient(90deg, var(--menta) 0 10px, var(--menta-osc) 10px 12px); border-radius: 4px; transition: width .6s var(--ease); }

/* ---------- formularios ---------- */
.form-card { background: var(--blanco); border-radius: 18px; border: 1px solid var(--borde); padding: clamp(1.25rem, 4vw, 2rem); }
.form-grid { display: grid; gap: 1rem; }
@media (min-width: 640px) { .form-grid.cols-2 { grid-template-columns: 1fr 1fr; } .span-2 { grid-column: 1 / -1; } }
.field { display: grid; gap: .35rem; }
.field label, .field .label { font-weight: 600; font-size: .92rem; }
.req { color: var(--error); }
.input, .field input:not([type=checkbox]):not([type=radio]):not([type=file]), .field select, .field textarea { width: 100%; min-height: 48px; padding: .7rem .9rem; border: 1.5px solid var(--borde); border-radius: 12px; background: var(--crema); transition: border-color .2s, box-shadow .2s; }
.field textarea { min-height: 130px; resize: vertical; }
.field select { appearance: none; -webkit-appearance: none; background: var(--crema) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231F2328' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right .8rem center / 16px; padding-right: 2.4rem; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--grafito); box-shadow: 0 0 0 3px rgba(46,196,182,.35); background-color: var(--blanco); }
[aria-invalid="true"] { border-color: var(--error) !important; }
.err { color: var(--error); font-size: .85rem; min-height: 0; margin: 0; }
.err:empty { display: none; }
.hint { font-size: .82rem; color: var(--texto-2); margin: 0; }
.dropzone { position: relative; display: grid; place-items: center; gap: .35rem; text-align: center; padding: 1.5rem 1rem; border: 2px dashed var(--borde); border-radius: 14px; background: var(--crema); cursor: pointer; transition: border-color .2s, background .2s; }
.dropzone:hover, .dropzone:focus-within { border-color: var(--naranja); background: #FFF4EE; }
.dropzone input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.dropzone svg { width: 34px; height: 34px; color: var(--naranja); fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.dropzone strong { font-size: .95rem; }
.file-name { font-size: .85rem; color: var(--texto-2); }
.check-line { display: flex; gap: .6rem; align-items: flex-start; font-size: .9rem; cursor: pointer; }
.check-line input { width: 20px; height: 20px; margin-top: .15rem; accent-color: var(--naranja); flex: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-result, .done { text-align: center; padding: clamp(2rem, 6vw, 3rem) 1.25rem; background: var(--blanco); border-radius: 18px; border: 1px solid var(--borde); display: grid; justify-items: center; gap: .75rem; animation: fadeIn .45s var(--ease); }
.form-result p, .done p { max-width: 52ch; margin: 0; }
.form-error { padding: 1rem; border-radius: 12px; background: #FDECE7; border: 1px solid #F2B8A6; display: grid; gap: .75rem; justify-items: start; }
.form-error p { margin: 0; }
.done-icon { width: 64px; height: 64px; padding: 14px; border-radius: 50%; background: var(--menta); fill: none; stroke: #04342C; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; animation: pop .5s var(--ease); }
.demo-note { font-size: .9rem; padding: .75rem 1rem; border-radius: 12px; background: #FFF6E5; border: 1px solid #F3D9A4; }
.demo-banner { display: block; padding: .8rem 1rem; border-radius: 12px; background: #FFF6E5; border: 1px solid #F3D9A4; font-size: .9rem; margin-bottom: 1.25rem; }
.pay-list { display: grid; gap: .6rem; }
.pay > span { display: flex; justify-content: space-between; gap: 1rem; padding: .9rem 1rem; border-radius: 12px; border: 1.5px solid var(--borde); background: var(--crema); cursor: pointer; transition: all .2s; }
.pay > span small { color: var(--texto-2); font-weight: 400; }
.pay > span b { font-weight: 600; }
.pay input:checked + span { border-color: var(--grafito); background: var(--blanco); box-shadow: inset 0 0 0 1px var(--grafito); }
.pay input:focus-visible + span { outline: 3px solid var(--menta); outline-offset: 2px; }
.checkout-grid { display: grid; gap: 1.5rem; padding-bottom: 4rem; }
@media (min-width: 960px) { .checkout-grid { grid-template-columns: 1fr 380px; align-items: start; } }
.checkout-grid fieldset { border: 0; padding: 0; margin: 0 0 1.5rem; }
.checkout-grid legend { float: left; width: 100%; font-family: var(--f-titulo); font-size: 1.2rem; font-weight: 700; margin-bottom: .8rem; padding: 0; }
.checkout-grid legend + * { clear: both; }
.co-lines { list-style: none; padding: 0; margin: 0; display: grid; gap: .6rem; }
.co-lines li { display: grid; grid-template-columns: 56px 1fr auto; gap: .7rem; align-items: center; font-size: .9rem; }
.co-lines img { border-radius: 8px; width: 56px; height: 56px; object-fit: cover; }
.co-lines small { display: block; color: var(--texto-2); }
.co-lines em { font-style: normal; font-weight: 600; }

/* ---------- textos institucionales ---------- */
.prose { max-width: 72ch; }
.prose h2 { margin-top: 2rem; font-size: 1.5rem; }
.prose h3 { margin-top: 1.5rem; }
.prose ul { padding-left: 1.2rem; }
.prose li { margin-bottom: .35rem; }
.two-col { display: grid; gap: 2rem; padding-bottom: 4rem; }
@media (min-width: 900px) { .two-col { grid-template-columns: 1.3fr 1fr; align-items: start; } }
.info-card { background: var(--grafito); color: var(--crema); border-radius: 18px; padding: 1.75rem; display: grid; gap: 1rem; }
.info-card h2, .info-card h3 { color: #fff; margin: 0; }
.info-card a:not(.btn) { color: var(--naranja); }
.form-result, .done, .form-error, input, select, textarea, #producto { scroll-margin-top: calc(var(--header-h) + 1.5rem); }
.info-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .8rem; }
.info-list li { display: flex; gap: .7rem; align-items: center; }
.info-list svg { width: 22px; height: 22px; flex: none; fill: none; stroke: var(--menta); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.values { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.value { padding: 1.4rem; border-radius: var(--radio); background: var(--blanco); border: 1px solid var(--borde); }
.value .icon { width: 40px; height: 40px; padding: 8px; border-radius: 12px; background: var(--crema); color: var(--naranja-osc); margin-bottom: .75rem; }
.value p { margin: 0; color: var(--texto-2); font-size: .95rem; }
.faq { max-width: 820px; padding-bottom: 4rem; }
.faq h2 { font-size: 1.3rem; margin: 2.2rem 0 .5rem; }
.empty-state { text-align: center; padding: 4rem 1rem; display: grid; justify-items: center; gap: .5rem; }
.empty-icon { width: 56px; height: 56px; fill: none; stroke: var(--gris); stroke-width: 1.5; }
.callout { padding: 1rem 1.2rem; border-radius: 12px; background: var(--blanco); border-left: 4px solid var(--naranja); }

/* ---------- pie ---------- */
.site-footer { background: var(--grafito); color: #C9C6BF; padding: 3.5rem 0 6rem; font-size: .92rem; }
.footer-grid { display: grid; gap: 2rem; grid-template-columns: 1fr 1fr; }
@media (min-width: 860px) { .footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1.2fr; } }
.footer-brand { grid-column: 1 / -1; }
@media (min-width: 860px) { .footer-brand { grid-column: auto; } }
.footer-brand .brand { color: #fff; margin-bottom: .75rem; }
.site-footer h2 { font-family: var(--f-titulo); color: #fff; font-size: 1rem; margin-bottom: .8rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .45rem; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--naranja); }
.footer-bottom { display: flex; flex-wrap: wrap; gap: .75rem 1.5rem; justify-content: space-between; border-top: 1px solid rgba(255,255,255,.12); margin-top: 2.5rem; padding-top: 1.5rem; font-size: .82rem; }
.arrepentimiento { display: inline-block; padding: .45rem .85rem; border: 1.5px solid var(--naranja); border-radius: 10px; color: #fff; font-weight: 600; }

/* ---------- WhatsApp flotante ---------- */
.wa-float { position: fixed; right: 1rem; bottom: 1rem; z-index: 60; width: 58px; height: 58px; border-radius: 50%; background: #1FA855; color: #fff; display: grid; place-items: center; box-shadow: 0 8px 24px rgba(31,168,85,.4); transition: transform .25s var(--ease); }
.wa-float svg { width: 30px; height: 30px; fill: currentColor; stroke: none; }
.wa-float:hover { transform: scale(1.08); }
.wa-float::before { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid #1FA855; animation: ring 2.6s ease-out infinite; }
@keyframes ring { from { transform: scale(1); opacity: .8; } to { transform: scale(1.6); opacity: 0; } }
body.filters-open .wa-float, body.nav-open .wa-float { display: none; }

/* ---------- avisos ---------- */
.toasts { position: fixed; left: 50%; bottom: 1.25rem; transform: translateX(-50%); z-index: 90; display: grid; gap: .5rem; width: min(440px, 100% - 2rem); }
.toast { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .85rem 1.1rem; border-radius: 12px; background: var(--grafito); color: var(--crema); box-shadow: 0 12px 30px rgba(0,0,0,.25); opacity: 0; transform: translateY(12px); transition: opacity .3s, transform .3s var(--ease); font-size: .92rem; }
.toast.show { opacity: 1; transform: none; }
.toast a { color: var(--naranja); font-weight: 700; white-space: nowrap; }

/* ---------- animaciones de entrada ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
@media print { .site-header, .site-footer, .wa-float, .promo { display: none; } }
