@import url('https://fonts.googleapis.com/css2?family=Alex+Brush&family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;1,400&family=Montserrat:wght@300;400;500;600&display=swap');

/* ==========================================================
   ROSEE BOUTIQUE — estilos
   Puntos de adaptación: 480 · 768 (tablet/iPad) · 1024 (laptop) · 1440 (monitor grande)
   ========================================================== */

:root {
  --bg-ivory: #F7F3EC;
  --bg-sand: #EFE9DF;
  --bg-card: #FFFFFF;
  --ink-black: #121110;
  --ink-muted: #5C554E;
  --gold-champagne: #C6A467;
  --taupe-brown: #6B5844;
  --border-subtle: #E2DBD0;
  --danger: #8E2430;
  --review: #F3D36B;

  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-script: 'Alex Brush', cursive;
  --font-sans: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --gutter: 16px;
  --maxw: 1320px;
  --header-h: 72px;
  --radius-img: 4px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg-ivory); color: var(--ink-black);
  font-family: var(--font-sans); font-size: 15px; line-height: 1.6;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
body.no-scroll { overflow: hidden; }
img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--gold-champagne); outline-offset: 2px; }
[hidden] { display: none !important; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--ink-black); color: #fff; padding: 10px 16px; }
.skip-link:focus { left: 8px; }

svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
svg .fill { fill: currentColor; stroke: none; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 28px; border: 1px solid transparent; border-radius: 0;
  font-family: var(--font-sans); font-size: 13px; font-weight: 500; letter-spacing: 0.06em;
  text-decoration: none; cursor: pointer; transition: background-color .25s ease, color .25s ease, border-color .25s ease;
}
.btn svg { width: 18px; height: 18px; }
.btn-block { width: 100%; }
.btn-dark { background: var(--ink-black); color: var(--bg-ivory); border-color: var(--ink-black); }
.btn-dark:hover { background: var(--taupe-brown); border-color: var(--taupe-brown); }
.btn-outline { background: transparent; color: var(--ink-black); border-color: var(--ink-black); }
.btn-outline:hover { background: var(--ink-black); color: var(--bg-ivory); }
.btn-light { background: var(--bg-ivory); color: var(--ink-black); }
.btn-light:hover { background: #fff; }
.btn-ghost-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.85); }
.btn-ghost-light:hover { background: rgba(255,255,255,.14); }
.btn-wa { background: var(--taupe-brown); color: #fff; border-color: var(--taupe-brown); }
.btn-wa:hover { background: var(--ink-black); border-color: var(--ink-black); }
.btn-wa:disabled { opacity: .45; cursor: not-allowed; }
.btn-wa:disabled:hover { background: var(--taupe-brown); border-color: var(--taupe-brown); }
.wa-icon { width: 20px; height: 20px; }

.icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; background: none; border: 0; cursor: pointer; color: var(--ink-black);
}

/* ---------- Modo revisión ---------- */
.review-bar {
  background: var(--review); color: var(--ink-black); font-size: 13px;
  padding: 10px var(--gutter); display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center;
}
.review-bar-toggle { background: none; border: 0; text-decoration: underline; cursor: pointer; font-size: 13px; }
.review-bar-list { flex-basis: 100%; padding-left: 18px; }
.review-tag {
  position: absolute; top: 10px; left: 10px; z-index: 2;
  background: var(--review); color: var(--ink-black); font-size: 11px; font-weight: 600;
  padding: 3px 10px; border-radius: 99px;
}
.review-notes { margin-top: 20px; padding: 14px 16px; background: #FBF1CF; border-left: 3px solid #D9AE2B; font-size: 13px; }
.review-notes h3 { font-size: 13px; font-weight: 600; margin-bottom: 6px; }
.review-notes ul { padding-left: 18px; }

/* ---------- Cintillo superior ---------- */
.marquee-announcement {
  background-color: var(--ink-black); color: #FFFFFF; overflow: hidden; white-space: nowrap;
  font-size: 10.5px; letter-spacing: 0.2em; padding: 9px 0; font-weight: 500;
}
.marquee-content { display: inline-block; animation: marquee 34s linear infinite; }
.marquee-announcement:hover .marquee-content { animation-play-state: paused; }
.marquee-content span { margin-right: 48px; }
@keyframes marquee { from { transform: translate3d(0,0,0); } to { transform: translate3d(-50%,0,0); } }

/* ---------- Encabezado ---------- */
.navbar {
  position: sticky; top: 0; z-index: 40;
  background: rgba(247, 243, 236, 0.96); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-subtle);
}
.nav-inner {
  max-width: var(--maxw); margin: 0 auto; height: var(--header-h); padding: 0 calc(var(--gutter) - 6px);
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
}
.nav-links { display: none; }
.menu-trigger { justify-self: start; }
.brand-logo { display: flex; align-items: center; justify-content: center; text-decoration: none; }
.brand-logo img { height: calc(var(--header-h) - 12px); width: auto; }
.nav-actions { display: flex; justify-content: flex-end; align-items: center; gap: 2px; }
.nav-ig { display: none; }
.cart-trigger {
  position: relative; display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 10px;
  background: none; border: 0; cursor: pointer; font-size: 13px; letter-spacing: .04em;
}
.cart-label { display: none; }
.cart-count {
  min-width: 20px; height: 20px; padding: 0 6px; border-radius: 99px;
  background: var(--ink-black); color: var(--bg-ivory); font-size: 11px; font-weight: 600;
  display: inline-flex; align-items: center; justify-content: center;
}
.cart-count.bump { animation: bump .4s var(--ease); }
@keyframes bump { 40% { transform: scale(1.3); } }

