/* Todovinilosmr — mezcla de los dos modelos de la demo sobre el motor de Florería Romina
   (Template-Ecommerce). Base turquesa + tinta de la demo y, a pedido de Mirian («un poco más de
   color, más vida»), los colores de su Instagram: coral de los tulipanes, mostaza y madera.
   Bricolage Grotesque para los títulos, Instrument Sans para el texto, Dancing Script (cursiva). */

:root {
  /* Los nombres de variables son los del motor (florería): --brown = títulos, --gold = botones,
     --rose = acento, --pink/--blush = fondos suaves. */
  --ink: #13292b;
  --brown: #13292b;
  --brown-dark: #0b1c1e;
  --muted: #4d6365;
  --paper: #f7fafa;
  --blush: #e8f3f3;
  --blush-soft: #f1f8f8;
  --blush-deep: #cfe9ea;
  --pink: #fde3e6;
  --pink-deep: #f6b9c1;
  --rose: #b8384f;
  --rose-dark: #9a2c40;
  --gold: #0f7a80;
  --gold-dark: #0b6469;
  --gold-light: #8fd3d5;
  --line: #d6eeee;
  --field: #b9d9da;
  /* Propios de Todovinilos */
  --turquesa: #0f7a80;
  --turquesa-vivo: #1fb5ba;
  --turquesa-claro: #4fc3c7;
  --coral: #ef6f7e;
  --coral-suave: #fde3e6;
  --mostaza: #f2b33d;
  --mostaza-suave: #fdf0d3;
  --madera: #b98a57;
  --madera-suave: #f4e9dc;
  --radius: 18px;
  --shadow-lg: 0 24px 50px -18px rgba(19, 41, 43, .28);
  --white: #fff;
  --ok: #2f7a4f;
  --error: #b3261e;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --font-sans: 'Instrument Sans', Arial, sans-serif;
  --font-serif: 'Bricolage Grotesque', 'Arial Black', sans-serif;
  --font-script: 'Dancing Script', 'Brush Script MT', cursive;
  --topbar-h: 0px;
}

