/* Florería Romina — modelo 2 de la demo (portada editorial a todo el ancho) sobre el motor
   de Template-Ecommerce. Paleta y tipografías de la demo: ciruela + rosa + magenta,
   Playfair Display para los títulos y DM Sans para el texto. */

:root {
  /* Rosa + dorado: el pedido de la clienta (9-oct) sobre los colores del logo. */
  --ink: #4e3440;
  --brown: #6b4a1d;
  --brown-dark: #5a3d15;
  --muted: #7a6270;
  --paper: #fff7f9;
  --blush: #fce6ee;
  --blush-soft: #fff0f5;
  --blush-deep: #f7cbdb;
  --pink: #f6c1d5;
  --pink-deep: #f2b0c8;
  --rose: #a93f6e;
  --rose-dark: #8c2f59;
  --gold: #93681f;
  --gold-dark: #7b5618;
  --gold-light: #c9a24a;
  --line: #f0d5df;
  --field: #e2c6d2;
  --white: #fff;
  --ok: #2f7a4f;
  --error: #b3261e;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --font-sans: 'DM Sans', Arial, sans-serif;
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-script: 'Yellowtail', '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 nombre como en el logo: «Romina» manuscrita en crema con filete dorado y «Florería» espaciada. */
.brand { grid-column: 2; grid-row: 1; position: relative; display: flex; flex-direction: column; align-items: center; padding: 6px 42px 4px 8px; line-height: 1; white-space: nowrap; }
.brand-nombre { font-family: var(--font-script); font-size: 3.6rem; line-height: .95; color: #fffbf5; -webkit-text-stroke: 1.3px #b58a35; paint-order: stroke fill; text-shadow: 0 2px 8px rgba(110, 74, 29, .28); }
.brand-sub { margin-top: 2px; padding-left: .42em; color: var(--gold); font-family: var(--font-serif); font-size: .8rem; letter-spacing: .42em; }
.brand-rosa { position: absolute; top: -10px; right: 0; width: 46px; height: 78px; color: var(--gold-light); }
.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(74, 42, 30, .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(74, 42, 30, .82); }
.product-card.is-agotado .product-image img { opacity: .55; }
.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-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 { background: #d8c3cc !important; border-color: #d8c3cc !important; color: #fff !important; cursor: not-allowed; }
.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(74, 42, 30, .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: 96px; height: 96px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 4px var(--paper), 0 6px 18px rgba(110, 74, 29, .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(46, 26, 40, .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(46, 26, 40, .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(74, 42, 52, .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(46, 26, 40, .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; }
.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-nombre { font-size: 3.1rem; }
  .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-nombre { font-size: 2.8rem; }
  .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(74, 42, 52, .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 { padding: 4px 28px 2px 4px; }
  .brand-nombre { font-size: 2.3rem; }
  .brand-sub { font-size: .56rem; }
  .brand-rosa { top: -4px; width: 30px; height: 52px; }
  .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; }
}