/* Menú móvil */
.mobile-menu-backdrop { position: fixed; inset: 0; z-index: 80; background: rgba(18,17,16,.5); opacity: 0; visibility: hidden; transition: opacity .3s ease, visibility .3s; }
.mobile-menu-backdrop.open { opacity: 1; visibility: visible; }
.mobile-menu {
  position: absolute; inset: 0 auto 0 0; width: min(86vw, 360px); background: var(--bg-ivory);
  padding: 12px 24px calc(24px + env(safe-area-inset-bottom)); overflow-y: auto;
  transform: translateX(-100%); transition: transform .35s var(--ease);
  display: flex; flex-direction: column;
}
.mobile-menu-backdrop.open .mobile-menu { transform: none; }
.mobile-menu-head { display: flex; justify-content: space-between; align-items: center; margin: 0 -10px 12px 0; }
.mobile-menu-title { font-family: var(--font-serif); font-size: 22px; }
.mobile-menu > a { font-family: var(--font-serif); font-size: 24px; text-decoration: none; padding: 10px 0; border-bottom: 1px solid var(--border-subtle); }
.mobile-menu-cats { display: flex; flex-wrap: wrap; gap: 8px; padding: 14px 0; border-bottom: 1px solid var(--border-subtle); }
.mobile-menu-cats button { border: 1px solid var(--border-subtle); background: #fff; padding: 9px 14px; font-size: 13px; cursor: pointer; }

/* ---------- Banner principal ---------- */
.hero { position: relative; height: min(82svh, 760px); min-height: 480px; overflow: hidden; background: var(--bg-sand); }
.hero picture, .hero-img { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-img { object-fit: cover; object-position: 50% 22%; }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(18,17,16,0) 38%, rgba(18,17,16,.62) 100%); }
.hero-copy {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 0 var(--gutter) 40px;
  text-align: center; color: #fff;
}
.hero-script {
  font-family: var(--font-script); font-size: clamp(76px, 22vw, 168px); line-height: .7; font-weight: 400;
  margin-bottom: -.06em; text-shadow: 0 2px 30px rgba(0,0,0,.25);
}
.hero-title {
  font-family: var(--font-serif); font-weight: 400; text-transform: uppercase;
  font-size: clamp(30px, 8vw, 64px); letter-spacing: .3em; padding-left: .3em; line-height: 1.1;
}
.hero-desc { font-size: 14px; max-width: 34ch; margin: 10px auto 0; opacity: .92; }
.hero-cta-group { display: flex; flex-direction: column; gap: 10px; margin: 22px auto 0; max-width: 320px; }

/* Entrada del banner: un solo momento animado */
@media (prefers-reduced-motion: no-preference) {
  .hero-img { animation: heroZoom 1.8s var(--ease) both; }
  .hero-script { animation: rise 1s .25s var(--ease) both; }
  .hero-title { animation: rise 1s .45s var(--ease) both; }
  .hero-desc, .hero-cta-group { animation: rise 1s .65s var(--ease) both; }
}
@keyframes heroZoom { from { transform: scale(1.06); } to { transform: none; } }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

