/* ============================================================
   PAPELI STUDIO — Tienda online
   Identidad: logo + papel cuadriculado crema
   Tipografías: Fraunces (títulos) · Delius (texto)
   ============================================================ */

/* Títulos: Fraunces (gratuita incluso para uso comercial — licencia OFL), servida desde
   static/fonts. Versión liviana: solo caracteres latinos/español, pesos 500–900 y estilo
   "suave" (SOFT=100) ya aplicado. Para cambiarla: --font-titulo y este @font-face. */
@font-face {
  font-family: 'Fraunces';
  src: url('../fonts/fraunces.woff') format('woff');
  font-weight: 500 900; font-style: normal; font-display: swap;
}
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
:root {
  --font-titulo: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-texto: 'Delius', 'Segoe UI', system-ui, sans-serif;
  --papel: #f3ecd8;
  --papel-vidrio: rgba(248, 243, 230, .94);
  --rose: #c9607a; --rose-mid: #b85570; --rose-light: #e8a0b4;
  --rose-pale: #fdf0f3; --rose-faint: #fff7f9;
  --dark: #1e0d12; --dark-2: #2d1520;
  --text: #1e0d12; --text-mid: #6b3a47; --text-soft: #8f6170;
  --white: #ffffff; --surface: #fffbfc; --border: #f0dde3; --border-dark: #e0c5ce;
  --ok: #2f8a5b; --ok-bg: #e9f7ef; --warn: #a86a12; --warn-bg: #fff5e3; --err: #c0392b; --err-bg: #fdecea;
  --nav-h: 72px; --px: 1.1rem; --radius: 20px;
  --shadow: 0 12px 32px -12px rgba(201,96,122,.22);
}
html { scroll-behavior: smooth; -webkit-tap-highlight-color: transparent; }
body { font-family: var(--font-texto); background: var(--papel) url('../img/fondo-papel.webp') repeat; background-size: 280px 280px; color: var(--text); overflow-x: hidden; -webkit-font-smoothing: antialiased; line-height: 1.5; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
::-webkit-scrollbar { width: 6px; } ::-webkit-scrollbar-thumb { background: var(--rose-light); border-radius: 3px; }
:focus-visible { outline: 2px solid var(--rose); outline-offset: 2px; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.container { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 var(--px); }
.serif { font-family: var(--font-titulo); }

/* ── AVISO ── */
.aviso { background: var(--dark); color: #fff; font-size: .78rem; text-align: center; padding: .5rem var(--px); letter-spacing: .01em; }

/* ── NAV ── */
.nav { position: sticky; top: 0; z-index: 200; height: var(--nav-h); background: var(--papel-vidrio); backdrop-filter: blur(14px); border-bottom: 1px solid var(--border); transition: box-shadow .3s; }
.nav.scrolled { box-shadow: 0 4px 24px rgba(0,0,0,.06); }
.nav-in { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.logo { display: inline-flex; align-items: center; flex-shrink: 0; }
.logo img { height: calc(var(--nav-h) - 14px); width: auto; display: block; }
.foot-logo img { height: 92px; width: auto; }
.nav-links { display: none; list-style: none; gap: .2rem; }
.nav-links a { font-size: .88rem; font-weight: 500; color: var(--text-mid); padding: .45rem .95rem; border-radius: 30px; transition: .2s; }
.nav-links a:hover, .nav-links a.on { background: var(--rose-pale); color: var(--rose); }
.nav-actions { display: flex; align-items: center; gap: .35rem; }
.icon-btn { position: relative; width: 42px; height: 42px; display: inline-flex; align-items: center; justify-content: center; border-radius: 12px; background: none; border: none; color: var(--text-mid); cursor: pointer; font-size: 1.05rem; transition: .2s; }
.icon-btn:hover { background: var(--rose-pale); color: var(--rose); }
.badge-count { position: absolute; top: 3px; right: 2px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--rose); color: #fff; font-size: .66rem; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.badge-count[data-n="0"] { display: none; }
.badge-count.pop { animation: pop .4s ease; }
@keyframes pop { 50% { transform: scale(1.35); } }
.hamburger span { display: block; width: 20px; height: 2px; background: currentColor; border-radius: 2px; transition: .3s; position: absolute; }
.hamburger span:nth-child(1) { transform: translateY(-6px); } .hamburger span:nth-child(3) { transform: translateY(6px); }
.hamburger.open span:nth-child(1) { transform: rotate(45deg); } .hamburger.open span:nth-child(2) { opacity: 0; } .hamburger.open span:nth-child(3) { transform: rotate(-45deg); }

.drawer { position: fixed; top: var(--nav-h); left: 0; right: 0; z-index: 190; background: var(--papel-vidrio); backdrop-filter: blur(14px); border-bottom: 1px solid var(--border); padding: .4rem var(--px) 1.4rem; transform: translateY(-120%); visibility: hidden; transition: transform .35s cubic-bezier(.4,0,.2,1), visibility 0s .35s; box-shadow: 0 8px 32px rgba(0,0,0,.08); }
.drawer.open { transform: none; visibility: visible; transition: transform .35s cubic-bezier(.4,0,.2,1); }
.drawer a { display: flex; align-items: center; gap: .75rem; padding: .9rem .4rem; border-bottom: 1px solid var(--border); font-weight: 500; color: var(--text-mid); }
.drawer a:last-child { border: none; }
.drawer a i { color: var(--rose); width: 20px; text-align: center; }
.search-bar { display: none; border-bottom: 1px solid var(--border); background: var(--papel-vidrio); padding: .7rem 0; }
.search-bar.open { display: block; }
.search-bar form { display: flex; gap: .5rem; }

/* ── BOTONES ── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; border: 1.5px solid transparent; border-radius: 50px; padding: .85rem 1.6rem; font-size: .92rem; font-weight: 600; cursor: pointer; transition: all .22s; white-space: nowrap; line-height: 1.2; }
.btn:active { transform: scale(.98); }
.btn-primary { background: var(--rose); color: #fff; }
.btn-primary:hover { background: var(--rose-mid); transform: translateY(-2px); box-shadow: 0 12px 24px -8px rgba(201,96,122,.45); }
.btn-ghost { background: transparent; color: var(--rose); border-color: var(--border-dark); }
.btn-ghost:hover { border-color: var(--rose); background: var(--rose-pale); }
.btn-dark { background: var(--dark); color: #fff; } .btn-dark:hover { background: var(--dark-2); }
.btn-wa { background: #25d366; color: #fff; } .btn-wa:hover { background: #1fb457; }
.btn-white { background: #fff; color: var(--rose); } .btn-white:hover { background: var(--rose-pale); }
.btn-outline-white { color: rgba(255,255,255,.85); border-color: rgba(255,255,255,.25); } .btn-outline-white:hover { border-color: rgba(255,255,255,.6); color: #fff; }
.btn-sm { padding: .5rem 1rem; font-size: .8rem; }
.btn-block { width: 100%; }
.btn[disabled], .btn.loading { opacity: .6; pointer-events: none; }
.link { color: var(--rose); font-weight: 600; } .link:hover { text-decoration: underline; }

/* ── FORMULARIOS ── */
.field { display: flex; flex-direction: column; gap: .35rem; margin-bottom: 1rem; }
.field label, .label { font-size: .78rem; font-weight: 600; color: var(--text-mid); }
.input, .select, .textarea { width: 100%; background: var(--white); border: 1.5px solid var(--border-dark); border-radius: 14px; padding: .8rem 1rem; font-size: .95rem; transition: border-color .2s, box-shadow .2s; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--rose); box-shadow: 0 0 0 4px var(--rose-pale); }
.textarea { resize: vertical; min-height: 90px; }
.field.has-error .input, .field.has-error .select, .field.has-error .textarea { border-color: var(--err); }
.field-error { font-size: .76rem; color: var(--err); }
.hint { font-size: .76rem; color: var(--text-soft); }
.grid-2 { display: grid; gap: 0 1rem; }
.check { display: flex; align-items: flex-start; gap: .6rem; font-size: .88rem; color: var(--text-mid); cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--rose); margin-top: 2px; flex-shrink: 0; }

/* ── SECCIONES ── */
.section { padding: 3.2rem 0; }
.section-alt { background: rgba(255, 255, 255, .42); border-block: 1px solid var(--border); }
.eyebrow { font-size: .7rem; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; color: var(--rose); margin-bottom: .5rem; }
.sec-title { font-family: var(--font-titulo); font-size: clamp(1.8rem, 6vw, 2.6rem); line-height: 1.15; letter-spacing: -.01em; margin-bottom: .5rem; }
.sec-title em { font-style: italic; color: var(--rose); }
.sec-sub { font-size: .95rem; color: var(--text-soft); line-height: 1.65; max-width: 560px; }
.sec-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1rem; margin-bottom: 1.8rem; }
.divider { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.6rem; }
.divider-line { flex: 1; height: 1px; background: var(--border); }
.divider-label { font-size: .68rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--text-soft); }