/* ---------- Base ---------- */

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 132px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--font-sans); -webkit-font-smoothing: antialiased; }
body.no-scroll { overflow: hidden; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
[hidden] { display: none !important; }
h1, h2, h3, h4, p { margin-top: 0; }
h1, h2 { font-family: var(--font-serif); font-weight: 400; letter-spacing: -.045em; color: var(--brown); }
h1 em, h2 em { font-weight: 400; color: var(--rose); }
:focus-visible { outline: 2px solid var(--rose); outline-offset: 3px; }
.sr-only, .visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; z-index: 300; left: 12px; top: -60px; padding: 10px 16px; background: var(--ink); color: #fff; font-size: .8rem; font-weight: 700; transition: top .2s; }
.skip-link:focus { top: 12px; }
.wrap { width: min(100% - 7.4vw, 1340px); margin-inline: auto; }
.eyebrow { display: block; color: var(--rose); font-size: .69rem; font-weight: 700; letter-spacing: .2em; line-height: 1.5; text-transform: uppercase; }

/* Entradas al hacer scroll: el estado inicial va inline en el HTML y .in lo libera. */
[data-animate] { transition: opacity .8s var(--ease), transform .8s var(--ease); }
[data-animate].in { opacity: 1 !important; transform: none !important; }
.modo-editor [data-animate] { opacity: 1 !important; transform: none !important; transition: none !important; }

/* ---------- Botones y enlaces ---------- */

.button { display: inline-flex; align-items: center; justify-content: center; gap: 14px; min-height: 53px; padding: 15px 24px; border: 1px solid transparent; border-radius: 0; background: none; font-size: .78rem; font-weight: 700; letter-spacing: .01em; line-height: 1.2; text-align: center; transition: transform .3s var(--ease), background .3s, color .3s, border-color .3s; }
.button:hover { transform: translateY(-3px); }
.button:disabled, .button[aria-disabled="true"] { opacity: .5; cursor: not-allowed; transform: none; }
.button-primary { background: var(--gold); color: #fff; }
.button-primary:hover { background: var(--gold-dark); }
.button-dark { background: var(--brown); color: #fff; }
.button-dark:hover { background: var(--gold); }
.button-outline { border-color: var(--brown); color: var(--brown); }
.button-outline:hover { background: var(--brown); color: #fff; }
.button-light { background: #fff; color: var(--brown-dark); }
.button-outline-light { border-color: var(--brown-dark); color: var(--brown-dark); }
.button-outline-light:hover { background: var(--brown-dark); color: #fff; }
.button-full { width: 100%; }
.button-small { min-height: 42px; padding: 10px 16px; font-size: .74rem; }
.text-link { display: inline-block; padding-bottom: 4px; border-bottom: 1px solid currentColor; color: var(--brown); font-size: .8rem; font-weight: 700; transition: color .2s; }
.text-link:hover { color: var(--rose); }

/* ---------- Avisos superiores (Configuración → Avisos) ---------- */

.aviso { overflow: hidden; background: var(--brown); color: var(--blush); font-size: .74rem; font-weight: 600; letter-spacing: .03em; }
.aviso-txt { display: flex; justify-content: center; width: max-content; min-width: 100%; margin: 0; padding: 9px 16px; white-space: nowrap; }
.aviso-txt.loop { justify-content: flex-start; animation: topbar-slide linear infinite; }
.topbar-sep { margin: 0 1.2rem; opacity: .6; }
@keyframes topbar-slide { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- Cabecera: menú a la izquierda, «Romina» al centro, carrito a la derecha ---------- */

/* Sin backdrop-filter a propósito: convierte la cabecera en el contenedor del menú móvil
   (position: fixed) y el menú escondido a la derecha desborda la página en el celular. */
.site-header { position: sticky; top: 0; z-index: 80; background: var(--pink); border-bottom: 1px solid var(--gold-light); }
.header-inner { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 24px; height: 112px; }
.main-nav { grid-column: 1; grid-row: 1; justify-self: start; display: flex; align-items: center; gap: clamp(16px, 2.2vw, 38px); color: var(--brown); font-size: .86rem; font-weight: 600; }
.main-nav a { position: relative; white-space: nowrap; }
.main-nav a::after { content: ''; position: absolute; left: 0; bottom: -7px; width: 100%; height: 1px; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .25s; }
.main-nav a:hover::after, .main-nav a:focus-visible::after { transform: scaleX(1); }
/* El logo de la clienta (docs/marca), recortado a la altura de la hoja: el tallo entero no entra.
   Es crema con filete dorado: la sombra lo despega del rosa. */
.brand { grid-column: 2; grid-row: 1; display: block; line-height: 0; }
.brand img { width: auto; height: 100px; filter: drop-shadow(0 2px 5px rgba(19, 41, 43, .24)); }
.header-actions { grid-column: 3; grid-row: 1; justify-self: end; display: flex; align-items: center; gap: 12px; }
.search-trigger { display: grid; place-items: center; width: 43px; height: 43px; color: var(--brown); }
.search-trigger svg { width: 22px; height: 22px; }
.cart-trigger { display: flex; align-items: center; gap: 10px; min-height: 43px; padding: 0 12px; border: 1px solid var(--brown); background: transparent; color: var(--brown); font-size: .77rem; font-weight: 700; white-space: nowrap; transition: background .25s, color .25s; }
.cart-trigger:hover { background: var(--brown); color: #fff; }
.cart-trigger svg { width: 19px; height: 19px; fill: currentColor; }
.cart-trigger b, .floating-cart b { display: grid; place-items: center; min-width: 19px; height: 19px; padding: 0 4px; border-radius: 10px; background: var(--rose); color: #fff; font-size: .67rem; }
.cart-trigger b.bump, .floating-cart b.bump { animation: bump .45s var(--ease); }
@keyframes bump { 40% { transform: scale(1.35); } }
.menu-toggle, .nav-close { display: none; }

/* ---------- Portada (modelo 2: foto a todo el ancho, ahora en rosa) ---------- */

.hero { position: relative; min-height: 640px; overflow: hidden; background: var(--pink); color: var(--ink); }
.hero-image { position: absolute; inset: 0; }
.hero-photo { width: 100%; height: 100%; object-fit: cover; }
/* El rosa de la cabecera entra sobre la foto desde la izquierda: el texto queda sobre rosa y las flores a la derecha. */
.hero-image::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(246, 193, 213, .97) 0%, rgba(246, 193, 213, .9) 34%, rgba(246, 193, 213, .35) 58%, rgba(246, 193, 213, 0) 76%); }
.image-stamp { position: absolute; z-index: 2; right: 45px; bottom: 31px; padding: 12px 17px; background: rgba(255, 247, 249, .9); color: var(--brown); font-family: var(--font-serif); font-style: italic; font-size: 1.2rem; }
.hero-copy { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; min-height: 640px; width: min(94%, 1340px); margin-inline: auto; padding: 80px 15px 55px; }
.hero .eyebrow { color: var(--brown); }
.hero h1 { max-width: 680px; margin: 24px 0; font-size: clamp(3.8rem, 6vw, 7rem); line-height: 1.07; }
.hero-copy > p { max-width: 470px; margin-bottom: 30px; color: var(--ink); font-size: 1rem; line-height: 1.75; }
.hero-actions { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.hero .text-link:hover { color: var(--rose-dark); }
.hero-note { display: flex; align-items: center; gap: 13px; margin-top: 60px; color: var(--brown); font-size: .65rem; font-weight: 700; letter-spacing: .17em; text-transform: uppercase; }
.note-line { display: block; width: 42px; height: 1px; background: var(--gold-light); }

/* ---------- Encabezados de sección ---------- */

.section-head { display: flex; align-items: end; justify-content: space-between; gap: 50px; margin-bottom: 32px; }
.section-head h2 { margin: 11px 0 0; font-size: clamp(2.3rem, 3.4vw, 4rem); line-height: 1.2; }
.section-head > p { max-width: 350px; margin-bottom: 3px; color: var(--muted); font-size: .88rem; line-height: 1.7; }

/* ---------- Categorías ---------- */

.categories { padding-block: 75px 85px; }
.category-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 17px; }
.cat-card { position: relative; display: block; height: 205px; overflow: hidden; background: #eecfd5; color: #fff; }
.cat-card::after { content: ''; position: absolute; inset: 30% 0 0; background: linear-gradient(transparent, rgba(19, 41, 43, .66)); }
.cat-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.cat-card:hover img { transform: scale(1.08); }
.cat-card span, .cat-card small { position: absolute; z-index: 1; left: 21px; }
.cat-card span { bottom: 43px; font-family: var(--font-serif); font-size: 1.85rem; }
.cat-card small { bottom: 21px; font-size: .69rem; font-weight: 700; letter-spacing: .06em; }

/* ---------- Tienda: herramientas y grilla ---------- */

.shop { padding: 96px 0 108px; background: var(--blush-soft); }
.shop-head { margin-bottom: 30px; }
.catalog-wrap { width: min(100% - 5vw, 1400px); margin-inline: auto; }
.catalog-tools { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 17px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.filter-row { display: flex; flex-wrap: wrap; gap: 5px; }
.filter-row a, .filter-row button { padding: 9px 15px; border: 0; border-radius: 30px; background: transparent; color: var(--muted); font-size: .75rem; font-weight: 700; white-space: nowrap; transition: background .2s, color .2s; }
.filter-row .active, .filter-row [aria-pressed="true"], .filter-row a:hover, .filter-row button:hover { background: var(--brown); color: #fff; }
.search-box { position: relative; display: block; width: min(270px, 100%); flex-shrink: 0; margin: 0; }
.search-box input { width: 100%; height: 42px; padding: 0 36px 0 13px; border: 0; border-bottom: 1px solid var(--gold-light); border-radius: 0; background: transparent; outline: 0; color: var(--ink); font-size: .8rem; -webkit-appearance: none; appearance: none; }
.search-box input:focus { border-color: var(--rose); }
.search-box button, .search-box > svg { position: absolute; right: 4px; top: 6px; display: grid; place-items: center; width: 30px; height: 30px; padding: 0; border: 0; background: none; color: var(--ink); }
.search-box svg { width: 19px; height: 19px; }
.catalog-status { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 51px; margin: 0; color: var(--muted); font-size: .73rem; }
.catalog-status button { padding: 5px 0; border: 0; background: none; color: var(--rose); text-decoration: underline; font-size: .73rem; font-weight: 700; }
.product-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.product-grid[aria-busy="true"] { opacity: .55; transition: opacity .2s; }
.catalog-bottom { margin-top: 36px; text-align: center; }
.catalog-empty { padding: 68px 25px; background: #fff; text-align: center; }
.catalog-empty h3 { margin-bottom: 10px; font-family: var(--font-serif); font-size: 2rem; font-weight: 400; }
.catalog-empty p { margin-bottom: 22px; color: var(--muted); line-height: 1.6; }
.catalog-empty-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; }

/* ---------- Tarjeta de producto (misma en PHP y en js/tienda.js) ---------- */

.product-card { display: flex; flex-direction: column; min-width: 0; border: 1px solid var(--line); background: #fff; }
.product-image { position: relative; aspect-ratio: 1 / 1; overflow: hidden; background: var(--blush); }
.product-image-link, .product-image-link img { display: block; width: 100%; height: 100%; }
.product-image img { object-fit: cover; transition: transform .7s var(--ease), opacity .3s; }
.product-image:hover img { transform: scale(1.07); }
.product-quick { position: absolute; right: 13px; bottom: 13px; padding: 8px 11px; border: 0; background: #fff; color: var(--brown); font-size: .64rem; font-weight: 700; letter-spacing: .04em; opacity: 0; transform: translateY(5px); transition: opacity .25s, transform .25s; }
.product-image:hover .product-quick, .product-quick:focus-visible { opacity: 1; transform: none; }
.prod-badge { position: absolute; z-index: 1; top: 12px; left: 12px; padding: 6px 10px; border-radius: 8px; background: var(--brown); color: #fff; font-size: .62rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.prod-badge.off { background: var(--rose); }
.prod-badge.ultimas { background: var(--pink); color: var(--brown-dark); }
.prod-badge.sin { background: rgba(19, 41, 43, .82); }
.product-body { display: flex; flex: 1; flex-direction: column; padding: 18px 17px 16px; }
.product-category { margin-bottom: 7px; color: var(--rose); font-size: .63rem; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; }
.product-body h3 { min-height: 2.6em; margin-bottom: 8px; color: var(--brown); font-family: var(--font-serif); font-size: 1.35rem; font-weight: 500; line-height: 1.3; }
.product-body h3 a:hover { color: var(--rose); }
.product-price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px; margin: 0 0 16px; color: var(--brown-dark); font-size: .95rem; font-weight: 700; }
.product-price s { color: #9d8a95; font-size: .78rem; font-weight: 500; }
.product-usd { color: var(--brown); font-size: .74rem; font-weight: 500; letter-spacing: .02em; }
.product-usd[hidden] { display: none; }
.product-actions { display: flex; gap: 7px; align-items: stretch; margin-top: auto; }
.product-actions button, .product-actions a { display: inline-flex; align-items: center; justify-content: center; min-height: 42px; border: 1px solid var(--brown); background: #fff; color: var(--brown); font-size: .72rem; font-weight: 700; transition: background .2s, color .2s, border-color .2s; }
.product-detail { flex: none; width: 43px; font-size: 1.1rem !important; }
.product-add { flex: 1; min-width: 0; padding: 0 10px; overflow: hidden; border-color: var(--gold) !important; background: var(--gold) !important; color: #fff !important; white-space: nowrap; text-overflow: ellipsis; }
.product-add:hover { background: var(--gold-dark) !important; border-color: var(--gold-dark) !important; }
.product-add:disabled, .product-add:disabled:hover { background: #E4EAEB !important; border-color: #E4EAEB !important; color: #51666B !important; cursor: not-allowed; transform: none; }
.modo-cotizacion .product-price { display: none; }

/* ---------- Galería de trabajos ---------- */

.gallery { padding-block: 85px 105px; }
.gallery-grid { display: grid; grid-template-columns: 1.25fr .75fr 1fr 1fr; gap: 14px; }
.gallery-grid > button { position: relative; height: 430px; padding: 0; border: 0; overflow: hidden; background: var(--blush); color: #fff; text-align: left; }
.gallery-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform .65s var(--ease); }
.gallery-grid > button:hover img { transform: scale(1.07); }
.gallery-grid > button::after { content: ''; position: absolute; inset: 55% 0 0; background: linear-gradient(transparent, rgba(19, 41, 43, .55)); }
.gallery-grid span { position: absolute; z-index: 1; left: 16px; bottom: 18px; font-size: .72rem; font-weight: 700; }
.gallery-instagram { display: inline-block; margin-top: 27px; padding-bottom: 4px; border-bottom: 1px solid var(--rose); color: var(--rose); font-size: .82rem; font-weight: 700; }

/* ---------- Historia ---------- */

.story { display: grid; grid-template-columns: 43% 57%; min-height: 530px; overflow: hidden; background: var(--blush-deep); }
.story-photo { position: relative; order: 2; min-height: 530px; overflow: hidden; }
.story-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.story-copy { order: 1; align-self: center; padding: 65px clamp(40px, 7vw, 112px); }
.story h2 { margin: 20px 0 22px; font-size: clamp(2.8rem, 4vw, 5rem); line-height: 1.15; }
.story-copy > p { max-width: 450px; margin-bottom: 28px; color: var(--ink); font-size: .94rem; line-height: 1.8; }

/* ---------- Cómo comprar ---------- */

.how { padding: 91px 0 94px; background: var(--blush); text-align: center; }
.how .section-head { display: block; margin-bottom: 47px; }
.how .section-head > p { max-width: 540px; margin: 15px auto 0; }
.how-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-bottom: 39px; text-align: left; }
.how-grid article { padding: 26px 24px 18px; border-top: 1px solid var(--gold-light); }
.how-grid article > span { color: var(--gold); font-family: var(--font-serif); font-size: 1.8rem; }
.how-grid h3 { margin: 18px 0 9px; color: var(--brown); font-family: var(--font-serif); font-size: 1.5rem; font-weight: 500; }
.how-grid p { max-width: 300px; color: var(--muted); font-size: .82rem; line-height: 1.7; }

/* ---------- Desde lejos ---------- */

.payments { display: grid; grid-template-columns: 95px 1fr auto; align-items: center; gap: 35px; padding-block: 85px; border-bottom: 1px solid var(--line); }
.payments-mark { display: grid; place-items: center; width: 79px; height: 79px; border: 1px solid var(--gold-light); border-radius: 50%; color: var(--gold); font-family: var(--font-script); font-size: 2.8rem; }
.payments h2 { margin: 9px 0 13px; font-size: clamp(2.2rem, 3.2vw, 3.7rem); }
.payments p { max-width: 710px; margin: 0; color: var(--muted); font-size: .86rem; line-height: 1.7; }
.payments .text-link { white-space: nowrap; }

/* ---------- Preguntas frecuentes ---------- */

.faq { padding-block: 90px 110px; }
.faq-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 34px; }
.faq details { padding: 20px 12px 14px 0; border-top: 1px solid var(--blush-deep); }
.faq summary { position: relative; padding-right: 25px; list-style: none; cursor: pointer; color: var(--brown); font-family: var(--font-serif); font-size: 1.28rem; line-height: 1.4; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 0; top: 0; color: var(--rose); font-family: var(--font-sans); }
.faq details[open] summary::after { content: '−'; }
.faq details p { padding: 14px 0 0; margin: 0; color: var(--muted); font-size: .84rem; line-height: 1.7; }

/* ---------- Cierre ---------- */

.closing { padding: 98px 0 107px; background: var(--pink-deep); color: var(--brown-dark); text-align: center; }
.closing .eyebrow { color: var(--brown-dark); }
.closing h2 { color: var(--brown-dark); }
.closing h2 { margin: 15px 0 11px; font-size: clamp(3.8rem, 6vw, 7rem); }
.closing p { color: var(--ink); font-size: .92rem; }
.closing-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; margin-top: 30px; }

/* ---------- Pie ---------- */

.site-footer { padding: 58px 0 30px; border-top: 1px solid var(--gold-light); background: var(--blush); color: var(--ink); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 34px; }
.footer-brand { display: inline-block; margin-bottom: 16px; }
.footer-brand img { width: 124px; height: 124px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 4px var(--paper), 0 6px 18px rgba(19, 41, 43, .14); }
.footer-marca p { max-width: 300px; margin: 0; color: var(--ink); font-size: .82rem; line-height: 1.7; }
.footer-col h3 { margin-bottom: 14px; color: var(--rose); font-size: .69rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; }
.footer-links { display: grid; gap: 9px; }
.footer-links a { color: var(--ink); font-size: .8rem; }
.footer-links a:hover { color: var(--rose); }
.footer-legal-extra { display: flex; align-items: center; flex-wrap: wrap; gap: 18px; margin-top: 30px; font-size: .76rem; }
.footer-legal-extra img { width: 60px; height: auto; background: #fff; }
.footer-legal-extra a { color: var(--ink); text-decoration: underline; }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px 25px; margin-top: 38px; padding-top: 22px; border-top: 1px solid var(--blush-deep); color: var(--muted); font-size: .72rem; }
.footer-bottom p { margin: 0; }
.footer-bottom a:hover { color: var(--rose); }

/* ---------- Botones flotantes ---------- */

.floating-actions { position: fixed; z-index: 70; right: 22px; bottom: 20px; display: grid; gap: 8px; transition: opacity .2s; }
.floating-actions > * { position: relative; display: grid; place-items: center; width: 52px; height: 52px; border: 0; border-radius: 50%; box-shadow: 0 8px 22px rgba(19, 41, 43, .2); }
.floating-actions svg { width: 23px; height: 23px; }
.floating-cart { background: var(--brown); color: #fff; opacity: 0; pointer-events: none; transform: translateY(8px); transition: opacity .2s, transform .2s; }
.floating-cart.visible { opacity: 1; pointer-events: auto; transform: none; }
.floating-cart b { position: absolute; top: -4px; right: -4px; }
.floating-wa { background: #d35a96; color: #fff; }
.floating-wa svg { width: 25px; height: 25px; }
body.drawer-open .floating-actions, body.menu-open .floating-actions { opacity: 0; pointer-events: none; }

/* ---------- Toasts ---------- */

.toast-wrap { position: fixed; z-index: 400; left: 50%; bottom: 25px; display: grid; gap: 8px; width: min(92vw, 360px); transform: translateX(-50%); pointer-events: none; }
.toast { display: flex; align-items: center; gap: 10px; padding: 13px 18px; background: var(--ink); color: #fff; font-size: .8rem; line-height: 1.4; box-shadow: 0 10px 28px rgba(19, 41, 43, .25); animation: toast-in .3s var(--ease); }
.toast svg { flex: none; width: 17px; height: 17px; color: var(--pink); }
.toast.hiding { opacity: 0; transform: translateY(8px); transition: opacity .22s, transform .22s; }
@keyframes toast-in { from { opacity: 0; transform: translateY(10px); } }

/* ---------- Carrito (cajón lateral) ---------- */

.drawer-backdrop, .modal-backdrop { position: fixed; inset: 0; z-index: 210; background: rgba(19, 41, 43, .5); opacity: 0; transition: opacity .35s; }
.drawer-backdrop.open, .open > .modal-backdrop { opacity: 1; }
/* Dentro del modal, el fondo va debajo de la tarjeta (el z-index de arriba es el del cajón). */
.product-modal-wrap > .modal-backdrop, .gallery-modal-wrap > .modal-backdrop { z-index: 0; }
.cart-drawer { position: fixed; z-index: 220; top: 0; right: 0; bottom: 0; display: flex; flex-direction: column; width: min(100%, 500px); background: var(--paper); box-shadow: -8px 0 38px rgba(19, 41, 43, .13); transform: translateX(100%); transition: transform .38s var(--ease); outline: 0; }
.cart-drawer.open { transform: none; }
.drawer-header { display: flex; justify-content: space-between; align-items: start; gap: 18px; padding: 25px 26px 17px; border-bottom: 1px solid var(--line); }
.drawer-header h2 { margin: 4px 0 0; font-size: 2rem; }
.drawer-header h2 span { color: var(--muted); font-family: var(--font-sans); font-size: .9rem; letter-spacing: 0; }
.drawer-close, .modal-close { display: grid; place-items: center; width: 38px; height: 38px; padding: 0; border: 0; background: #fff; color: var(--ink); font-size: 1.6rem; line-height: 1; }
.cart-content { flex: 1; overflow: auto; padding: 6px 26px 24px; }
.cart-empty { padding: 55px 10px; text-align: center; }
.cart-empty h3 { font-family: var(--font-serif); font-size: 2rem; font-weight: 400; }
.cart-empty p { color: var(--muted); line-height: 1.6; }
.cart-row { display: grid; grid-template-columns: 76px 1fr; gap: 13px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.cart-row-media img { width: 76px; height: 84px; object-fit: cover; }
.cart-row h4 { margin: 0 0 4px; font-family: var(--font-serif); font-size: 1.16rem; font-weight: 500; }
.cart-row small { display: block; color: var(--muted); font-size: .72rem; }
.cart-row-price { display: flex; justify-content: space-between; gap: 10px; margin-top: 3px; font-size: .78rem; font-weight: 700; }
.dedicatoria-campo { display: block; margin-top: 12px; color: var(--ink); font-size: .7rem; font-weight: 700; }
.dedicatoria-campo textarea { display: block; width: 100%; min-height: 54px; margin-top: 6px; padding: 9px; border: 1px solid #dfcbd3; border-radius: 0; background: #fff; resize: vertical; font-size: .76rem; font-weight: 400; line-height: 1.45; }
.dedicatoria-campo textarea:focus { outline: 2px solid var(--pink-deep); outline-offset: 1px; }
.dedicatoria-campo em { display: block; margin-top: 4px; color: var(--muted); font-size: .66rem; font-style: normal; font-weight: 500; text-align: right; }
.cart-row-actions { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 8px; }
.qty-controls { display: inline-flex; align-items: center; gap: 9px; font-size: .8rem; font-weight: 700; }
.qty-controls button { display: grid; place-items: center; width: 30px; height: 30px; padding: 0; border: 1px solid var(--line); background: #fff; font-size: 1rem; }
.qty-controls button:disabled { opacity: .4; cursor: not-allowed; }
.cart-remove { padding: 4px 0; border: 0; background: none; color: var(--rose); font-size: .74rem; text-decoration: underline; }
.drawer-foot { display: grid; gap: 9px; padding: 18px 26px 24px; border-top: 1px solid var(--line); background: #fff; }
.drawer-total { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 4px; font-size: .86rem; }
.drawer-total strong { font-family: var(--font-serif); font-size: 1.6rem; font-weight: 500; }
.drawer-nota { margin: 0 0 4px; color: var(--muted); font-size: .7rem; line-height: 1.5; }

/* ---------- Detalle rápido (modal) ---------- */

.product-modal-wrap, .gallery-modal-wrap { position: fixed; inset: 0; z-index: 230; display: grid; place-items: center; padding: 16px; }
.product-modal { position: relative; z-index: 1; width: min(94vw, 850px); max-height: min(91vh, 780px); overflow: auto; background: var(--paper); opacity: 0; transform: translateY(14px) scale(.98); transition: opacity .3s, transform .35s var(--ease); outline: 0; }
.open > .product-modal, .open > .gallery-modal { opacity: 1; transform: none; }
.product-modal .modal-close, .gallery-modal .modal-close { position: absolute; z-index: 2; right: 13px; top: 13px; }
.modal-inner { display: grid; grid-template-columns: 49% 51%; }
.modal-inner > img { width: 100%; height: 100%; min-height: 540px; object-fit: cover; }
.modal-copy { padding: 55px 42px 35px; }
.modal-copy h2 { margin: 10px 0 12px; font-size: clamp(2.2rem, 3vw, 3.1rem); line-height: 1.17; }
.modal-copy > p { color: var(--muted); font-size: .84rem; line-height: 1.7; }
.modal-copy .product-price { font-size: 1.1rem; }
.modal-copy .dedicatoria-campo { margin-top: 20px; font-size: .78rem; }
.modal-copy .dedicatoria-campo textarea { min-height: 96px; padding: 12px; font-size: .82rem; }
.modal-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin-top: 18px; }
.modal-copy small { display: block; margin-top: 15px; color: var(--muted); font-size: .7rem; line-height: 1.5; }
.modal-copy .text-link { margin-top: 18px; }
.stock-nota { margin: 0 0 6px; color: var(--muted); font-size: .76rem; }
.stock-nota.sin { color: var(--error); font-weight: 700; }
.stepper { display: inline-flex; align-items: center; height: 53px; border: 1px solid #d4bcc8; background: #fff; }
.stepper button { width: 42px; height: 100%; padding: 0; border: 0; background: none; font-size: 1.1rem; }
.stepper button:disabled { opacity: .35; cursor: not-allowed; }
.stepper span { min-width: 30px; font-weight: 700; text-align: center; }
.gallery-modal { position: relative; z-index: 1; width: min(94vw, 800px); height: min(90vh, 850px); margin: 0; background: #fff; opacity: 0; transform: scale(.98); transition: opacity .3s, transform .35s var(--ease); outline: 0; }
.gallery-modal img { width: 100%; height: 100%; object-fit: contain; }

/* ---------- Páginas internas: migas y cabecera ---------- */

.page { padding: 34px 0 96px; }
.migas ol { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 26px; padding: 0; list-style: none; color: var(--muted); font-size: .72rem; }
.migas li:not(:last-child)::after { content: '/'; margin-left: 6px; color: #c2aeb9; }
.migas a:hover { color: var(--rose); }
.page-head { display: flex; align-items: end; justify-content: space-between; gap: 40px; margin-bottom: 28px; }
.page-head h1 { margin: 10px 0 0; font-size: clamp(2.6rem, 4.2vw, 4.6rem); line-height: 1.1; }
.page-head > p { max-width: 420px; margin: 0 0 4px; color: var(--muted); font-size: .9rem; line-height: 1.7; }
.catalog-filters { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 18px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.catalog-filters select { height: 40px; padding: 0 34px 0 12px; border: 1px solid var(--field); border-radius: 0; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%236b4a1d' stroke-width='1.5'/%3E%3C/svg%3E") no-repeat right 12px center / 11px; color: var(--ink); font-size: .76rem; -webkit-appearance: none; appearance: none; }
.check-stock { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); font-size: .76rem; font-weight: 600; }
.check-stock input { width: 16px; height: 16px; accent-color: var(--gold); }
.btn-limpiar { padding: 6px 0; border: 0; background: none; color: var(--rose); font-size: .74rem; font-weight: 700; text-decoration: underline; }

/* ---------- Ficha de producto ---------- */

.ficha { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.ficha-galeria { position: sticky; top: 132px; }
.ficha-foto { position: relative; aspect-ratio: 1 / 1; overflow: hidden; background: var(--blush); }
.ficha-foto img { width: 100%; height: 100%; object-fit: cover; }
.ficha-thumbs { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin-top: 10px; }
.ficha-thumb { padding: 0; border: 1px solid transparent; background: none; aspect-ratio: 1 / 1; overflow: hidden; opacity: .7; }
.ficha-thumb[aria-pressed="true"], .ficha-thumb:hover { border-color: var(--brown); opacity: 1; }
.ficha-thumb img { width: 100%; height: 100%; object-fit: cover; }
.ficha-info h1 { margin: 12px 0 14px; font-size: clamp(2.5rem, 4vw, 4rem); line-height: 1.1; }
.ficha-info .product-price { margin-bottom: 18px; font-size: 1.3rem; }
.ficha-info .product-price s { font-size: .95rem; }
.ficha-tag { padding: 3px 8px; background: var(--rose); color: #fff; font-size: .66rem; letter-spacing: .06em; }
.ficha-desc { color: var(--ink); font-size: .95rem; line-height: 1.75; }
.ficha-tecnica { display: grid; gap: 0; margin: 0 0 20px; border-top: 1px solid var(--line); }
.ficha-tecnica div { display: grid; grid-template-columns: 140px 1fr; gap: 14px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: .8rem; }
.ficha-tecnica dt { color: var(--muted); font-weight: 700; }
.ficha-tecnica dd { margin: 0; }
.ficha-variantes { margin-bottom: 8px; }
.ficha-variante { margin: 0 0 14px; padding: 0; border: 0; }
.ficha-variante legend { margin-bottom: 8px; font-size: .74rem; font-weight: 700; }
.chips-opciones { display: flex; flex-wrap: wrap; gap: 6px; }
.chip-opcion { padding: 10px 16px; border: 1px solid var(--field); background: #fff; color: var(--ink); font-size: .76rem; font-weight: 700; transition: border-color .2s, background .2s, color .2s; }
.chip-opcion[aria-pressed="true"] { border-color: var(--brown); background: var(--brown); color: #fff; }
.chip-opcion:disabled { opacity: .4; cursor: not-allowed; text-decoration: line-through; }
.ficha-info .dedicatoria-campo { margin: 18px 0 4px; font-size: .78rem; }
.ficha-info .dedicatoria-campo textarea { min-height: 96px; padding: 12px; font-size: .84rem; }
.ficha-acciones { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.ficha-wsp { display: inline-block; margin-top: 20px; }
.ficha-bloques { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; margin-top: 64px; }
.ficha-bloque { padding: 24px; background: var(--blush-soft); }
.ficha-bloque h2 { margin-bottom: 8px; font-size: 1.4rem; letter-spacing: -.02em; }
.ficha-bloque p, .ficha-bloque li { color: var(--muted); font-size: .84rem; line-height: 1.65; }
.page:has(.relacionados) { padding-bottom: 0; }
.relacionados { padding: 72px 0 96px; }

/* ---------- Checkout ---------- */

.checkout { padding: 34px 0 96px; }
.checkout-cabecera h1 { margin: 0 0 10px; font-size: clamp(2.5rem, 4vw, 4.2rem); line-height: 1.1; }
.checkout-cabecera p { max-width: 640px; color: var(--muted); font-size: .9rem; line-height: 1.7; }
.checkout-estado { padding: 40px 24px; background: #fff; text-align: center; color: var(--muted); }
.checkout-estado a { color: var(--rose); font-weight: 700; text-decoration: underline; }
.checkout-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 410px); gap: clamp(24px, 4vw, 56px); align-items: start; margin-top: 26px; }
.cx-block { margin: 0 0 18px; padding: 26px 26px 22px; border: 0; background: #fff; }
.cx-block legend { float: left; width: 100%; margin-bottom: 6px; padding: 0; font-family: var(--font-serif); font-size: 1.55rem; letter-spacing: -.02em; }
.cx-block legend + * { clear: both; }
.cx-ayuda { margin: 0 0 16px; color: var(--muted); font-size: .78rem; line-height: 1.55; clear: both; }
.cx-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 16px; clear: both; }
.cx-grid label, .cx-full, .cx-franja { display: block; color: var(--ink); font-size: .74rem; font-weight: 700; }
.cx-full { grid-column: 1 / -1; }
.cx-opt { color: var(--muted); font-weight: 500; }
.checkout input:not([type="radio"]):not([type="checkbox"]):not([type="file"]), .checkout select, .checkout textarea, .form-legal input, .form-legal textarea {
  display: block; width: 100%; min-height: 46px; margin-top: 7px; padding: 0 12px; border: 1px solid var(--field); border-radius: 0; background: #fff; color: var(--ink); font-size: .84rem; -webkit-appearance: none; appearance: none;
}
.checkout textarea, .form-legal textarea { padding: 11px 12px; line-height: 1.5; resize: vertical; }
.checkout select { padding-right: 34px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%236b4a1d' stroke-width='1.5'/%3E%3C/svg%3E") no-repeat right 12px center / 11px; }
.checkout input:focus, .checkout select:focus, .checkout textarea:focus, .form-legal input:focus, .form-legal textarea:focus { outline: 2px solid var(--pink-deep); outline-offset: 1px; border-color: var(--rose); }
.checkout [aria-invalid="true"] { border-color: var(--error) !important; }
.cx-envios, .cx-pagos { display: grid; gap: 9px; margin-top: 16px; }
.cx-hint { margin: 0; color: var(--muted); font-size: .78rem; line-height: 1.55; }
.cx-hint a { color: var(--rose); font-weight: 700; text-decoration: underline; }
.cx-opcion { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border: 1px solid var(--line); background: var(--paper); cursor: pointer; transition: border-color .2s, background .2s; }
.cx-opcion--on { border-color: var(--gold); background: #fff; }
.cx-opcion input { flex: none; width: 17px; height: 17px; accent-color: var(--gold); }
.cx-opcion-info { display: grid; gap: 2px; flex: 1; }
.cx-opcion-info strong { font-size: .84rem; }
.cx-opcion-info em { color: var(--muted); font-size: .74rem; font-style: normal; }
.cx-opcion-precio { font-size: .84rem; font-weight: 700; white-space: nowrap; }
.cx-franja { margin-top: 14px; }
.cx-grid .cx-franja { margin-top: 0; }
.cx-block > .cx-hint { margin-top: 12px; }
.cx-transferencia { margin-top: 12px; padding: 12px 14px; background: var(--blush-soft); font-size: .78rem; line-height: 1.55; }
.cx-transferencia p { margin: 0; }
.checkbox-label { display: flex !important; align-items: center; gap: .6rem; font-size: .8rem !important; font-weight: 600 !important; clear: both; }
.checkbox-label input { width: 16px; height: 16px; accent-color: var(--gold); }
#cx-facturacion { margin-top: 14px; }
.cx-tarjetas { display: grid; gap: 16px; clear: both; }
.cx-tarjeta { display: grid; grid-template-columns: 54px 1fr; gap: 12px; }
.cx-tarjeta img { width: 54px; height: 60px; object-fit: cover; }
.cx-tarjeta label { font-size: .76rem; font-weight: 700; }
.cx-tarjeta textarea { min-height: 72px !important; }
.cx-error { margin: 0 0 14px; padding: 12px 14px; background: #fde8e8; color: var(--error); font-size: .8rem; font-weight: 600; }
.cx-submit { width: 100%; min-height: 58px; font-size: .86rem; }
.cx-legal { margin: 12px 0 0; color: var(--muted); font-size: .72rem; line-height: 1.55; text-align: center; }
.cx-legal a { text-decoration: underline; }
.checkout-resumen { position: sticky; top: 132px; }
.cx-resumen-card { padding: 26px; background: #fff; }
.cx-resumen-card h2 { margin-bottom: 14px; font-size: 1.7rem; }
.cx-item { display: grid; grid-template-columns: 56px 1fr auto; gap: 12px; align-items: center; padding: 11px 0; border-bottom: 1px solid var(--line); }
.cx-item img { width: 56px; height: 56px; object-fit: cover; }
.cx-item p { margin: 0; }
.cx-item-nombre { font-size: .82rem; font-weight: 700; }
.cx-item-cant { color: var(--muted); font-size: .74rem; }
.cx-item-dedicatoria { margin-top: 3px !important; color: var(--rose); font-size: .72rem; font-style: italic; }
.cx-item strong { font-size: .84rem; }
.cx-cupon { display: flex; gap: 8px; margin-top: 16px; }
.cx-cupon input { margin-top: 0 !important; min-height: 44px !important; }
.cx-cupon button { flex: none; }
.cx-cupon-msg { margin: 8px 0 0; color: var(--error); font-size: .74rem; }
.cx-cupon-msg.ok { color: var(--ok); }
.cx-totales { margin: 18px 0 0; }
.cx-totales div { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; font-size: .82rem; }
.cx-totales dt { color: var(--muted); }
.cx-totales dd { margin: 0; font-weight: 700; }
.cx-total { margin-top: 6px; padding-top: 12px !important; border-top: 1px solid var(--line); }
.cx-total dt, .cx-total dd { color: var(--brown); font-family: var(--font-serif); font-size: 1.45rem; font-weight: 500; }
.cx-entrega, .cx-regalo-resumen { margin: 14px 0 0; padding: 12px 14px; background: var(--blush-soft); font-size: .76rem; line-height: 1.55; }
.cx-total-usd { margin-top: 8px; text-align: right; }
.cx-total-usd strong { color: var(--ink); }
.checkout-ok { margin-top: 26px; }
.cx-ok-card { max-width: 640px; margin-inline: auto; padding: 38px clamp(20px, 4vw, 44px); background: #fff; text-align: center; }
.cx-ok-icono { display: grid; place-items: center; width: 64px; height: 64px; margin: 0 auto 16px; border-radius: 50%; background: var(--blush); color: var(--rose); font-size: 1.8rem; }
.cx-ok-card h2 { font-size: 2.1rem; }
.cx-ok-card > p { color: var(--muted); font-size: .86rem; line-height: 1.65; }
.cx-transfer-datos { display: grid; gap: 8px; margin: 22px 0; padding: 18px; background: var(--blush-soft); text-align: left; }
.cx-transfer-datos p { display: flex; justify-content: space-between; gap: 12px; margin: 0; font-size: .84rem; }
.cx-transfer-datos span { color: var(--muted); }
.cx-transfer-aviso { display: block !important; color: var(--ink); font-weight: 700; }
.cx-comprobante { display: grid; gap: 10px; margin-bottom: 12px; }
.cx-file { display: block; padding: 14px; border: 1px dashed var(--field); font-size: .8rem; cursor: pointer; }
.cx-file input { display: block; width: 100%; margin-bottom: 6px; font-size: .78rem; }
.cx-comprobante-msg { margin: 0; font-size: .8rem; }
.cx-ok-nota { margin-top: 16px; font-size: .76rem !important; }
.cx-ok-volver { display: inline-block; margin-top: 10px; color: var(--rose); font-size: .8rem; font-weight: 700; text-decoration: underline; }

/* ---------- Estados (404, resultado del pago, producto no encontrado) ---------- */

.estado { padding: 70px 0 110px; }
.estado-caja { max-width: 720px; text-align: center; }
.estado-icono { display: grid; place-items: center; width: 70px; height: 70px; margin: 0 auto 18px; border-radius: 50%; background: var(--blush); color: var(--rose); font-family: var(--font-serif); font-size: 2rem; }
.estado-caja h1 { margin: 12px 0 14px; font-size: clamp(2.4rem, 4vw, 3.8rem); line-height: 1.12; }
.estado-caja > p { color: var(--muted); font-size: .92rem; line-height: 1.7; }
.estado-detalle { margin: 22px auto; padding: 18px; background: #fff; font-size: .86rem; line-height: 1.6; }
.estado-pedido { margin-bottom: 8px; font-size: 1.5rem; }
.estado-acciones { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.estado-sugeridos { margin-top: 48px; text-align: left; }

/* ---------- Legales ---------- */

.legal-page { max-width: 780px; padding: 34px 0 96px; }
.legal-page h1 { margin: 0 0 22px; font-size: clamp(2.4rem, 4vw, 3.8rem); line-height: 1.1; }
.legal-copy { color: var(--ink); font-size: .92rem; line-height: 1.8; }
.legal-copy a { color: var(--rose); text-decoration: underline; }
.legal-stats { margin-top: 30px; }
.legal-stats h2 { font-size: 1.6rem; }
.form-legal { display: grid; gap: 14px; max-width: 520px; margin-top: 24px; }
.form-legal label { font-size: .76rem; font-weight: 700; }
.form-legal .button { justify-self: start; }
.form-ok { padding: 16px; background: var(--blush-soft); color: var(--ink); font-size: .9rem; }

/* ---------- Responsive ---------- */

@media (max-width: 1100px) {
  .wrap { width: min(100% - 48px, 1340px); }
  .header-inner { gap: 15px; }
  .main-nav { gap: 14px; }
  .main-nav a { font-size: .76rem; }
  .brand img { height: 92px; }
  .cart-trigger > span { display: none; }
  .product-grid { gap: 13px; }
  .payments { grid-template-columns: 75px 1fr; }
  .payments .text-link { grid-column: 2; justify-self: start; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 820px) {
  /* El menú sale de la grilla (panel fijo): «Romina» queda al centro y las acciones a la derecha. */
  .header-inner { height: 92px; }
  .brand img { height: 80px; }
  .main-nav { position: fixed; z-index: 90; top: 0; right: 0; bottom: 0; display: flex; flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 0; width: min(82vw, 370px); padding: 65px 25px 30px; overflow: auto; background: var(--paper); transform: translateX(100%); visibility: hidden; transition: transform .35s var(--ease), visibility 0s .35s; }
  .main-nav.open { transform: none; visibility: visible; transition: transform .35s var(--ease), visibility 0s; }
  .main-nav a { padding: 15px 0; border-bottom: 1px solid var(--line); font-family: var(--font-serif); font-size: 1.45rem; font-weight: 400; }
  .main-nav a::after { display: none; }
  .nav-close { display: block; position: absolute; top: 12px; right: 18px; border: 0; background: none; color: var(--brown); font-size: 2rem; }
  /* Debajo de la cabecera (z-index 80): el menú vive dentro de ella y tiene que quedar encima. */
  .nav-backdrop { position: fixed; z-index: 79; inset: 0; background: rgba(19, 41, 43, .42); opacity: 0; pointer-events: none; transition: opacity .3s; }
  .nav-backdrop.open { opacity: 1; pointer-events: auto; }
  /* La hamburguesa va a la izquierda: así «Romina» queda centrado entre ella y el carrito. */
  .header-inner { position: relative; }
  .menu-toggle { position: absolute; left: -8px; top: 50%; transform: translateY(-50%); display: flex; flex-direction: column; justify-content: center; gap: 6px; width: 40px; height: 40px; padding: 8px; border: 0; background: none; }
  .menu-toggle span { width: 23px; height: 1.5px; background: var(--brown); }
  .hero, .hero-copy { min-height: 590px; }
  .hero-image::after { background: linear-gradient(90deg, rgba(246, 193, 213, .96) 0%, rgba(246, 193, 213, .86) 45%, rgba(246, 193, 213, .25) 80%); }
  .hero h1 { font-size: clamp(3.4rem, 8vw, 5.6rem); }
  .cat-card { height: 190px; }
  .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .gallery-grid { gap: 8px; }
  .gallery-grid > button { height: 330px; }
  .story { grid-template-columns: 1fr 1fr; }
  .story-photo { min-height: 475px; }
  .story-copy { padding: 45px 6vw; }
  .ficha { grid-template-columns: 1fr; }
  .ficha-galeria { position: static; }
  .checkout-grid { grid-template-columns: 1fr; }
  .checkout-resumen { position: static; order: -1; }
}

@media (max-width: 640px) {
  html { scroll-padding-top: 90px; }
  .wrap { width: calc(100% - 34px); }
  .header-inner { grid-template-columns: 1fr auto 1fr; gap: 6px; height: 72px; }
  .brand img { height: 62px; }
  .header-actions { gap: 3px; }
  .search-trigger { width: 36px; height: 38px; }
  .cart-trigger { min-height: 38px; padding: 0 8px; gap: 6px; }
  .cart-trigger svg { width: 18px; height: 18px; }
  /* En el celular la foto va arriba y el texto abajo, sobre rosa liso (como la referencia). */
  .hero { display: flex; flex-direction: column; min-height: 0; }
  .hero-image { position: relative; inset: auto; height: 300px; }
  .hero-image::after { background: linear-gradient(180deg, rgba(246, 193, 213, 0) 55%, rgba(246, 193, 213, 1) 100%); }
  .hero-copy { min-height: 0; width: auto; padding: 8px 20px 44px; }
  .hero h1 { margin: 18px 0; font-size: clamp(3.2rem, 13vw, 5.1rem); }
  .hero-copy > p { font-size: .91rem; line-height: 1.65; }
  .hero-actions { align-items: flex-start; gap: 18px; }
  .hero-note { margin-top: 39px; font-size: .56rem; }
  .image-stamp { display: none; }
  .section-head { display: block; margin-bottom: 24px; }
  .section-head h2 { font-size: 2.45rem; }
  .section-head > p { margin-top: 15px; }
  .categories { padding-block: 62px 70px; }
  .category-grid { grid-template-columns: 1fr 1fr; gap: 9px; }
  .cat-card { height: 190px; }
  .cat-card span { left: 13px; bottom: 34px; font-size: 1.45rem; }
  .cat-card small { left: 13px; bottom: 15px; font-size: .58rem; }
  .shop { padding: 64px 0 75px; }
  .catalog-wrap { width: calc(100% - 20px); }
  .catalog-tools { display: block; padding: 11px 0; }
  .filter-row { flex-wrap: nowrap; overflow: auto; scrollbar-width: none; }
  .filter-row::-webkit-scrollbar { display: none; }
  .filter-row a, .filter-row button { padding: 9px 12px; font-size: .7rem; }
  .search-box { width: 100%; margin-top: 7px; }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
  .product-body { padding: 11px 10px 12px; }
  .product-category { font-size: .55rem; }
  .product-body h3 { font-size: 1.07rem; }
  .product-price { margin-bottom: 12px; font-size: .84rem; }
  .product-actions { flex-direction: column; gap: 5px; }
  .product-detail { display: none !important; }
  .product-add { width: 100%; min-height: 38px !important; font-size: .68rem !important; }
  .product-quick { display: none; }
  .prod-badge { top: 8px; left: 8px; padding: 5px 7px; font-size: .55rem; }
  .gallery { padding-block: 68px 75px; }
  .gallery-grid { grid-template-columns: 1fr 1fr; }
  .gallery-grid > button { height: auto; aspect-ratio: 4 / 5; }
  .gallery-grid span { left: 9px; bottom: 10px; font-size: .6rem; }
  .story { display: flex; flex-direction: column; }
  .story-photo { order: 0; min-height: 360px; }
  .story-copy { order: 1; padding: 54px 21px 60px; }
  .story h2 { font-size: 3rem; }
  .how { padding: 64px 0; }
  .how-grid { grid-template-columns: 1fr; gap: 0; margin-bottom: 28px; }
  .how-grid article { padding: 18px 5px 11px; }
  .how-grid h3 { margin: 7px 0; }
  .payments { grid-template-columns: 1fr; gap: 17px; padding-block: 65px; }
  .payments-mark { width: 59px; height: 59px; font-size: 2.1rem; }
  .payments .text-link { grid-column: 1; }
  .faq { padding-block: 64px 75px; }
  .faq-grid { grid-template-columns: 1fr; }
  .faq details { padding: 18px 0; }
  .closing { padding: 77px 0 82px; }
  .closing h2 { font-size: 4.1rem; }
  .closing-actions { flex-direction: column; align-items: stretch; }
  .site-footer { padding: 46px 0 26px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .floating-actions { right: 12px; bottom: 12px; }
  .floating-actions > * { width: 46px; height: 46px; }
  .cart-content { padding-inline: 16px; }
  .drawer-header, .drawer-foot { padding-inline: 16px; }
  .modal-inner { display: block; }
  .modal-inner > img { min-height: 0; height: 260px; }
  .modal-copy { padding: 26px 20px 28px; }
  .product-modal { max-height: 94vh; }
  .page-head { display: block; }
  .page-head > p { margin-top: 12px; }
  .catalog-filters { gap: 10px 14px; }
  .ficha-tecnica div { grid-template-columns: 110px 1fr; }
  .ficha-acciones .button { flex: 1; }
  .cx-block { padding: 20px 16px 18px; }
  .cx-grid { grid-template-columns: 1fr; }
  .cx-resumen-card { padding: 20px 16px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  [data-animate] { opacity: 1 !important; transform: none !important; }
}

/* Mercado Pago: logo en la opción de pago y «Pago seguro» bajo el botón (chip blanco: se lee sobre cualquier fondo). */
.cx-mp-logo { height: 30px; width: auto; padding: 3px 7px; border-radius: 6px; background: #fff; box-shadow: 0 0 0 1px rgba(0, 0, 0, .08); }
.cx-pago-seguro { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .45rem; margin: 0; font-size: .92rem; font-weight: 600; }
.cx-pago-seguro[hidden] { display: none; }
.cx-pago-seguro svg { width: 16px; height: 16px; flex: none; }
.cx-pago-seguro-logo { height: 28px; width: auto; padding: 3px 6px; border-radius: 6px; background: #fff; box-shadow: 0 0 0 1px rgba(0, 0, 0, .08); }

/* ---------- Estados de carga (21-oct-2026) ----------
   Fotos: mientras baja la imagen, su caja (con la proporción fija de siempre) queda en el rosa de la tienda
   con un barrido de luz; cuando llega, la foto entra con un fundido de 250 ms. El script chico de arriba del
   header (index.html, dentro de chrome:header) le pone a la caja .foto-lista, .foto-rota (queda el fondo,
   nunca el ícono roto) o .foto-ya (ya estaba en caché: sin fundido). Sin JS no hay velo.
   Dos maneras según la caja: las de producto, historia y ficha llevan un velo (::before) y la luz (::after);
   las que ya usan ::after para el degradé del texto (rubros, galería, portada) esconden la foto hasta que
   llega y la luz va en ::before, por debajo del degradé y de las letras.
   Fantasmas: lo que llena js/tienda.js después (más flores, tamaños de la ficha) arranca con piezas
   [data-fantasma] de la misma forma que las reales, que se van cuando llegan los datos o si falla. */
@keyframes carga-barrido { from { transform: translateX(-100%); } to { transform: translateX(100%); } }
@keyframes carga-latido { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
.fotos-js .product-image-link, .fotos-js .story-photo, .fotos-js .ficha-foto, .fotos-js .ficha-thumb,
.fantasma { position: relative; isolation: isolate; }
/* Velo: el rosa de la caja. */
.fotos-js .product-image-link::before, .fotos-js .story-photo::before, .fotos-js .ficha-foto::before, .fotos-js .ficha-thumb::before {
  content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: var(--blush);
  transition: opacity .25s ease-out, visibility 0s linear .25s;
}
/* Luz que cruza (en las cajas con velo, en las de degradé y en los fantasmas). */
.fotos-js .product-image-link::after, .fotos-js .story-photo::after, .fotos-js .ficha-foto::after, .fotos-js .ficha-thumb::after,
.fotos-js .cat-card::before, .fotos-js .gallery-grid > button::before, .fotos-js .hero-image::before,
.fantasma::after {
  content: ''; position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: linear-gradient(100deg, rgba(255, 255, 255, 0) 25%, rgba(255, 255, 255, .6) 50%, rgba(255, 255, 255, 0) 75%);
  transform: translateX(-100%); animation: carga-barrido 1.6s ease-in-out infinite;
  transition: opacity .25s ease-out, visibility 0s linear .25s;
}
/* En rubros, galería y portada la luz va por debajo del degradé y de las letras. */
.fotos-js .cat-card::before, .fotos-js .gallery-grid > button::before, .fotos-js .hero-image::before { z-index: auto; }
.fotos-js .cat-card > img, .fotos-js .gallery-grid > button > img, .fotos-js .hero-image > img { opacity: 0; }
.fotos-js .cat-card.foto-lista > img { opacity: 1; transition: opacity .25s ease-out, transform .7s var(--ease); }
.fotos-js .gallery-grid > button.foto-lista > img { opacity: 1; transition: opacity .25s ease-out, transform .65s var(--ease); }
.fotos-js .hero-image.foto-lista > img { opacity: 1; transition: opacity .25s ease-out; }
.fotos-js .cat-card.foto-ya > img { transition: transform .7s var(--ease); }
.fotos-js .gallery-grid > button.foto-ya > img { transition: transform .65s var(--ease); }
.fotos-js .hero-image.foto-ya > img { transition: none; }
/* Llegó la foto: el velo y la luz se van. */
.fotos-js .product-image-link.foto-lista::before, .fotos-js .story-photo.foto-lista::before, .fotos-js .ficha-foto.foto-lista::before, .fotos-js .ficha-thumb.foto-lista::before,
.fotos-js .product-image-link.foto-lista::after, .fotos-js .story-photo.foto-lista::after, .fotos-js .ficha-foto.foto-lista::after, .fotos-js .ficha-thumb.foto-lista::after,
.fotos-js .cat-card.foto-lista::before, .fotos-js .gallery-grid > button.foto-lista::before, .fotos-js .hero-image.foto-lista::before { opacity: 0; visibility: hidden; animation-play-state: paused; }
.fotos-js .product-image-link.foto-ya::before, .fotos-js .story-photo.foto-ya::before, .fotos-js .ficha-foto.foto-ya::before, .fotos-js .ficha-thumb.foto-ya::before,
.fotos-js .product-image-link.foto-ya::after, .fotos-js .story-photo.foto-ya::after, .fotos-js .ficha-foto.foto-ya::after, .fotos-js .ficha-thumb.foto-ya::after,
.fotos-js .cat-card.foto-ya::before, .fotos-js .gallery-grid > button.foto-ya::before, .fotos-js .hero-image.foto-ya::before { transition: none; }
/* Rota: deja de brillar, queda el fondo y nunca el ícono roto. */
.fotos-js .product-image-link.foto-rota::after, .fotos-js .story-photo.foto-rota::after, .fotos-js .ficha-foto.foto-rota::after, .fotos-js .ficha-thumb.foto-rota::after,
.fotos-js .cat-card.foto-rota::before, .fotos-js .gallery-grid > button.foto-rota::before, .fotos-js .hero-image.foto-rota::before { animation: none; opacity: 0; }
.fotos-js .foto-rota:not(.foto-lista) > img { visibility: hidden; }

/* Piezas fantasma */
.fantasma { display: block; overflow: hidden; background: var(--blush); }
.fantasma--txt { display: inline-block; height: .8em; border-radius: 4px; vertical-align: middle; background: var(--line); }
.fantasma--texto { color: transparent !important; border-color: transparent !important; }
.product-card--fantasma .product-actions > span { min-height: 42px; }
.product-card--fantasma .product-add { background: var(--blush) !important; border-color: transparent !important; }
.product-grid.grid--fantasmas[aria-busy="true"] { opacity: 1; }
.ficha-variante__fantasma { display: block; margin-bottom: 8px; font-size: .74rem; font-weight: 700; }
.ficha-variante__fantasma .fantasma--texto { display: inline-block; border-radius: 4px; }
.chip-opcion.fantasma { display: inline-block; line-height: normal; }
@media (prefers-reduced-motion: reduce) {
  /* Nada barre: queda un latido suave de la luz (le gana al apagado general de animaciones de arriba). */
  .fotos-js .product-image-link::after, .fotos-js .story-photo::after, .fotos-js .ficha-foto::after, .fotos-js .ficha-thumb::after,
  .fotos-js .cat-card::before, .fotos-js .gallery-grid > button::before, .fotos-js .hero-image::before,
  .fantasma::after { transform: none; background: rgba(255, 255, 255, .45); animation-name: carga-latido; animation-duration: 1.8s !important; }
}

/* =====================================================================
   Todovinilosmr (2-nov-2026): front de la mezcla de modelos. Va al final para
   pisar lo de la florería sin tocar el carrito, la ficha ni el checkout.
   ===================================================================== */

h1, h2 { font-weight: 800; letter-spacing: -.035em; text-wrap: balance; }
h1 em, h2 em { font-style: normal; color: var(--turquesa); background: linear-gradient(transparent 68%, rgba(242, 179, 61, .55) 68%, rgba(242, 179, 61, .55) 92%, transparent 92%); }
.eyebrow { color: var(--turquesa); letter-spacing: .16em; }
.eyebrow::before { content: ''; display: inline-block; width: 26px; height: 2px; margin: 0 .6em .25em 0; vertical-align: middle; background: repeating-linear-gradient(90deg, var(--coral) 0 6px, transparent 6px 10px); }
.button { border-radius: 999px; font-size: .84rem; min-height: 50px; padding: 13px 24px; }
.button-dark { background: var(--brown); color: #fff; }
.button-dark:hover { background: var(--turquesa); }
.button-outline { border-color: var(--brown); color: var(--brown); background: #fff; }
.button-outline-light { border-color: rgba(255, 255, 255, .55); color: #fff; }
.button-outline-light:hover { background: #fff; color: var(--brown); }
.button .ico { width: 18px; height: 18px; flex: none; }
.ico { width: 22px; height: 22px; }
.text-link:hover { color: var(--turquesa); }

/* Marcas de corte en las esquinas (las de la demo). */
.marcas { position: relative; }
.marcas::after { content: ''; position: absolute; inset: -12px; z-index: 1; pointer-events: none;
  background:
    linear-gradient(var(--turquesa-claro), var(--turquesa-claro)) 0 0 / 22px 2px no-repeat,
    linear-gradient(var(--turquesa-claro), var(--turquesa-claro)) 0 0 / 2px 22px no-repeat,
    linear-gradient(var(--coral), var(--coral)) 100% 100% / 22px 2px no-repeat,
    linear-gradient(var(--coral), var(--coral)) 100% 100% / 2px 22px no-repeat; }
.corte { display: block; width: 140px; height: 2px; background: repeating-linear-gradient(90deg, var(--turquesa-claro) 0 8px, transparent 8px 14px); }

/* Logotipo de texto de la demo: «Todovinilos» + «mr» turquesa + tres rayitas (turquesa, coral y mostaza). */
.wm { display: inline-flex; align-items: flex-start; font: 800 clamp(1.4rem, 1rem + 1.6vw, 2.1rem)/1 var(--font-serif); letter-spacing: -.035em; color: var(--ink); white-space: nowrap; }
.wm__mr { color: var(--turquesa); }
.wm__rayos { position: relative; width: .42em; height: .5em; margin-left: .06em; margin-top: -.08em; }
.wm__rayos i { position: absolute; left: 0; height: .085em; border-radius: 2px; transform-origin: 0 50%; }
.wm__rayos i:nth-child(1) { top: .1em; width: .3em; transform: rotate(-38deg); background: var(--turquesa-vivo); }
.wm__rayos i:nth-child(2) { top: .24em; width: .38em; transform: rotate(-8deg); background: var(--coral); }
.wm__rayos i:nth-child(3) { top: .38em; width: .26em; transform: rotate(22deg); background: var(--mostaza); }
.wm--claro { color: #fff; }
.wm--claro .wm__mr { color: var(--turquesa-claro); }

/* Sello giratorio */
.sello { position: absolute; z-index: 3; display: grid; place-items: center; width: clamp(92px, 9.5vw, 128px); aspect-ratio: 1; border-radius: 50%; background: var(--ink); color: #fff; }
.sello__giro { position: absolute; inset: 6%; width: 88%; height: 88%; animation: sello-gira 26s linear infinite; }
.sello__giro text { font: 700 9.6px var(--font-sans); letter-spacing: .5px; fill: #fff; }
.sello__centro { width: 34%; height: 34%; fill: none; stroke: var(--mostaza); stroke-width: 1.6; }
@keyframes sello-gira { to { transform: rotate(360deg); } }

/* ---------- Barra del taller (modelo 2) + cabecera (modelo 1) ---------- */
.tv-barra { background: var(--ink); color: #fff; font-size: .78rem; text-align: center; }
.tv-barra p { margin-block: 0; padding-block: 8px; }
.tv-barra b { color: var(--mostaza); font-weight: 700; }
.tv-barra span { color: #cfe9ea; }
.site-header { background: rgba(255, 255, 255, .97); border-bottom: 1px solid var(--line); }
.header-inner { grid-template-columns: auto minmax(0, 1fr) auto; height: 78px; }
.brand { grid-column: 1; }
.main-nav { grid-column: 2; justify-self: center; gap: clamp(18px, 2.4vw, 40px); color: var(--ink); font-size: .92rem; font-weight: 600; }
.main-nav a::after { height: 2px; background: var(--coral); }
.header-actions { grid-column: 3; }
.search-trigger { color: var(--ink); }
.cart-trigger { border: 0; border-radius: 999px; background: var(--ink); color: #fff; padding: 0 16px; }
.cart-trigger:hover { background: var(--turquesa); }
.cart-trigger b, .floating-cart b { background: var(--coral); color: var(--ink); }

/* ---------- Portada ---------- */
.tv-hero { position: relative; overflow: clip; padding-block: clamp(2.2rem, 5vw, 4rem) clamp(4.5rem, 8vw, 6.5rem); background: linear-gradient(180deg, var(--blush) 0%, var(--paper) 92%); }
.tv-mancha { position: absolute; border-radius: 50%; pointer-events: none; }
.tv-mancha--coral { width: 380px; height: 380px; right: -110px; bottom: -140px; background: radial-gradient(circle at 40% 40%, rgba(239, 111, 126, .28), transparent 70%); }
.tv-mancha--mostaza { width: 300px; height: 300px; left: -100px; top: -90px; background: radial-gradient(circle at 50% 50%, rgba(242, 179, 61, .3), transparent 70%); }
.tv-hero__grid { position: relative; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: center; gap: clamp(1.75rem, 4vw, 4rem); }
.tv-hero__texto { display: grid; justify-items: start; gap: 1.1rem; }
.tv-hero h1 { margin: 0; color: var(--ink); font-size: clamp(2.6rem, 1.2rem + 4.2vw, 4.9rem); line-height: 1.02; }
.tv-hero__bajada { max-width: 38ch; margin: 0; color: var(--muted); font-size: clamp(1.02rem, 1.25vw, 1.15rem); line-height: 1.6; }
.tv-hero .hero-actions { gap: .7rem; margin-top: .3rem; }
.tv-hero__tecnicas { display: flex; flex-wrap: wrap; gap: .45rem; margin: .4rem 0 0; padding: 0; list-style: none; }
.tv-hero__tecnicas li { padding: .38rem .8rem; border-radius: 999px; font-size: .8rem; font-weight: 700; }
.c-turquesa { background: var(--blush-deep); color: var(--brown-dark); }
.c-coral { background: var(--coral-suave); color: var(--rose-dark); }
.c-mostaza { background: var(--mostaza-suave); color: #7a5410; }
.tv-hero__collage { position: relative; padding: 4% 0 0 13%; }
.tv-hero__foto { margin: 0; aspect-ratio: 16 / 9; border-radius: var(--radius); background: var(--madera-suave); }
.tv-hero__foto img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius); }
.tv-hero__luna { position: absolute; z-index: 2; left: 0; bottom: -13%; width: 29%; aspect-ratio: 9 / 16; margin: 0; padding: 6px; background: #fff; border-radius: 16px; box-shadow: var(--shadow-lg); rotate: -4deg; }
.tv-hero__luna img { width: 100%; height: 100%; object-fit: cover; border-radius: 11px; }
.sello--hero { right: -3%; top: -8%; }

/* ---------- Categorías: fichas de colores ---------- */
.categories { padding-block: clamp(3.5rem, 6vw, 5.5rem) clamp(2.5rem, 4vw, 3.5rem); }
.category-grid { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px; }
.cat-card { --cc: var(--blush-deep); --ct: var(--brown-dark); height: auto; display: grid; align-content: start; padding: 12px 12px 16px; border-radius: var(--radius); background: var(--cc); color: var(--ct); transition: transform .35s var(--ease), box-shadow .35s; }
.cat-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.cat-card::after { display: none; }
.cat-card img { width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 12px; background: #fff; }
.cat-card:hover img { transform: none; }
.cat-card span, .cat-card small { position: static; padding-inline: 4px; }
.cat-card span { margin-top: 12px; font: 800 1.2rem/1.15 var(--font-serif); letter-spacing: -.02em; }
.cat-card small { margin-top: 4px; font-size: .74rem; font-weight: 700; opacity: .8; }
.category-grid > :nth-child(5n+2) { --cc: var(--coral-suave); --ct: var(--rose-dark); }
.category-grid > :nth-child(5n+3) { --cc: var(--mostaza-suave); --ct: #6d4b0e; }
.category-grid > :nth-child(5n+4) { --cc: var(--madera-suave); --ct: #5c4024; }
.category-grid > :nth-child(5n+5) { --cc: #e3eefb; --ct: #1f3f66; }

/* ---------- Técnicas (modelo 2) ---------- */
.tv-tecnicas { padding-block: clamp(2.5rem, 4vw, 3.5rem) clamp(3.5rem, 6vw, 5.5rem); }
.tec-lista { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(.8rem, 1.8vw, 1.4rem); margin: 0; padding: 0; list-style: none; }
.tec { --tc: var(--turquesa); --tcs: var(--blush-deep); }
.tec--coral { --tc: var(--rose); --tcs: var(--coral-suave); }
.tec--mostaza { --tc: #9a6a12; --tcs: var(--mostaza-suave); }
.tec__card { position: relative; display: block; overflow: hidden; border-radius: var(--radius); background: var(--tcs); color: var(--ink); }
.tec__foto { margin: 0; aspect-ratio: 4 / 5; overflow: hidden; }
.tec__foto img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.tec__card:hover .tec__foto img { transform: scale(1.05); }
.tec__etiqueta { position: absolute; left: 12px; right: 12px; bottom: 12px; display: grid; gap: .3rem; padding: 1rem 1.1rem .7rem; border-top: 4px solid var(--tc); border-radius: 14px; background: rgba(255, 255, 255, .96); box-shadow: 0 12px 28px rgba(19, 41, 43, .14); }
.tec__num { position: absolute; right: 1rem; top: .6rem; font: 800 1.9rem/1 var(--font-serif); color: transparent; -webkit-text-stroke: 1px var(--tc); }
.tec__etiqueta b { display: flex; align-items: center; gap: .45rem; font: 800 1.25rem/1.2 var(--font-serif); letter-spacing: -.02em; }
.tec__etiqueta b .ico { color: var(--tc); }
.tec__desc { color: var(--muted); font-size: .9rem; line-height: 1.5; }
.tec__link { min-height: 36px; display: inline-flex; align-items: center; color: var(--tc); font-size: .86rem; font-weight: 700; }

/* ---------- Vidriera y tarjetas ---------- */
.shop { background: linear-gradient(180deg, var(--paper), var(--blush) 60%, var(--paper)); }
.shop-head h2 em { color: var(--rose); }
.product-card { border-radius: var(--radius); overflow: hidden; border-color: var(--line); transition: transform .35s var(--ease), box-shadow .35s; }
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.product-image { background: var(--madera-suave); }
.product-body h3 { font-family: var(--font-serif); font-size: 1.08rem; font-weight: 700; letter-spacing: -.015em; }
.product-category { color: var(--turquesa); }
.product-actions button, .product-actions a { border-radius: 999px; }
.prod-badge { border-radius: 999px; background: var(--ink); }
.prod-badge.off { background: var(--coral); color: var(--ink); }
.prod-badge.ultimas { background: var(--mostaza); color: var(--ink); }
.filter-row .active, .filter-row [aria-pressed="true"], .filter-row a:hover, .filter-row button:hover { background: var(--turquesa); }
.catalog-empty { border-radius: var(--radius); }

/* ---------- Personalizá (modelo 2: oscuro, con color) ---------- */
.tv-pz { position: relative; overflow: hidden; padding-block: clamp(3.5rem, 7vw, 6rem); background: radial-gradient(60% 50% at 100% 0%, rgba(239, 111, 126, .22), transparent 70%), radial-gradient(50% 45% at 0% 100%, rgba(242, 179, 61, .18), transparent 70%), var(--ink); color: #fff; }
.tv-pz h2 { margin: .6rem 0 0; color: #fff; font-size: clamp(2rem, 1.2rem + 2.6vw, 3.3rem); line-height: 1.06; }
.tv-pz .eyebrow { color: var(--mostaza); }
.pz { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); grid-template-areas: "cab cab" "form escena"; gap: clamp(1.5rem, 3vw, 2.5rem) clamp(1.5rem, 4vw, 4rem); align-items: start; }
.pz__cabeza { grid-area: cab; display: grid; gap: .75rem; max-width: 760px; }
.pz__bajada { margin: 0; max-width: 56ch; color: #cfe3e4; }
.pz__escena { grid-area: escena; position: relative; }
.pz__marco { padding: 14px; }
.pz__marco.marcas::after { inset: 0; }
.pz__lienzo { position: relative; aspect-ratio: 1 / 1; width: 100%; overflow: hidden; border-radius: var(--radius); background: var(--blush); --zoom: 1; --origen: 50% 50%; }
.pz__capa { position: absolute; inset: 0; transform: scale(var(--zoom)); transform-origin: var(--origen); transition: transform .8s var(--ease); }
.pz__capa img { width: 100%; height: 100%; object-fit: cover; }
.pz__caja { position: absolute; display: flex; align-items: center; justify-content: center; transform: skewY(var(--skew, 0deg)); transform-origin: 0 0; }
.pz__texto { display: block; max-width: 100%; color: #1f2b2d; line-height: 1.08; text-align: center; white-space: nowrap; }
.pz__caja--lineas .pz__texto { white-space: normal; text-wrap: balance; overflow-wrap: anywhere; line-height: 1.1; }
.pz__texto[data-letra="cursiva"] { font-family: var(--font-script); font-weight: 700; line-height: 1.15; }
.pz__texto[data-letra="imprenta"] { font-family: var(--font-serif); font-weight: 800; letter-spacing: -.015em; }
.pz__texto[data-letra="moderna"] { font-family: var(--font-sans); font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
.pz__texto[data-modo="impreso"], .pz__texto[data-modo="grabado"] { mix-blend-mode: multiply; }
.pz__texto[data-modo="grabado"] { opacity: .86; }
.pz__texto.cortando { animation: pz-cortar .75s var(--ease) both; }
@keyframes pz-cortar { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
.pz__nota { margin: .6rem 0 0; padding-left: 14px; color: #a9c4c6; font-size: .84rem; }
.pz__form { grid-area: form; display: grid; gap: 1.15rem; padding: clamp(1.1rem, 2.4vw, 1.6rem); border: 1px solid rgba(255, 255, 255, .14); border-radius: var(--radius); background: rgba(255, 255, 255, .06); }
.pz__form fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
.pz__form legend, .pz__campo > label { display: block; margin-bottom: .55rem; padding: 0; color: #a9c4c6; font: 700 .74rem/1.2 var(--font-sans); letter-spacing: .1em; text-transform: uppercase; }
.pz__piezas, .pz__letras { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .5rem; }
.pieza, .letra, .swatch { position: relative; border: 1px solid rgba(255, 255, 255, .16); background: rgba(255, 255, 255, .95); color: var(--ink); cursor: pointer; transition: background-color .25s, border-color .25s, box-shadow .25s; }
.pieza input, .letra input, .swatch input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.pieza { display: grid; gap: .45rem; min-width: 0; padding: .4rem .4rem .55rem; border-radius: 12px; }
.pieza__foto { display: block; aspect-ratio: 1 / 1; overflow: hidden; border-radius: 8px; }
.pieza__foto img { width: 100%; height: 100%; object-fit: cover; }
.pieza__txt { display: grid; padding-inline: .2rem; line-height: 1.25; }
.pieza__txt b { font-size: .9rem; }
.pieza__txt small { color: var(--muted); font-size: .74rem; }
.letra { display: grid; justify-items: center; gap: .05rem; min-height: 66px; padding: .5rem .3rem; border-radius: 12px; }
.letra__aa { font-size: 1.5rem; line-height: 1.1; }
.letra__aa--cursiva { font-family: var(--font-script); font-weight: 700; }
.letra__aa--imprenta { font-family: var(--font-serif); font-weight: 800; }
.letra__aa--moderna { padding-top: .2rem; font-family: var(--font-sans); font-size: 1.15rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
.letra__nombre { color: var(--muted); font-size: .76rem; }
.pz__colores { display: flex; flex-wrap: wrap; gap: .45rem; }
.pz__colores legend { float: left; width: 100%; }
.swatch { display: inline-flex; align-items: center; gap: .45rem; min-height: 42px; padding: .3rem .8rem .3rem .35rem; border-radius: 999px; }
.swatch__punto { width: 26px; height: 26px; border-radius: 50%; background: var(--sw); box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .7); }
.swatch__nombre { font-size: .86rem; font-weight: 600; }
.pieza:has(input:checked), .letra:has(input:checked), .swatch:has(input:checked) { border-color: var(--mostaza); background: var(--mostaza-suave); box-shadow: 0 0 0 2px var(--mostaza); }
.pieza:has(input:focus-visible), .letra:has(input:focus-visible), .swatch:has(input:focus-visible) { outline: 2px solid #fff; outline-offset: 2px; }
.pz__grupo--unico .swatch { cursor: default; }
.pz__input { position: relative; }
.pz__input input { width: 100%; height: 52px; padding: 0 4.4rem 0 1rem; border: 1px solid transparent; border-radius: 12px; background: #fff; color: var(--ink); font: 500 1.05rem var(--font-sans); }
.pz__input input:focus { outline: none; border-color: var(--mostaza); box-shadow: 0 0 0 2px var(--mostaza); }
.pz__input small { position: absolute; right: 1rem; top: 50%; translate: 0 -50%; color: var(--muted); font-size: .8rem; font-variant-numeric: tabular-nums; }
.pz__resumen { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .5rem 1rem; padding-top: 1rem; border-top: 1px dashed rgba(143, 211, 213, .5); }
.pz__resumen p { margin: 0; }
.pz__resumen p:first-child { font-size: .95rem; font-weight: 600; }
.pz__precio { color: var(--mostaza); font: 800 1.35rem var(--font-serif); }
.pz__acciones { display: flex; flex-wrap: wrap; gap: .6rem; }
.pz__acciones .button { flex: 1 1 200px; }
.pz__acciones .button-primary { background: var(--coral); color: var(--ink); }
.pz__acciones .button-primary:hover { background: #fff; }

/* ---------- Así se encarga (modelo 1) ---------- */
.tv-encargar { padding-block: clamp(3.5rem, 6vw, 5.5rem); background: var(--blush); }
.encargar__grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 2rem clamp(2rem, 5vw, 5rem); align-items: start; }
.encargar__cabeza { display: grid; justify-items: start; gap: .8rem; }
.encargar__cabeza h2 { margin: 0; font-size: clamp(2.1rem, 3.2vw, 3.2rem); }
.encargar__cabeza p { max-width: 40ch; margin: 0; color: var(--muted); line-height: 1.65; }
.encargar__img { display: inline-flex; align-items: center; gap: .55rem; min-height: 44px; color: var(--turquesa); font-weight: 700; }
.encargar__img svg { width: 20px; height: 20px; }
.tv-encargar .how-grid { margin: 22px 0 0; gap: 1rem; }
.tv-encargar .how-grid article { position: relative; padding: 2.2rem 1.2rem 1.3rem; border: 1px solid var(--line); border-top: 4px solid var(--turquesa); border-radius: var(--radius); background: #fff; }
.tv-encargar .how-grid article:nth-child(3n+2) { border-top-color: var(--coral); }
.tv-encargar .how-grid article:nth-child(3n+3) { border-top-color: var(--mostaza); }
.tv-encargar .how-grid article > span { position: absolute; top: -22px; left: 1.1rem; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--ink); color: #fff; font: 800 1.05rem/1 var(--font-serif); }
.tv-encargar .how-grid article:nth-child(3n+2) > span { background: var(--coral); color: var(--ink); }
.tv-encargar .how-grid article:nth-child(3n+3) > span { background: var(--mostaza); color: var(--ink); }
.tv-encargar .how-grid h3 { margin: 0 0 .35rem; color: var(--ink); font: 800 1.12rem/1.25 var(--font-serif); letter-spacing: -.015em; }
.tv-encargar .how-grid p { max-width: none; margin: 0; color: var(--muted); font-size: .95rem; line-height: 1.55; }

/* ---------- Preguntas ---------- */
.faq summary { font-family: var(--font-serif); font-weight: 700; font-size: 1.1rem; letter-spacing: -.01em; }
.faq summary::after { color: var(--coral); font-size: 1.3rem; }
.faq details { border-top-color: var(--line); }

/* ---------- Cierre (modelo 2) ---------- */
.tv-cierre { padding-block: clamp(3.5rem, 7vw, 6rem) clamp(5rem, 9vw, 7.5rem); background: linear-gradient(120deg, var(--mostaza-suave) 0%, var(--coral-suave) 55%, var(--blush) 100%); }
.tv-cierre__grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: end; gap: 2rem clamp(2rem, 5vw, 5rem); }
.tv-cierre__grande { margin: 0; color: var(--ink); font-size: clamp(3rem, 1.4rem + 6vw, 6.6rem); line-height: .95; letter-spacing: -.05em; }
.tv-cierre__lado p { margin: 0 0 1.1rem; color: var(--muted); font-size: 1.05rem; line-height: 1.6; }
.tv-cierre .closing-actions { justify-content: flex-start; align-items: center; margin-top: 0; gap: 1rem; }
.tv-cierre__ig { display: inline-flex; align-items: center; gap: .45rem; color: var(--ink); font-weight: 700; }
.tv-cierre__ig svg { width: 20px; height: 20px; }

/* ---------- Pie oscuro ---------- */
.site-footer { position: relative; border-top: 0; background: var(--ink); color: #dbe9ea; }
.footer-marca p, .footer-links a, .footer-legal-extra a { color: #dbe9ea; }
.footer-brand { margin-bottom: 14px; }
.footer-col h3 { color: var(--mostaza); }
.footer-links a:hover, .footer-bottom a:hover { color: var(--coral); }
.footer-bottom { border-top-color: rgba(255, 255, 255, .12); color: #a9c4c6; }
.sello--pie { right: max(16px, (100% - 1340px) / 2); top: calc(-1 * clamp(46px, 5vw, 64px)); border: 4px solid var(--paper); }
.floating-cart { background: var(--ink); }
.floating-wa { background: #1faa59; }
.toast svg { color: var(--mostaza); }

@media (max-width: 1100px) {
  .main-nav { gap: 16px; font-size: .84rem; }
}
@media (max-width: 960px) {
  .tv-hero__grid { grid-template-columns: minmax(0, 1fr); }
  .tv-hero__collage { margin-top: .5rem; }
  .pz { grid-template-columns: minmax(0, 1fr); grid-template-areas: "cab" "escena" "form"; }
  .encargar__grid, .tv-cierre__grid { grid-template-columns: minmax(0, 1fr); }
  .tec-lista { grid-template-columns: minmax(0, 1fr); }
  .tec__foto { aspect-ratio: 16 / 10; }
}
@media (max-width: 820px) {
  .header-inner { grid-template-columns: auto minmax(0, 1fr) auto; height: 68px; }
  .brand { grid-column: 1; }
  .header-actions { grid-column: 3; }
  .menu-toggle { position: static; transform: none; order: 3; }
  .menu-toggle span { background: var(--ink); }
  .main-nav a { font-family: var(--font-serif); font-weight: 700; font-size: 1.3rem; }
}
@media (max-width: 640px) {
  .tv-barra { font-size: .7rem; }
  .tv-barra span { display: none; }
  .header-inner { grid-template-columns: auto minmax(0, 1fr) auto; height: 62px; }
  .cart-trigger span { display: none; }
  .tv-hero h1 { font-size: clamp(2.3rem, 10vw, 3rem); }
  .tv-hero .hero-actions .button { flex: 1 1 auto; }
  .tv-hero__collage { padding-left: 16%; }
  .sello--hero { width: 82px; top: -6%; }
  .category-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .category-grid > :last-child:nth-child(odd) { grid-column: 1 / -1; }
  .category-grid > :last-child:nth-child(odd) img { aspect-ratio: 2 / 1; }
  .cat-card span { font-size: 1.05rem; }
  .pz__piezas, .pz__letras { gap: .35rem; }
  .pieza__txt small { display: none; }
  .tv-encargar .how-grid { gap: 1.8rem; }
  .sello--pie { width: 78px; top: -40px; }
}
@media (prefers-reduced-motion: reduce) {
  .sello__giro { animation: none; }
  .pz__texto.cortando { animation: none; }
}