/* ---------- Secciones ---------- */
.section { max-width: var(--maxw); margin: 0 auto; padding: 56px var(--gutter); }
.section-head { text-align: center; margin-bottom: 28px; }
.section-title { font-family: var(--font-serif); font-weight: 500; font-size: clamp(30px, 6vw, 44px); line-height: 1.1; }
.section-desc { color: var(--ink-muted); font-size: 14px; margin-top: 8px; }

/* ---------- Tarjetas de producto ---------- */
.products-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 12px; }
.pcard { display: flex; flex-direction: column; min-width: 0; }
.pcard-media {
  position: relative; aspect-ratio: 3 / 4; overflow: hidden; border-radius: var(--radius-img);
  background: var(--bg-sand); cursor: pointer;
}
.pcard-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .45s ease, transform .9s var(--ease); }
.pcard-media .img-alt { opacity: 0; }
@media (hover: hover) {
  .pcard-media:hover .img-alt { opacity: 1; }
  .pcard-media:hover img { transform: scale(1.03); }
}
.pcard-badge {
  position: absolute; left: 10px; bottom: 10px; z-index: 2;
  background: rgba(247,243,236,.94); font-size: 11px; font-weight: 500; padding: 4px 10px; border-radius: 99px;
}
.pcard-badge--out { background: var(--ink-black); color: var(--bg-ivory); }
.quick-btn {
  position: absolute; right: 8px; bottom: 8px; z-index: 2;
  width: 40px; height: 40px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(247,243,236,.95); color: var(--ink-black);
  display: inline-flex; align-items: center; justify-content: center; transition: background-color .2s ease, color .2s ease;
}
.quick-btn svg { width: 18px; height: 18px; stroke-width: 1.6; }
.quick-btn:hover { background: var(--ink-black); color: var(--bg-ivory); }
.pcard-info { padding-top: 12px; text-align: center; display: flex; flex-direction: column; align-items: center; flex: 1; }
.pcard-name { font-family: var(--font-serif); font-weight: 500; font-size: 18px; line-height: 1.2; }
.pcard-name button { background: none; border: 0; cursor: pointer; font: inherit; text-align: center; }
.pcard-price { font-size: 13px; color: var(--ink-muted); margin-top: 4px; letter-spacing: .03em; }
.pcard-colors { font-size: 12px; color: var(--ink-muted); margin-top: 2px; min-height: 18px; }
.pcard .swatches { margin-top: 10px; }
.pcard-add { margin-top: auto; padding-top: 12px; width: 100%; }
.pcard-add .btn { width: 100%; min-height: 44px; padding: 0 10px; font-size: 12px; }

/* Imagen pendiente */
.ph {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  background:
    repeating-linear-gradient(135deg, rgba(198,164,103,.08) 0 10px, transparent 10px 20px),
    var(--bg-sand);
  color: var(--taupe-brown); text-align: center; padding: 16px; font-size: 12px;
}
.ph-mark { font-size: 28px; color: var(--gold-champagne); line-height: 1; }
.ph-color { font-family: var(--font-serif); font-size: 18px; color: var(--ink-black); }