/* ── HERO ── */
.hero { padding: 2.5rem 0 2.5rem; }
.hero-grid { display: grid; gap: 2rem; align-items: center; }
.hero-tag { display: inline-flex; align-items: center; gap: 7px; background: var(--rose-pale); border: 1px solid var(--border); border-radius: 30px; padding: .35rem .9rem; font-size: .74rem; font-weight: 600; color: var(--rose); margin-bottom: 1.2rem; animation: fadeDown .5s ease both; }
.dot { width: 6px; height: 6px; background: var(--rose); border-radius: 50%; animation: pulse 2s infinite; }
@keyframes pulse { 0%,100% { opacity: 1; transform: scale(1); } 50% { opacity: .5; transform: scale(.75); } }
.hero h1 { font-family: var(--font-titulo); font-size: clamp(2.5rem, 9vw, 4rem); line-height: 1.06; letter-spacing: -.025em; margin-bottom: 1.1rem; animation: fadeUp .6s ease .1s both; }
.hero h1 em { font-style: italic; color: var(--rose); display: block; }
.hero-p { font-size: 1rem; line-height: 1.7; color: var(--text-soft); margin-bottom: 1.8rem; max-width: 520px; animation: fadeUp .6s ease .2s both; }
.hero-btns { display: flex; flex-direction: column; gap: .7rem; animation: fadeUp .6s ease .3s both; }
.hero-card { background: var(--rose-pale); border: 1px solid var(--border); border-radius: 26px; padding: 1.5rem; position: relative; animation: fadeUp .7s ease .4s both; }
.floating-badge { position: absolute; top: -13px; right: 20px; background: var(--dark); color: #fff; font-size: .72rem; font-weight: 600; padding: .35rem .9rem; border-radius: 30px; }
.hero-collage { display: grid; grid-template-columns: repeat(3, 1fr); gap: .55rem; margin-bottom: 1rem; }
.hero-collage a { aspect-ratio: 1; border-radius: 16px; overflow: hidden; background: var(--white); border: 1px solid var(--border); }
.hero-collage a:first-child { grid-column: span 2; grid-row: span 2; }
.hero-collage img, .hero-collage .ph { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.hero-collage a:hover img { transform: scale(1.06); }
.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: .55rem; }
.stat-box { background: var(--white); border: 1px solid var(--border); border-radius: 14px; padding: .75rem .4rem; text-align: center; }
.stat-num { font-size: 1.3rem; font-weight: 700; color: var(--rose); font-family: var(--font-texto); }
.stat-lbl { font-size: .66rem; color: var(--text-soft); font-weight: 500; }

/* ── STRIP ── */
.strip { background: var(--rose-pale); border-block: 1px solid var(--border); overflow: hidden; }
.strip-track { display: flex; gap: 2rem; width: max-content; padding: .95rem 0; animation: marquee 38s linear infinite; }
.strip:hover .strip-track { animation-play-state: paused; }
.strip-item { display: flex; align-items: center; gap: .5rem; font-size: .82rem; font-weight: 500; color: var(--text-mid); white-space: nowrap; }
.strip-item i { color: var(--rose); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ── CATEGORÍAS ── */
.cat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: .8rem; }
.cat-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.2rem 1rem; transition: .25s; display: flex; flex-direction: column; gap: .4rem; }
.cat-card:hover { border-color: var(--rose-light); transform: translateY(-3px); box-shadow: var(--shadow); }
.cat-ico { width: 48px; height: 48px; border-radius: 14px; background: var(--rose-pale); border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; font-size: 1.45rem; margin-bottom: .3rem; }
.cat-card h3 { font-size: 1rem; font-weight: 600; }
.cat-card span { font-size: .76rem; color: var(--text-soft); }