/* Círculos de color */
.swatches { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.swatch {
  position: relative; width: 30px; height: 30px; border-radius: 50%; padding: 0; cursor: pointer;
  border: 1px solid var(--border-subtle); background-size: cover; background-position: center;
  box-shadow: 0 0 0 2px var(--bg-ivory); transition: box-shadow .2s ease;
}
.swatch::after { content: ''; position: absolute; inset: -7px; } /* área táctil de 44px */
.swatch.selected { box-shadow: 0 0 0 2px var(--bg-ivory), 0 0 0 3px var(--gold-champagne); }
.swatch-more { font-size: 12px; color: var(--ink-muted); align-self: center; padding: 0 4px; background: none; border: 0; cursor: pointer; }
.swatches--lg { justify-content: flex-start; gap: 10px; }
.swatches--lg .swatch { width: 44px; height: 44px; }
.swatches--lg .swatch::after { inset: -2px; }

/* ---------- Identidad de marca ---------- */
.brand-story { background: var(--bg-sand); padding: 56px var(--gutter); display: grid; gap: 36px; }
.brand-story-media { position: relative; max-width: 520px; width: 100%; margin: 0 auto; padding-right: 22%; padding-bottom: 14%; }
.brand-photo { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: var(--radius-img); }
.brand-photo--accent { position: absolute; right: 0; bottom: 0; width: 44%; border: 6px solid var(--bg-sand); }
.brand-story-copy { max-width: 480px; margin: 0 auto; }
.brand-script { font-family: var(--font-script); font-size: clamp(54px, 13vw, 88px); line-height: .8; color: var(--taupe-brown); }
.brand-heading { font-family: var(--font-serif); font-weight: 500; font-size: clamp(30px, 6.5vw, 46px); line-height: 1.08; margin: 6px 0 18px; }
.brand-story-copy p:not(.brand-script) { font-family: var(--font-serif); font-size: 19px; line-height: 1.55; color: var(--ink-muted); margin-bottom: 12px; }
.brand-story-copy .btn { margin-top: 14px; }

/* ---------- Catálogo ---------- */
.catalog-toolbar { display: flex; flex-direction: column; gap: 14px; margin-bottom: 26px; }
.category-tabs {
  display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch;
  margin: 0 calc(var(--gutter) * -1); padding: 2px var(--gutter);
}
.category-tabs::-webkit-scrollbar { display: none; }
.tab-btn {
  flex: 0 0 auto; background: transparent; border: 1px solid var(--border-subtle);
  min-height: 40px; padding: 0 18px; font-size: 13px; color: var(--ink-muted); cursor: pointer; border-radius: 99px;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}
.tab-btn span { font-size: 11px; opacity: .7; margin-left: 4px; }
.tab-btn:hover { border-color: var(--ink-black); color: var(--ink-black); }
.tab-btn.active { background: var(--ink-black); border-color: var(--ink-black); color: var(--bg-ivory); }
.view-toggle { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--ink-muted); }
.view-btn { background: none; border: 0; border-bottom: 1px solid transparent; min-height: 36px; padding: 0 6px; cursor: pointer; color: var(--ink-muted); }
.view-btn.active { color: var(--ink-black); border-bottom-color: var(--ink-black); }

/* ---------- Redes sociales ---------- */
.social-box { padding: 0 var(--gutter) 56px; }
.social-box-inner {
  max-width: 980px; margin: 0 auto; text-align: center; padding: 44px 22px;
  border: 1px solid var(--gold-champagne); background: var(--bg-card);
  outline: 1px solid var(--gold-champagne); outline-offset: -8px;
}
.social-title { font-family: var(--font-serif); font-weight: 500; font-size: clamp(28px, 5.5vw, 40px); line-height: 1.1; }
.social-box-inner p { color: var(--ink-muted); max-width: 46ch; margin: 12px auto 22px; }
.btn-ig { text-transform: none; letter-spacing: .02em; }

/* ---------- Contacto ---------- */
.contact { border-top: 1px solid var(--border-subtle); padding: 52px var(--gutter); }
.contact-inner { max-width: 1080px; margin: 0 auto; display: grid; gap: 44px; }
.contact-inner--single { max-width: 560px; text-align: center; }
.contact-inner--single .contact-list { max-width: 330px; margin-left: auto; margin-right: auto; }
.contact-inner--single .contact-list li { grid-template-columns: 110px 1fr; text-align: left; }
.contact-inner--single .contact-note { margin: 0 auto; }
.contact-title { font-family: var(--font-serif); font-weight: 500; font-size: 30px; margin-bottom: 14px; }
.contact-list { list-style: none; display: grid; gap: 10px; margin-bottom: 16px; }
.contact-list li { display: grid; grid-template-columns: 96px 1fr; font-size: 14px; }
.contact-list span { color: var(--ink-muted); }
.contact-list a { text-decoration: none; border-bottom: 1px solid var(--gold-champagne); justify-self: start; }
.contact-note { font-size: 13px; color: var(--ink-muted); max-width: 46ch; }
.contact-col > p { color: var(--ink-muted); font-size: 14px; margin-bottom: 16px; }
.news-form { display: grid; gap: 12px; max-width: 460px; }
.field { display: grid; gap: 4px; font-size: 12px; color: var(--ink-muted); }
.field input {
  width: 100%; height: 48px; padding: 0 14px; border: 1px solid var(--border-subtle); background: #fff;
  font-family: var(--font-sans); font-size: 16px; color: var(--ink-black); border-radius: 0;
}
.field input:focus { outline: none; border-color: var(--ink-black); }
.field input[aria-invalid="true"] { border-color: var(--danger); }
.news-msg { font-size: 13px; min-height: 20px; }
.news-msg.ok { color: #2F5D3A; }
.news-msg.err { color: var(--danger); }

/* ---------- Pie de página ---------- */
.footer { background: var(--ink-black); color: var(--bg-ivory); padding: 56px var(--gutter) calc(32px + env(safe-area-inset-bottom)); text-align: center; }
.footer-logo { height: 150px; width: auto; margin: 0 auto; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 22px; margin: 28px auto 20px; max-width: 520px; }
.footer-links a { text-decoration: none; font-size: 13px; color: #D9D2C6; padding: 6px 0; }
.footer-links a:hover { color: var(--gold-champagne); }
.footer-copy { font-size: 12px; color: #8C8275; }

/* ---------- Vista ampliada ---------- */
.modal-backdrop {
  position: fixed; inset: 0; z-index: 60; background: rgba(18,17,16,.62);
  display: flex; align-items: stretch; justify-content: center;
  opacity: 0; visibility: hidden; transition: opacity .25s ease, visibility .25s;
}
.modal-backdrop.open { opacity: 1; visibility: visible; }
.product-modal {
  position: relative; width: 100%; height: 100%; background: var(--bg-ivory); overflow-y: auto; overscroll-behavior: contain;
  transform: translateY(24px); transition: transform .3s var(--ease);
}
.modal-backdrop.open .product-modal { transform: none; }
.modal-close {
  position: fixed; top: calc(10px + env(safe-area-inset-top)); right: 10px; z-index: 5;
  background: rgba(247,243,236,.95); border-radius: 50%;
}
.modal-gallery { position: relative; background: var(--bg-sand); }
.gallery-track {
  display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.gallery-track::-webkit-scrollbar { display: none; }
.gallery-slide { position: relative; flex: 0 0 100%; aspect-ratio: 3 / 4; scroll-snap-align: start; overflow: hidden; }
.gallery-slide img { width: 100%; height: 100%; object-fit: cover; transition: transform .2s ease; }
.gallery-slide.zoomed img { transform: scale(2); cursor: zoom-out; }
.gallery-thumbs { display: flex; gap: 8px; padding: 10px var(--gutter); overflow-x: auto; scrollbar-width: none; }
.gallery-thumbs button { flex: 0 0 auto; width: 54px; aspect-ratio: 3 / 4; padding: 0; border: 1px solid transparent; background: none; cursor: pointer; opacity: .6; }
.gallery-thumbs button.active { opacity: 1; border-color: var(--ink-black); }
.gallery-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.gallery-dots { position: absolute; left: 0; right: 0; bottom: 12px; display: flex; justify-content: center; gap: 6px; pointer-events: none; }
.modal-details { padding: 22px var(--gutter) calc(32px + env(safe-area-inset-bottom)); }
.modal-cat { font-size: 13px; color: var(--taupe-brown); }
.modal-title { font-family: var(--font-serif); font-weight: 500; font-size: clamp(28px, 7vw, 38px); line-height: 1.1; margin: 4px 0 6px; }
.modal-price { font-size: 18px; font-weight: 500; margin-bottom: 18px; }
.opt-group { margin-bottom: 18px; }
.opt-label { font-size: 13px; color: var(--ink-muted); margin-bottom: 10px; }
.opt-label strong { color: var(--ink-black); font-weight: 500; }
.size-selector { display: flex; flex-wrap: wrap; gap: 8px; }
.size-btn {
  min-width: 56px; min-height: 46px; padding: 0 14px; border: 1px solid var(--ink-black); background: transparent;
  font-size: 13px; cursor: pointer; transition: background-color .2s ease, color .2s ease;
}
.size-btn:hover { background: var(--bg-sand); }
.size-btn.selected, .size-btn.selected:hover { background: var(--ink-black); color: var(--bg-ivory); }
.size-btn:disabled { border-color: var(--border-subtle); color: #B5ADA4; text-decoration: line-through; cursor: not-allowed; background: transparent; }
.stock-indicator { font-size: 12px; color: var(--taupe-brown); margin-top: 8px; min-height: 18px; }
.qty-control { display: inline-flex; align-items: center; border: 1px solid var(--ink-black); }
.qty-control button { width: 46px; height: 46px; background: none; border: 0; font-size: 18px; cursor: pointer; }
.qty-control span { min-width: 40px; text-align: center; font-size: 14px; }
.form-notice { display: none; font-size: 13px; color: var(--danger); margin: -6px 0 14px; }
.form-notice.show { display: block; }
.modal-actions { display: grid; gap: 10px; }
.modal-desc { margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--border-subtle); }
.modal-desc h3 { font-size: 13px; font-weight: 500; margin-bottom: 6px; }
.modal-desc p { font-family: var(--font-serif); font-size: 18px; line-height: 1.5; color: var(--ink-muted); }
.modal-help { font-size: 12px; color: var(--ink-muted); margin-top: 14px; }

/* ---------- Bolsa ---------- */
.cart-drawer-backdrop {
  position: fixed; inset: 0; z-index: 70; background: rgba(18,17,16,.55);
  display: flex; justify-content: flex-end; opacity: 0; visibility: hidden; transition: opacity .25s ease, visibility .25s;
}
.cart-drawer-backdrop.open { opacity: 1; visibility: visible; }
.cart-drawer {
  width: 100%; max-width: 440px; height: 100%; background: var(--bg-ivory);
  display: flex; flex-direction: column; transform: translateX(100%); transition: transform .35s var(--ease);
}
.cart-drawer-backdrop.open .cart-drawer { transform: none; }
.cart-header { padding: calc(10px + env(safe-area-inset-top)) 12px 10px 20px; border-bottom: 1px solid var(--border-subtle); display: flex; justify-content: space-between; align-items: center; }
.cart-header h2 { font-family: var(--font-serif); font-size: 26px; font-weight: 500; }
.cart-items { flex: 1; overflow-y: auto; padding: 18px 20px; }
.cart-empty { text-align: center; color: var(--ink-muted); margin-top: 48px; font-size: 14px; }
.cart-empty .btn { margin-top: 18px; }
.cart-item { display: grid; grid-template-columns: 76px 1fr; gap: 14px; padding-bottom: 16px; margin-bottom: 16px; border-bottom: 1px solid var(--border-subtle); }
.cart-thumb { position: relative; width: 76px; aspect-ratio: 3 / 4; border-radius: var(--radius-img); overflow: hidden; background: var(--bg-sand); }
.cart-thumb img { width: 100%; height: 100%; object-fit: cover; }
.cart-thumb .ph { font-size: 0; padding: 0; } .cart-thumb .ph-mark { font-size: 20px; }
.cart-item-name { font-family: var(--font-serif); font-size: 18px; line-height: 1.2; }
.cart-item-meta { font-size: 12px; color: var(--taupe-brown); margin: 3px 0; }
.cart-item-unit { font-size: 12px; color: var(--ink-muted); }
.cart-item-row { display: flex; align-items: center; gap: 10px; margin-top: 8px; }
.cart-qty { display: inline-flex; align-items: center; border: 1px solid var(--border-subtle); }
.cart-qty button { width: 36px; height: 36px; background: #fff; border: 0; cursor: pointer; font-size: 16px; }
.cart-qty button:disabled { color: #C9C2B8; cursor: not-allowed; }
.cart-qty span { min-width: 30px; text-align: center; font-size: 13px; }
.cart-item-sub { margin-left: auto; font-size: 14px; font-weight: 500; }
.cart-remove { background: none; border: 0; font-size: 12px; color: var(--danger); cursor: pointer; padding: 6px 0; text-decoration: underline; }
.cart-footer { padding: 18px 20px calc(18px + env(safe-area-inset-bottom)); background: var(--bg-sand); border-top: 1px solid var(--border-subtle); }
.cart-total-row { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 14px; font-size: 15px; }
.cart-total-row strong { font-size: 20px; font-weight: 600; }
.cart-wa-note { font-size: 11.5px; line-height: 1.5; color: var(--ink-muted); margin-top: 12px; text-align: center; }
.wa-sent-box { display: none; padding: 20px 20px calc(20px + env(safe-area-inset-bottom)); background: var(--bg-sand); border-top: 1px solid var(--border-subtle); }
.wa-sent-box.show { display: grid; gap: 10px; }
.wa-sent-title { font-family: var(--font-serif); font-size: 22px; }
.wa-sent-box p { font-size: 13px; color: var(--ink-muted); line-height: 1.55; }
.wa-sent-box p strong { color: var(--ink-black); }

/* Aviso breve */
.toast {
  position: fixed; left: 50%; bottom: calc(20px + env(safe-area-inset-bottom)); z-index: 90;
  transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  background: var(--ink-black); color: var(--bg-ivory); padding: 12px 20px; font-size: 13px; transition: opacity .25s ease, transform .25s ease;
  max-width: calc(100vw - 32px);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ==========================================================
   480 px — teléfonos grandes
   ========================================================== */
@media (min-width: 480px) {
  :root { --gutter: 20px; }
  .products-grid { gap: 36px 16px; }
  .pcard-name { font-size: 19px; }
  .hero-cta-group { flex-direction: row; justify-content: center; max-width: none; }
}

/* ==========================================================
   768 px — tablets e iPad vertical
   ========================================================== */
@media (min-width: 768px) {
  :root { --gutter: 32px; --header-h: 92px; }
  .cart-label { display: inline; }
  .nav-ig { display: inline-flex; }

  .hero { height: min(78vh, 820px); aspect-ratio: auto; }
  .hero-img { object-position: 50% 25%; }
  .hero-copy { padding-bottom: 56px; }

  .section { padding: 80px var(--gutter); }
  .section-head { margin-bottom: 40px; }
  .products-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px 22px; }
  .products-grid--featured { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .brand-story { padding: 88px var(--gutter); grid-template-columns: 1fr 1fr; align-items: center; gap: 56px; }
  .brand-story-media { margin: 0; }
  .brand-story-copy { margin: 0; }

  .catalog-toolbar { flex-direction: row; align-items: center; justify-content: space-between; }
  .category-tabs { flex-wrap: wrap; overflow: visible; margin: 0; padding: 0; }
  .view-toggle { flex: 0 0 auto; }

  .social-box { padding-bottom: 80px; }
  .social-box-inner { padding: 60px 40px; }
  .contact { padding: 72px var(--gutter); }
  .contact-inner { grid-template-columns: 1fr 1fr; gap: 64px; }
  .contact-inner--single { grid-template-columns: 1fr; }

  /* Vista ampliada en tablet: ventana centrada */
  .modal-backdrop { align-items: center; padding: 24px; }
  .product-modal { height: auto; max-height: calc(100vh - 48px); max-width: 720px; }
  .modal-close { position: absolute; top: 12px; right: 12px; }
  .modal-details { padding: 28px 32px 32px; }
}

/* ==========================================================
   1024 px — laptops, iPad horizontal y escritorio
   ========================================================== */
@media (min-width: 1024px) {
  :root { --gutter: 40px; --header-h: 104px; }
  .menu-trigger { display: none; }
  .nav-links { display: flex; gap: 30px; }
  .nav-links a { text-decoration: none; font-size: 14px; padding: 6px 0; border-bottom: 1px solid transparent; transition: border-color .2s ease; }
  .nav-links a:hover, .nav-links a.active { border-bottom-color: var(--ink-black); }

  .hero { height: min(86vh, 900px); }
  .hero-copy { padding-bottom: 72px; }

  .products-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 56px 24px; }
  .products-grid--featured { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .pcard-name { font-size: 20px; }

  .brand-story { grid-template-columns: 1.1fr 1fr; padding: 110px max(var(--gutter), calc((100vw - var(--maxw)) / 2 + var(--gutter))); gap: 88px; }
  .brand-story-media { max-width: 600px; }

  /* Vista ampliada en computadora: dos columnas */
  .product-modal { max-width: 1080px; display: grid; grid-template-columns: 1.05fr 1fr; overflow: hidden; height: min(820px, calc(100vh - 48px)); }
  .modal-gallery { display: grid; grid-template-columns: 72px 1fr; grid-template-areas: "thumbs track"; height: 100%; min-height: 0; }
  .gallery-track { grid-area: track; height: 100%; }
  .gallery-slide { aspect-ratio: auto; height: 100%; }
  .gallery-slide img { cursor: zoom-in; }
  .gallery-thumbs { grid-area: thumbs; flex-direction: column; padding: 12px 8px; overflow-y: auto; }
  .gallery-thumbs button { width: 56px; }
  .modal-details { overflow-y: auto; padding: 48px 44px 40px; }
}

/* ==========================================================
   1440 px — monitores grandes
   ========================================================== */
@media (min-width: 1440px) {
  :root { --maxw: 1400px; }
  .products-grid { gap: 64px 28px; }
  .hero-copy { padding-bottom: 88px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .marquee-content { animation: none !important; }
}

/* Galería sin miniaturas: la foto ocupa todo el ancho */
@media (min-width: 1024px) {
  .modal-gallery:has(.gallery-thumbs[hidden]) { grid-template-columns: 1fr; grid-template-areas: "track"; }
  .gallery-slide img { object-fit: contain; }
}