/* ── PRODUCTOS ── */
.prod-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: .9rem; }
.prod-card { position: relative; display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; transition: .25s; }
.prod-card:hover { border-color: var(--border-dark); box-shadow: var(--shadow); transform: translateY(-3px); }
.prod-img { position: relative; aspect-ratio: 1; background: var(--rose-pale); overflow: hidden; display: block; }
.prod-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s; }
.prod-card:hover .prod-img img { transform: scale(1.06); }
.ph { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-size: 3rem; background: radial-gradient(circle at 30% 25%, #fff 0, var(--rose-pale) 55%, #f8dbe3 100%); }
.prod-badges { position: absolute; top: .6rem; left: .6rem; display: flex; flex-direction: column; gap: .3rem; align-items: flex-start; }
.pill { display: inline-flex; align-items: center; gap: .3rem; font-size: .66rem; font-weight: 700; padding: .25rem .6rem; border-radius: 20px; background: var(--white); color: var(--rose); border: 1px solid var(--border); letter-spacing: .02em; }
.pill-dark { background: var(--dark); color: #fff; border-color: var(--dark); }
.pill-rose { background: var(--rose); color: #fff; border-color: var(--rose); }
.pill-gray { background: #eee; color: #666; border-color: #e3e3e3; }
.prod-body { padding: .85rem .9rem 1rem; display: flex; flex-direction: column; gap: .25rem; flex: 1; }
.prod-cat { font-size: .68rem; font-weight: 600; color: var(--text-soft); text-transform: uppercase; letter-spacing: .08em; }
.prod-name { font-size: .92rem; font-weight: 600; line-height: 1.3; }
.prod-name a:hover { color: var(--rose); }
.prod-foot { margin-top: auto; padding-top: .6rem; display: flex; align-items: center; justify-content: space-between; gap: .5rem; }
.price { font-family: var(--font-texto); font-weight: 700; color: var(--rose); font-size: 1.12rem; }
.price-old { font-size: .8rem; color: var(--text-soft); text-decoration: line-through; margin-left: .3rem; font-family: var(--font-texto); font-weight: 400; }
.add-mini { width: 38px; height: 38px; border-radius: 12px; border: none; background: var(--rose-pale); color: var(--rose); cursor: pointer; font-size: .95rem; transition: .2s; flex-shrink: 0; }
.add-mini:hover { background: var(--rose); color: #fff; }

/* ── TIENDA (listado) ── */
.page-head { padding: 2.2rem 0 1.4rem; background: rgba(255, 255, 255, .35); border-bottom: 1px solid var(--border); }
.crumbs { font-size: .78rem; color: var(--text-soft); margin-bottom: .8rem; display: flex; gap: .4rem; flex-wrap: wrap; }
.crumbs a:hover { color: var(--rose); }
.chips { display: flex; gap: .5rem; overflow-x: auto; scrollbar-width: none; padding: .2rem 0 .4rem; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex-shrink: 0; display: inline-flex; align-items: center; gap: .35rem; background: var(--white); border: 1.5px solid var(--border); border-radius: 30px; padding: .45rem 1rem; font-size: .8rem; font-weight: 500; color: var(--text-mid); cursor: pointer; transition: .2s; }
.chip:hover, .chip.on { background: var(--rose); border-color: var(--rose); color: #fff; }
.toolbar { display: flex; flex-wrap: wrap; gap: .7rem; align-items: center; justify-content: space-between; margin: 1.3rem 0; }
.toolbar form { display: flex; gap: .5rem; flex: 1; min-width: 240px; }
.toolbar .select { width: auto; padding: .6rem 2.2rem .6rem 1rem; border-radius: 30px; font-size: .85rem; }
.result-count { font-size: .82rem; color: var(--text-soft); }
.empty { text-align: center; padding: 3.5rem 1rem; }
.empty .ico { font-size: 3rem; margin-bottom: .8rem; }
.empty h3 { font-family: var(--font-titulo); font-size: 1.5rem; margin-bottom: .4rem; }
.empty p { color: var(--text-soft); margin-bottom: 1.2rem; }

/* ── PRODUCTO (detalle) ── */
.pd { display: grid; gap: 2rem; padding: 1.5rem 0 3rem; }
.pd-gallery { display: flex; flex-direction: column; gap: .7rem; }
.pd-main { position: relative; aspect-ratio: 1; border-radius: 24px; overflow: hidden; background: #fff; border: 1px solid var(--border); }
.pd-track { display: flex; height: 100%; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; overscroll-behavior-x: contain; }
.pd-track::-webkit-scrollbar { display: none; }
.pd-slide { flex: 0 0 100%; height: 100%; scroll-snap-align: center; scroll-snap-stop: always; border: 0; padding: 0; background: none; cursor: zoom-in; }
.pd-slide img { width: 100%; height: 100%; object-fit: cover; -webkit-user-drag: none; user-select: none; }
.pd-zoom { position: absolute; top: .7rem; right: .7rem; width: 34px; height: 34px; border-radius: 50%; background: rgba(255,255,255,.85); color: var(--rose); display: flex; align-items: center; justify-content: center; font-size: .85rem; pointer-events: none; box-shadow: 0 2px 8px rgba(0,0,0,.08); }
.pd-nav { position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; width: 40px; height: 40px; border-radius: 50%; border: none; background: rgba(255,255,255,.9); color: var(--rose); cursor: pointer; box-shadow: 0 4px 14px rgba(0,0,0,.12); transition: .2s; }
.pd-nav:hover { background: var(--rose); color: #fff; }
.pd-nav.prev { left: .7rem; } .pd-nav.next { right: .7rem; }
.pd-dots { position: absolute; left: 0; right: 0; bottom: .75rem; display: flex; justify-content: center; gap: .35rem; z-index: 2; }
.pd-dots button { width: 8px; height: 8px; padding: 0; border: none; border-radius: 4px; background: rgba(255,255,255,.75); box-shadow: 0 0 0 1px rgba(0,0,0,.1); cursor: pointer; transition: width .25s, background .25s; }
.pd-dots button.on { width: 22px; background: var(--rose); }
.pd-main .ph { font-size: 6rem; }
.pd-thumbs { display: flex; gap: .5rem; overflow-x: auto; }
.pd-thumbs button { width: 72px; height: 72px; flex-shrink: 0; border-radius: 14px; overflow: hidden; border: 2px solid var(--border); background: none; cursor: pointer; padding: 0; }
.pd-thumbs button.on { border-color: var(--rose); }
.pd-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.pd-info h1 { font-family: var(--font-titulo); font-size: clamp(1.8rem, 5vw, 2.5rem); line-height: 1.15; margin: .4rem 0 .7rem; }
.pd-price { display: flex; align-items: baseline; gap: .6rem; margin-bottom: 1rem; }
.pd-price .price { font-size: 2rem; }
.pd-short { color: var(--text-mid); line-height: 1.7; margin-bottom: 1.2rem; }
.pd-meta { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.3rem; }
.meta { display: inline-flex; align-items: center; gap: .45rem; font-size: .8rem; color: var(--text-mid); background: var(--surface); border: 1px solid var(--border); border-radius: 30px; padding: .4rem .9rem; }
.meta i { color: var(--rose); }
.meta.ok i { color: var(--ok); } .meta.warn i { color: var(--warn); }
.pd-box { background: var(--rose-faint); border: 1px solid var(--border); border-radius: 22px; padding: 1.2rem; }
.qty { display: inline-flex; align-items: center; border: 1.5px solid var(--border-dark); border-radius: 30px; background: var(--white); overflow: hidden; }
.qty button { width: 40px; height: 44px; border: none; background: none; cursor: pointer; color: var(--rose); font-size: .95rem; }
.qty button:hover { background: var(--rose-pale); }
.qty input { width: 42px; text-align: center; border: none; font-weight: 600; background: transparent; -moz-appearance: textfield; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; }
.qty.sm button { width: 32px; height: 34px; font-size: .8rem; } .qty.sm input { width: 32px; font-size: .88rem; }
.pd-actions { display: flex; gap: .7rem; align-items: center; margin-top: .4rem; }
.pd-actions .btn-primary { flex: 1; }
.pd-desc { margin-top: 1.6rem; color: var(--text-mid); line-height: 1.8; white-space: pre-line; }
.pd-desc h2 { font-size: 1rem; font-weight: 600; color: var(--text); margin-bottom: .5rem; }
.pd-trust { display: grid; gap: .6rem; margin-top: 1.4rem; }
.pd-trust div { display: flex; gap: .7rem; align-items: center; font-size: .84rem; color: var(--text-mid); }
.pd-trust i { width: 36px; height: 36px; border-radius: 11px; display: flex; align-items: center; justify-content: center; background: var(--rose-pale); color: var(--rose); flex-shrink: 0; }

/* ── CARRITO LATERAL ── */
.overlay { position: fixed; inset: 0; background: rgba(30,13,18,.45); z-index: 300; opacity: 0; pointer-events: none; transition: opacity .3s; }
.overlay.open { opacity: 1; pointer-events: auto; }
.cart-panel { position: fixed; top: 0; right: 0; bottom: 0; width: min(420px, 100%); background: var(--white); z-index: 310; transform: translateX(105%); transition: transform .35s cubic-bezier(.4,0,.2,1); display: flex; flex-direction: column; box-shadow: -10px 0 40px rgba(0,0,0,.12); }
.cart-panel.open { transform: none; }
.cart-head { display: flex; align-items: center; justify-content: space-between; padding: 1.1rem 1.2rem; border-bottom: 1px solid var(--border); }
.cart-head h2 { font-family: var(--font-titulo); font-size: 1.35rem; }
.cart-body { flex: 1; overflow-y: auto; padding: .4rem 1.2rem; }
.cart-foot { border-top: 1px solid var(--border); padding: 1rem 1.2rem 1.2rem; background: var(--surface); display: flex; flex-direction: column; gap: .6rem; }
.line { display: grid; grid-template-columns: 64px 1fr auto; gap: .8rem; padding: .9rem 0; border-bottom: 1px solid var(--border); align-items: start; }
.line:last-child { border-bottom: none; }
.line-img { width: 64px; height: 64px; border-radius: 14px; overflow: hidden; background: var(--rose-pale); border: 1px solid var(--border); }
.line-img img, .line-img .ph { width: 100%; height: 100%; object-fit: cover; font-size: 1.6rem; }
.line-name { font-size: .88rem; font-weight: 600; line-height: 1.3; }
.line-pers { font-size: .74rem; color: var(--text-soft); margin-top: .15rem; font-style: italic; overflow-wrap: anywhere; }
.line-price { font-size: .8rem; color: var(--text-soft); margin: .2rem 0 .4rem; }
.line-total { font-weight: 700; font-size: .92rem; text-align: right; }
.line-del { background: none; border: none; color: var(--text-soft); font-size: .75rem; cursor: pointer; margin-top: .4rem; display: block; margin-left: auto; }
.line-del:hover { color: var(--err); }
.row { display: flex; justify-content: space-between; align-items: center; font-size: .9rem; color: var(--text-mid); }
.row.total { font-size: 1.1rem; color: var(--text); font-weight: 700; border-top: 1px dashed var(--border-dark); padding-top: .7rem; margin-top: .2rem; }
.row.total span:last-child { font-family: var(--font-texto); color: var(--rose); font-size: 1.35rem; }
.row.discount { color: var(--ok); }
.free-ship { font-size: .78rem; color: var(--text-mid); background: var(--rose-pale); border-radius: 12px; padding: .55rem .8rem; }
.free-ship .bar { height: 5px; background: var(--white); border-radius: 3px; margin-top: .4rem; overflow: hidden; }
.free-ship .bar i { display: block; height: 100%; background: var(--rose); border-radius: 3px; }

/* ── CARRITO / CHECKOUT (páginas) ── */
.two-col { display: grid; gap: 1.6rem; padding: 1.6rem 0 3.5rem; align-items: start; }
.card { background: var(--white); border: 1px solid var(--border); border-radius: 22px; padding: 1.3rem; }
.card + .card { margin-top: 1rem; }
.card h2 { font-family: var(--font-titulo); font-size: 1.3rem; margin-bottom: 1rem; display: flex; align-items: center; gap: .6rem; }
.card h2 .n { width: 28px; height: 28px; border-radius: 50%; background: var(--rose); color: #fff; font-family: var(--font-texto); font-size: .8rem; display: inline-flex; align-items: center; justify-content: center; }
.summary { background: var(--rose-faint); position: sticky; top: calc(var(--nav-h) + 1rem); }
.summary .rows { display: flex; flex-direction: column; gap: .5rem; margin-top: 1rem; }
.coupon { display: flex; gap: .5rem; margin-top: 1rem; }
.coupon .input { padding: .6rem .9rem; font-size: .86rem; text-transform: uppercase; }
.coupon-on { display: flex; align-items: center; justify-content: space-between; background: var(--ok-bg); color: var(--ok); border-radius: 12px; padding: .55rem .8rem; font-size: .84rem; font-weight: 600; margin-top: 1rem; }
.coupon-on button { background: none; border: none; color: var(--ok); cursor: pointer; font-size: .8rem; text-decoration: underline; }
.opts { display: grid; gap: .6rem; }
.opt { position: relative; display: flex; gap: .8rem; align-items: flex-start; border: 1.5px solid var(--border-dark); border-radius: 16px; padding: .9rem 1rem; cursor: pointer; transition: .2s; background: var(--white); }
.opt:hover { border-color: var(--rose-light); }
.opt input { accent-color: var(--rose); width: 18px; height: 18px; margin-top: 2px; flex-shrink: 0; }
.opt:has(input:checked) { border-color: var(--rose); background: var(--rose-faint); box-shadow: 0 0 0 3px var(--rose-pale); }
.opt-title { font-weight: 600; font-size: .92rem; }
.opt-detail { font-size: .78rem; color: var(--text-soft); margin-top: .1rem; }
.opt-price { margin-left: auto; font-weight: 700; font-size: .88rem; color: var(--rose); white-space: nowrap; }
.mini-lines .line { grid-template-columns: 52px 1fr auto; padding: .6rem 0; }
.mini-lines .line-img { width: 52px; height: 52px; position: relative; overflow: visible; }
.mini-lines .line-img img, .mini-lines .line-img .ph { border-radius: 12px; }
.mini-lines .q { position: absolute; top: -6px; right: -6px; background: var(--dark); color: #fff; font-size: .66rem; font-weight: 700; min-width: 20px; height: 20px; border-radius: 10px; display: flex; align-items: center; justify-content: center; padding: 0 4px; }

/* ── ALERTAS / TOAST ── */
.alert { display: flex; gap: .7rem; align-items: flex-start; border-radius: 16px; padding: .9rem 1rem; font-size: .88rem; margin-bottom: 1rem; border: 1px solid; }
.alert i { margin-top: 2px; }
.alert-ok { background: var(--ok-bg); border-color: #c6ead5; color: #1f6b44; }
.alert-info { background: var(--rose-pale); border-color: var(--border); color: var(--text-mid); }
.alert-warn { background: var(--warn-bg); border-color: #f3dfb5; color: #7d4f0d; }
.alert-error { background: var(--err-bg); border-color: #f5c8c2; color: #8f2a1f; }
.toasts { position: fixed; z-index: 400; left: 50%; bottom: 1.2rem; transform: translateX(-50%); display: flex; flex-direction: column; gap: .5rem; width: min(440px, calc(100% - 2rem)); pointer-events: none; }
.toast { pointer-events: auto; background: var(--dark); color: #fff; border-radius: 16px; padding: .85rem 1.1rem; font-size: .88rem; display: flex; gap: .7rem; align-items: center; box-shadow: 0 14px 34px rgba(0,0,0,.25); animation: toastIn .35s ease both; }
.toast i { color: var(--rose-light); }
.toast.error i { color: #ff9a8a; }
.toast a { margin-left: auto; color: var(--rose-light); font-weight: 600; white-space: nowrap; }
.toast.out { animation: toastOut .3s ease forwards; }
@keyframes toastIn { from { opacity: 0; transform: translateY(14px); } }
@keyframes toastOut { to { opacity: 0; transform: translateY(14px); } }

/* ── PEDIDO / SEGUIMIENTO ── */
.thanks { text-align: center; padding: 2.4rem 0 1.4rem; }
.thanks .big { font-size: 3.2rem; margin-bottom: .6rem; animation: pop .7s ease; }
.thanks h1 { font-family: var(--font-titulo); font-size: clamp(1.9rem, 6vw, 2.7rem); line-height: 1.15; }
.code { display: inline-flex; align-items: center; gap: .5rem; margin-top: 1rem; background: var(--rose-pale); border: 1.5px dashed var(--rose-light); color: var(--rose); border-radius: 14px; padding: .6rem 1.1rem; font-weight: 700; letter-spacing: .08em; font-size: 1.05rem; }
.code button { background: none; border: none; color: var(--rose); cursor: pointer; }
.timeline { display: flex; flex-direction: column; gap: 0; }
.tl-step { display: grid; grid-template-columns: 36px 1fr; gap: .8rem; position: relative; padding-bottom: 1.1rem; }
.tl-step:not(:last-child)::before { content: ''; position: absolute; left: 17px; top: 36px; bottom: 0; width: 2px; background: var(--border); }
.tl-step.done:not(:last-child)::before { background: var(--rose-light); }
.tl-ico { width: 36px; height: 36px; border-radius: 50%; background: var(--surface); border: 2px solid var(--border); color: var(--text-soft); display: flex; align-items: center; justify-content: center; font-size: .82rem; }
.tl-step.done .tl-ico { background: var(--rose); border-color: var(--rose); color: #fff; }
.tl-step.now .tl-ico { box-shadow: 0 0 0 5px var(--rose-pale); }
.tl-title { font-weight: 600; font-size: .92rem; padding-top: .45rem; }
.tl-step:not(.done) .tl-title { color: var(--text-soft); font-weight: 500; }
.tl-date { font-size: .74rem; color: var(--text-soft); }
.bank { display: grid; gap: .45rem; font-size: .9rem; }
.bank div { display: flex; justify-content: space-between; gap: 1rem; border-bottom: 1px dashed var(--border); padding-bottom: .4rem; }
.bank span:first-child { color: var(--text-soft); }
.bank span:last-child { font-weight: 600; text-align: right; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: .35rem 1rem; font-size: .88rem; }
.kv dt { color: var(--text-soft); } .kv dd { font-weight: 500; }

/* ── SERVICIOS ── */
.services-grid { display: grid; gap: 1rem; }
.srv-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.5rem; transition: .3s; position: relative; overflow: hidden; }
.srv-card::after { content: ''; position: absolute; inset: auto 0 0 0; height: 3px; background: linear-gradient(90deg, var(--rose), var(--rose-light)); transform: scaleX(0); transition: transform .3s; }
.srv-card:hover { border-color: var(--border-dark); box-shadow: var(--shadow); }
.srv-card:hover::after { transform: scaleX(1); }
.srv-top { display: flex; align-items: center; gap: .9rem; margin-bottom: .8rem; }
.srv-ico { width: 46px; height: 46px; background: var(--rose-pale); border-radius: 13px; display: flex; align-items: center; justify-content: center; font-size: 1.3rem; border: 1px solid var(--border); flex-shrink: 0; }
.srv-card h3 { font-size: 1rem; font-weight: 600; }
.srv-card p { font-size: .87rem; color: var(--text-soft); line-height: 1.65; }

/* ── GALERÍA ── */
.galeria-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: .7rem; }
.galeria-item { border-radius: 16px; overflow: hidden; aspect-ratio: 1; position: relative; cursor: zoom-in; background: var(--rose-pale); border: 1px solid var(--border); padding: 0; }
.galeria-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.galeria-item:hover img { transform: scale(1.06); }
.galeria-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(30,13,18,.75) 0%, transparent 55%); opacity: 0; transition: opacity .25s; display: flex; align-items: flex-end; padding: .8rem; color: #fff; font-size: .76rem; font-weight: 500; text-align: left; }
.galeria-item:hover .galeria-overlay { opacity: 1; }
.galeria-overlay small { display: block; color: var(--rose-light); font-size: .66rem; }
.lightbox { display: none; position: fixed; inset: 0; background: rgba(30,13,18,.94); z-index: 500; align-items: center; justify-content: center; padding: 1rem; }
.lightbox.open { display: flex; }
.lightbox img { max-width: 100%; max-height: 84vh; border-radius: 16px; object-fit: contain; transition: opacity .2s; user-select: none; }
.lightbox img.cambiando { opacity: .25; }
.lightbox-nav { position: fixed; top: 50%; transform: translateY(-50%); width: 48px; height: 48px; border-radius: 50%; border: none; background: rgba(255,255,255,.14); color: #fff; font-size: 1.1rem; cursor: pointer; transition: background .2s; }
.lightbox-nav:hover { background: var(--rose); }
.lightbox-nav.prev { left: 1rem; } .lightbox-nav.next { right: 1rem; }
.lightbox-count { position: fixed; bottom: 1.2rem; left: 50%; transform: translateX(-50%); background: rgba(0,0,0,.4); color: #fff; font-size: .85rem; padding: .3rem .9rem; border-radius: 20px; }
@media (max-width: 639px) { .lightbox-nav { top: auto; bottom: 1rem; transform: none; width: 44px; height: 44px; } }
.lightbox-close { position: fixed; top: 1rem; right: 1rem; background: var(--rose); color: #fff; border: none; border-radius: 50%; width: 44px; height: 44px; font-size: 1.1rem; cursor: pointer; }

/* ── TESTIMONIOS ── */
.testi-scroll { display: flex; gap: 1rem; overflow-x: auto; scrollbar-width: none; scroll-snap-type: x mandatory; padding-bottom: .5rem; }
.testi-scroll::-webkit-scrollbar { display: none; }
.testi-card { flex-shrink: 0; width: 82vw; max-width: 320px; background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.4rem; scroll-snap-align: start; }
.testi-stars { color: var(--rose); letter-spacing: 2px; margin-bottom: .7rem; }
.testi-texto { font-size: .9rem; line-height: 1.7; color: var(--text-mid); font-style: italic; margin-bottom: 1rem; }
.testi-nombre { font-size: .82rem; font-weight: 600; }

/* ── CONTACTO ── */
.contact-grid { display: grid; gap: 1rem; }
.c-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.3rem; display: flex; gap: 1rem; align-items: flex-start; transition: .25s; }
.c-card:hover { border-color: var(--border-dark); box-shadow: 0 6px 20px -6px rgba(0,0,0,.06); }
.c-ico { width: 48px; height: 48px; background: var(--rose-pale); border-radius: 14px; border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; font-size: 1.3rem; flex-shrink: 0; }
.c-card h4 { font-size: .95rem; font-weight: 600; margin-bottom: .25rem; }
.c-card p { font-size: .84rem; color: var(--text-soft); line-height: 1.6; margin-bottom: .7rem; }
.mapa { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); margin-top: 1.6rem; }
.mapa iframe { width: 100%; height: 280px; border: 0; display: block; }

/* ── CTA ── */
.cta-dark { background: var(--dark); border-radius: 28px; padding: 3rem 1.5rem; text-align: center; position: relative; overflow: hidden; color: #fff; }
.cta-dark::before { content: ''; position: absolute; width: 420px; height: 420px; background: radial-gradient(circle, rgba(201,96,122,.22) 0%, transparent 70%); top: -160px; left: 50%; transform: translateX(-50%); pointer-events: none; }
.cta-dark .eyebrow { color: var(--rose-light); }
.cta-dark .sec-sub { color: rgba(255,255,255,.6); margin: .8rem auto 1.8rem; }
.cta-btns { display: flex; flex-direction: column; gap: .7rem; position: relative; justify-content: center; }

/* ── FOOTER ── */
footer { background: rgba(255, 255, 255, .5); border-top: 1px solid var(--border); padding: 2.6rem 0 6rem; margin-top: 2rem; }
.foot-grid { display: grid; gap: 1.8rem; margin-bottom: 1.8rem; }
.foot-grid h4 { font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; color: var(--text-soft); margin-bottom: .7rem; }
.foot-grid ul { list-style: none; display: grid; gap: .45rem; font-size: .88rem; color: var(--text-mid); }
.foot-grid a:hover { color: var(--rose); }
.foot-desc { font-size: .86rem; color: var(--text-soft); line-height: 1.6; margin: .5rem 0 1rem; max-width: 340px; }
.socials { display: flex; gap: .5rem; }
.socials a { width: 38px; height: 38px; background: var(--white); border: 1px solid var(--border); border-radius: 11px; display: flex; align-items: center; justify-content: center; color: var(--text-soft); transition: .2s; }
.socials a:hover { border-color: var(--rose); color: var(--rose); background: var(--rose-pale); }
.foot-copy { font-size: .76rem; color: var(--text-soft); text-align: center; border-top: 1px solid var(--border); padding-top: 1.2rem; }
.pay-icons { display: flex; gap: .6rem; color: var(--text-soft); font-size: 1.4rem; margin-top: .6rem; }

/* WhatsApp flotante */
.wa-float { position: fixed; right: 1rem; bottom: 1rem; z-index: 150; width: 56px; height: 56px; border-radius: 50%; background: #25d366; color: #fff; display: flex; align-items: center; justify-content: center; font-size: 1.6rem; box-shadow: 0 10px 28px -6px rgba(37,211,102,.55); transition: transform .2s; }
.wa-float:hover { transform: scale(1.08); }

/* Barra fija de compra en móvil (producto) */
.buy-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 160; background: var(--papel-vidrio); backdrop-filter: blur(12px); border-top: 1px solid var(--border); padding: .7rem var(--px); display: flex; gap: .8rem; align-items: center; transform: translateY(110%); transition: transform .3s; }
.buy-bar.show { transform: none; }
.buy-bar .price { font-size: 1.25rem; }
.buy-bar .btn { flex: 1; }

/* ── ANIMACIONES ── */
@keyframes fadeUp { from { opacity: 0; transform: translateY(18px); } }
@keyframes fadeDown { from { opacity: 0; transform: translateY(-10px); } }
.js .reveal { opacity: 0; transform: translateY(20px); transition: opacity .55s ease, transform .55s ease; }
.js .reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } .js .reveal { opacity: 1; transform: none; } }

/* ══ TABLET ≥ 640px ══ */
@media (min-width: 640px) {
  :root { --px: 2rem; }
  .hero-btns, .cta-btns { flex-direction: row; }
  .cat-grid { grid-template-columns: repeat(4, 1fr); }
  .prod-grid { grid-template-columns: repeat(3, 1fr); gap: 1.1rem; }
  .services-grid, .contact-grid { grid-template-columns: repeat(2, 1fr); }
  .galeria-grid { grid-template-columns: repeat(3, 1fr); }
  .grid-2 { grid-template-columns: 1fr 1fr; }
  .foot-grid { grid-template-columns: 2fr 1fr 1fr; }
  .mapa iframe { height: 340px; }
  .wa-float { bottom: 1.5rem; right: 1.5rem; }
}

/* ══ DESKTOP ≥ 1024px ══ */
@media (min-width: 1024px) {
  :root { --nav-h: 84px; }
  .nav-links { display: flex; }
  .hamburger, .drawer { display: none !important; }
  .hero { padding: 4.5rem 0 4rem; }
  .hero-grid { grid-template-columns: 1.05fr .95fr; gap: 4.5rem; }
  .section { padding: 5rem 0; }
  .prod-grid { grid-template-columns: repeat(4, 1fr); gap: 1.3rem; }
  .prod-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
  .galeria-grid { gap: 1rem; }
  .testi-scroll { display: grid; grid-template-columns: repeat(4, 1fr); overflow: visible; }
  .testi-card { width: auto; max-width: none; }
  .services-grid { grid-template-columns: repeat(4, 1fr); }
  .contact-grid { grid-template-columns: repeat(4, 1fr); }
  .c-card { flex-direction: column; }
  .pd { grid-template-columns: 1.05fr 1fr; gap: 3.5rem; padding-top: 2rem; }
  .pd-gallery { position: sticky; top: calc(var(--nav-h) + 1.5rem); align-self: start; }
  .two-col { grid-template-columns: 1fr 380px; gap: 2rem; }
  .cta-dark { padding: 5rem 6%; border-radius: 34px; }
  .buy-bar { display: none; }
  footer { padding-bottom: 2rem; }
}

/* ── Títulos con Fraunces (serif suave; tamaño óptico automático según el tamaño) ── */
.sec-title, .hero h1, .pd-info h1, .thanks h1, .empty h3, .card h2, .cart-head h2 {
  font-weight: 700; letter-spacing: -.01em; line-height: 1.12; font-optical-sizing: auto;
}
.sec-title em, .hero h1 em { font-style: normal; }
.hero h1 { font-size: clamp(2.3rem, 8vw, 3.7rem); line-height: 1.1; }
.sec-title { font-size: clamp(1.75rem, 5.5vw, 2.4rem); }
.pd-info h1 { font-size: clamp(1.6rem, 4.5vw, 2.2rem); }
.thanks h1 { font-size: clamp(1.7rem, 5.5vw, 2.4rem); }
.card h2 { font-size: 1.3rem; }
.cart-head h2 { font-size: 1.35rem; }
.empty h3 { font-size: 1.35rem; }

/* ---------- Tallas y colores (ficha de producto) ---------- */
.pd-sku { font-size: .78rem; letter-spacing: .06em; color: var(--text-soft); margin: -.4rem 0 .5rem; text-transform: uppercase; }
.pd-desde { font-size: .85rem; color: var(--text-soft); }
.pd-dcto { align-self: center; font-weight: 700; }
.opciones { border: none; padding: 0; margin: 0 0 1rem; min-width: 0; }
.opciones-head { display: flex; align-items: center; justify-content: space-between; gap: .6rem; margin-bottom: .5rem; }
.opciones legend { float: left; padding: 0; font-weight: 700; font-size: .82rem; letter-spacing: .08em; text-transform: uppercase; }
.opcion-sel { font-weight: 400; letter-spacing: 0; text-transform: none; color: var(--rose); margin-left: .3rem; }
.link-guia { background: none; border: none; padding: 0; cursor: pointer; font: inherit; font-size: .8rem; color: var(--rose); text-decoration: underline; text-underline-offset: 3px; }
.chips-talla, .chips-color { display: flex; flex-wrap: wrap; gap: .5rem; clear: both; }
.chip-talla, .chip-color { position: relative; cursor: pointer; }
.chip-talla input, .chip-color input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.chip-talla span { display: inline-flex; align-items: center; justify-content: center; min-width: 48px; height: 42px; padding: 0 .9rem; border: 1.5px solid var(--border-dark); border-radius: 30px; background: var(--white); font-weight: 600; transition: .15s; }
.chip-talla:hover span { border-color: var(--rose); color: var(--rose); }
.chip-talla input:checked + span { background: var(--rose); border-color: var(--rose); color: #fff; }
.chip-talla input:focus-visible + span, .chip-color input:focus-visible + span { outline: 3px solid var(--rose-pale); outline-offset: 2px; }
.chip-color .swatch { display: block; width: 36px; height: 36px; border-radius: 50%; background: var(--sw); border: 2px solid var(--white); box-shadow: 0 0 0 1.5px var(--border-dark); transition: .15s; }
.chip-color:hover .swatch { box-shadow: 0 0 0 2px var(--rose); }
.chip-color input:checked + .swatch { box-shadow: 0 0 0 3px var(--rose); }
.chip-color .swatch-txt { display: inline-flex; align-items: center; height: 36px; padding: 0 .8rem; border: 1.5px solid var(--border-dark); border-radius: 30px; background: var(--white); font-size: .85rem; }
.chip-color input:checked + .swatch-txt { border-color: var(--rose); background: var(--rose); color: #fff; }
.guia-tallas { white-space: pre-line; margin-top: .7rem; padding: .8rem 1rem; background: var(--white); border: 1px dashed var(--border-dark); border-radius: 14px; font-size: .85rem; line-height: 1.6; }
.opciones.falta .chips-talla, .opciones.falta .chips-color { animation: sacudir .4s; }
.opciones.falta legend { color: var(--rose); }
@keyframes sacudir { 25% { transform: translateX(-5px); } 75% { transform: translateX(5px); } }
.linea-var { display: block; font-size: .78rem; color: var(--text-soft); }

/* ---------- Feed de Instagram (Elfsight) ---------- */
.ig-feed { min-height: 220px; border-radius: 22px; overflow: hidden; }
.ig-feed { position: relative; }
.ig-fallback { display: none; flex-direction: column; align-items: center; gap: .9rem; text-align: center; padding: 2.4rem 1.5rem; background: var(--papel-vidrio, rgba(255,255,255,.75)); border: 1.5px dashed var(--border-dark); border-radius: 22px; }
.ig-fallback p { max-width: 380px; margin: 0; color: var(--text-soft); }
.ig-fallback-ico { width: 64px; height: 64px; border-radius: 20px; display: grid; place-items: center; font-size: 2rem; color: #fff; background: linear-gradient(45deg, #f9ce34, #ee2a7b 50%, #6228d7); box-shadow: 0 8px 20px rgba(238,42,123,.25); }
/* Sin JavaScript o si el widget falla: se muestra el botón en vez del espacio en blanco */
html:not(.js) .ig-fallback, .ig-feed.ig-sin-widget .ig-fallback, html.ig-error .ig-fallback { display: flex; }
html:not(.js) .ig-feed, .ig-feed.ig-sin-widget, html.ig-error .ig-feed { min-height: 0; }
html.ig-error [data-ig-widget] { display: none; }
