/* =====================================================================
   ROSE AIMÉE · Hoja de estilos
   Paleta tomada del catálogo original: rosados empolvados, blanco cálido,
   champagne y detalles dorados, con malva para los trazos botánicos.
   ===================================================================== */
:root {
  --cream: #FDF8F4;
  --cream-2: #FAF1EA;
  --blush-50: #FDF0F1;
  --blush-100: #FBE3E7;
  --blush-200: #F6CFD7;
  --rose-300: #EBB0BC;
  --rose-400: #DB8C9B;
  --rose-500: #C9707F;
  --rose-600: #A9566A;
  --mauve: #8E6070;
  --ink: #3D2A31;
  --ink-2: #6E5960;
  --line: #EEDCD6;
  --gold: #C9A46A;
  --gold-soft: #E9D3A6;
  --champagne: #F3E6D3;
  --sage: #8FA88B;
  --wa: #1FA855;
  --danger: #B4475A;

  --serif: 'Cormorant Garamond', 'Times New Roman', Georgia, serif;
  --sans: 'Jost', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --script: 'Great Vibes', 'Segoe Script', cursive;

  --r-sm: 10px; --r: 18px; --r-lg: 28px;
  --shadow: 0 12px 30px -14px rgba(169, 86, 106, .35);
  --shadow-lg: 0 24px 60px -24px rgba(110, 50, 66, .35);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --wrap: 1200px;
  --header-h: 108px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 8px); -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--sans); font-weight: 400; color: var(--ink); background: var(--cream); line-height: 1.6; font-size: 16px; overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
svg { width: 1.25em; height: 1.25em; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
:focus-visible { outline: 2px solid var(--rose-500); outline-offset: 3px; border-radius: 6px; }
[hidden] { display: none !important; }
.wrap { width: min(var(--wrap), 100% - 2.5rem); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: #fff; padding: .6rem 1rem; z-index: 200; }
.skip:focus { left: 1rem; }
.center { text-align: center; justify-content: center; }

h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.1; margin: 0 0 .5rem; color: var(--ink); }
h2 { font-size: clamp(2rem, 3.6vw, 2.9rem); }
h3 { font-size: 1.35rem; }
p { margin: 0 0 1rem; }
.eyebrow { font-size: .78rem; letter-spacing: .24em; text-transform: uppercase; color: var(--rose-600); font-weight: 500; margin-bottom: .6rem; }
.sub { color: var(--ink-2); max-width: 46ch; }
.fine { font-size: .82rem; color: var(--ink-2); }
.script, .script-inline { font-family: var(--script); font-weight: 400; color: var(--rose-500); }
.script-inline { font-size: 1.25em; line-height: 1; }

/* ---------- Botones ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .55rem; padding: .95rem 1.6rem; border-radius: 999px; font-weight: 500; letter-spacing: .02em; transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s; white-space: nowrap; }
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: linear-gradient(135deg, var(--rose-500), var(--rose-600)); color: #fff; box-shadow: var(--shadow); }
.btn-primary:hover { box-shadow: 0 18px 34px -14px rgba(169, 86, 106, .55); }
.btn-ghost { border: 1px solid var(--rose-300); color: var(--rose-600); background: rgba(255, 255, 255, .6); }
.btn-ghost:hover { background: #fff; }
.btn-wa { width: 100%; background: var(--wa); color: #fff; box-shadow: 0 14px 28px -16px rgba(31, 168, 85, .7); }
.btn-wa svg { fill: rgba(255, 255, 255, .25); }
.btn[disabled] { opacity: .5; pointer-events: none; }
.icon-btn { width: 44px; height: 44px; display: inline-grid; place-items: center; border-radius: 50%; color: var(--ink); transition: background .2s; position: relative; }
.icon-btn:hover { background: var(--blush-100); }
.icon-btn svg { width: 22px; height: 22px; }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.chip { padding: .5rem .95rem; border-radius: 999px; border: 1px solid var(--line); background: #fff; font-size: .9rem; color: var(--ink); transition: all .2s; }
.chip:hover, .chip.is-active { border-color: var(--rose-400); background: var(--blush-50); color: var(--rose-600); }
.chip.is-active { background: var(--rose-500); color: #fff; border-color: var(--rose-500); }
.link-arrow { color: var(--rose-600); font-weight: 500; border-bottom: 1px solid var(--rose-300); padding-bottom: 2px; }
.link-arrow::after { content: ' →'; }

/* ---------- Encabezado ---------- */
.topbar { position: sticky; top: 0; z-index: 50; background: rgba(253, 248, 244, .88); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid rgba(238, 220, 214, .7); }
.announce { display: flex; gap: .8rem; justify-content: center; align-items: center; font-size: .78rem; letter-spacing: .06em; padding: .45rem 1rem; background: linear-gradient(90deg, var(--blush-200), var(--champagne), var(--blush-200)); color: var(--ink); }
.announce .dot { color: var(--gold); }
.nav { display: flex; align-items: center; gap: 1rem; height: 74px; }
.logo { display: flex; flex-direction: column; line-height: 1; margin-right: auto; }
.logo-script { font-family: var(--script); font-size: 2.15rem; color: var(--rose-500); line-height: .95; }
.logo-tag { font-size: .66rem; letter-spacing: .26em; text-transform: uppercase; color: var(--mauve); margin-top: .2rem; padding-left: .2rem; }
.menu { list-style: none; display: flex; gap: 1.8rem; margin: 0; padding: 0; }
.menu a { font-size: .92rem; letter-spacing: .04em; position: relative; padding: .4rem 0; }
.menu a::after { content: ''; position: absolute; left: 0; right: 100%; bottom: 0; height: 1px; background: var(--rose-500); transition: right .3s var(--ease); }
.menu a:hover::after { right: 0; }
.nav-actions { display: flex; gap: .2rem; margin-left: 1rem; }
.menu-btn { display: none; }
.badge { position: absolute; top: 4px; right: 2px; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 999px; background: var(--rose-600); color: #fff; font-size: .7rem; font-weight: 600; display: grid; place-items: center; }
.badge.bump { animation: bump .45s var(--ease); }
@keyframes bump { 40% { transform: scale(1.35); } }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; background: radial-gradient(1200px 500px at 85% 10%, var(--blush-100), transparent 60%), radial-gradient(800px 500px at 0% 100%, var(--champagne), transparent 60%); }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 2rem; align-items: center; padding: clamp(2rem, 5vw, 4.5rem) 0 clamp(2rem, 4vw, 3.5rem); }
.hero h1 { display: flex; flex-direction: column; gap: .3rem; margin-bottom: 1.2rem; }
.hero h1 .script { font-size: clamp(3.6rem, 8vw, 6.4rem); line-height: .9; }
.hero .h1-line { font-family: var(--serif); font-size: clamp(1.7rem, 3.3vw, 2.6rem); font-style: italic; color: var(--mauve); letter-spacing: .01em; }
.lead { font-size: 1.1rem; color: var(--ink-2); max-width: 44ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: .8rem; margin: 1.6rem 0 1.8rem; }
.hero-cta svg { fill: currentColor; stroke: none; width: 1em; height: 1em; }
.hero-trust { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .5rem 1.4rem; font-size: .9rem; color: var(--ink-2); }
.hero-trust span { color: var(--gold); margin-right: .3rem; }
.hero-art img { width: 100%; max-width: 540px; margin-inline: auto; animation: float 7s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-10px); } }

/* ---------- Secciones ---------- */
.section { padding: clamp(3rem, 7vw, 5.5rem) 0; }
.section-head { margin-bottom: 2rem; }
.section-head.row { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; flex-wrap: wrap; }

/* Marcas */
.brands { background: #fff; }
.brand-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.4rem; }
.brand-card { position: relative; overflow: hidden; border-radius: var(--r-lg); padding: 2rem; min-height: 230px; display: flex; flex-direction: column; justify-content: flex-end; color: var(--ink); background: linear-gradient(145deg, var(--blush-100), var(--champagne)); border: 1px solid var(--line); transition: transform .35s var(--ease), box-shadow .35s var(--ease); text-align: left; }
.brand-card:nth-child(2) { background: linear-gradient(145deg, var(--cream-2), var(--blush-200)); }
.brand-card:nth-child(3) { background: linear-gradient(145deg, #fff, var(--blush-100)); }
.brand-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.brand-card .bc-name { font-family: var(--serif); font-size: 2.6rem; letter-spacing: .08em; text-transform: uppercase; line-height: 1; }
.brand-card .bc-meta { color: var(--ink-2); font-size: .92rem; margin: .4rem 0 1rem; }
.brand-card .bc-go { color: var(--rose-600); font-weight: 500; }
.brand-card .bc-thumbs { position: absolute; top: 1.2rem; right: 1.2rem; display: flex; }
.brand-card .bc-thumbs img { width: 74px; height: 74px; object-fit: contain; border-radius: 50%; background: #fff; border: 3px solid #fff; margin-left: -18px; box-shadow: 0 6px 16px -8px rgba(0, 0, 0, .25); }
.brand-card .bc-badge { position: absolute; top: 1.4rem; left: 1.6rem; font-size: .7rem; letter-spacing: .2em; text-transform: uppercase; color: var(--mauve); }

/* Tipos */
.types-sec { padding-top: 0; background: #fff; }
.type-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 1rem; }
.type-tile { display: flex; flex-direction: column; align-items: center; gap: .6rem; padding: 1.2rem .8rem; border-radius: var(--r); background: var(--cream); border: 1px solid var(--line); transition: all .25s var(--ease); text-align: center; }
.type-tile:hover { background: var(--blush-50); border-color: var(--rose-300); transform: translateY(-3px); }
.type-tile .tt-img { width: 78px; height: 78px; border-radius: 50%; background: #fff; display: grid; place-items: center; overflow: hidden; box-shadow: inset 0 0 0 1px var(--line); }
.type-tile .tt-img img { width: 100%; height: 100%; object-fit: contain; }
.type-tile strong { font-weight: 500; font-size: .95rem; line-height: 1.25; }
.type-tile small { color: var(--ink-2); font-size: .78rem; }

/* Estante horizontal */
.shelf-sec { background: linear-gradient(180deg, var(--cream), #fff); }
.shelf { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(220px, 1fr); gap: 1.2rem; overflow-x: auto; scroll-snap-type: x mandatory; padding: .3rem .1rem 1.2rem; scrollbar-width: thin; scrollbar-color: var(--rose-300) transparent; }
.shelf > * { scroll-snap-align: start; }

/* Banda Rose IA */
.ia-band { padding: clamp(2.5rem, 6vw, 4rem) 0; background: linear-gradient(120deg, var(--blush-200), var(--blush-100) 45%, var(--champagne)); position: relative; overflow: hidden; }
.ia-band::before { content: ''; position: absolute; inset: auto -80px -120px auto; width: 380px; height: 380px; border-radius: 50%; border: 1px solid rgba(201, 164, 106, .5); }
.ia-band-grid { display: grid; grid-template-columns: auto 1fr; gap: 2rem; align-items: center; max-width: 900px; }
.ia-band h2 { font-size: clamp(2rem, 4vw, 2.8rem); }
.ia-band p { color: var(--ink-2); }
.ia-avatar-lg img { width: 130px; height: 130px; filter: drop-shadow(0 16px 24px rgba(169, 86, 106, .3)); }

/* ---------- Catálogo ---------- */
.catalog { background: #fff; }
.brand-tabs { display: flex; gap: .4rem; flex-wrap: wrap; border-bottom: 1px solid var(--line); margin-bottom: 1.2rem; }
.brand-tab { padding: .8rem 1.2rem; font-family: var(--serif); font-size: 1.25rem; letter-spacing: .06em; color: var(--ink-2); border-bottom: 2px solid transparent; margin-bottom: -1px; transition: color .2s; }
.brand-tab small { font-family: var(--sans); font-size: .72rem; color: var(--ink-2); margin-left: .3rem; letter-spacing: 0; }
.brand-tab[aria-selected="true"] { color: var(--rose-600); border-color: var(--rose-500); }
.toolbar { display: grid; grid-template-columns: 1fr auto auto auto; gap: .7rem; align-items: center; }
.search { display: flex; align-items: center; gap: .6rem; padding: 0 1rem; border-radius: 999px; border: 1px solid var(--line); background: var(--cream); height: 48px; }
.search:focus-within { border-color: var(--rose-400); background: #fff; }
.search svg { color: var(--ink-2); flex: none; }
.search input { border: 0; outline: 0; background: transparent; width: 100%; height: 100%; }
.toolbar select { height: 48px; border-radius: 999px; border: 1px solid var(--line); background: #fff; padding: 0 2.2rem 0 1rem; appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23A9566A' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right .8rem center; background-size: 16px; max-width: 230px; }
.toggle { display: inline-flex; align-items: center; gap: .5rem; font-size: .9rem; cursor: pointer; user-select: none; white-space: nowrap; }
.toggle input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.toggle .track { width: 40px; height: 22px; border-radius: 999px; background: var(--line); position: relative; transition: background .2s; }
.toggle .track::after { content: ''; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .2); transition: transform .2s var(--ease); }
.toggle input:checked + .track { background: var(--rose-500); }
.toggle input:checked + .track::after { transform: translateX(18px); }
.toggle input:focus-visible + .track { outline: 2px solid var(--rose-500); outline-offset: 2px; }
.type-chips { display: flex; gap: .45rem; overflow-x: auto; padding: 1rem 0 .4rem; scrollbar-width: none; }
.type-chips::-webkit-scrollbar { display: none; }
.type-chips .chip { white-space: nowrap; }
.cat-meta { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; margin: .6rem 0 1.2rem; font-size: .9rem; color: var(--ink-2); }
.cat-meta p { margin: 0; }
.sync { display: inline-flex; align-items: center; gap: .5rem; font-size: .8rem; }
.sync-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--sage); box-shadow: 0 0 0 3px rgba(143, 168, 139, .2); }
.sync.is-warn .sync-dot { background: var(--gold); box-shadow: 0 0 0 3px rgba(201, 164, 106, .25); }
.sync.is-loading .sync-dot { animation: pulse 1s infinite; }
@keyframes pulse { 50% { opacity: .3; } }
.sync-btn { color: var(--rose-600); border-bottom: 1px solid var(--rose-300); font-size: .8rem; }
.notice { background: var(--champagne); border: 1px solid var(--gold-soft); color: var(--ink); padding: .8rem 1rem; border-radius: var(--r-sm); font-size: .9rem; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 1.4rem; }
.more { text-align: center; margin-top: 2rem; }
.empty { text-align: center; padding: 3rem 1rem; color: var(--ink-2); }
.empty img { margin: 0 auto 1rem; opacity: .8; }

/* Tarjeta de producto */
.card { position: relative; display: flex; flex-direction: column; background: #fff; border-radius: var(--r); border: 1px solid var(--line); overflow: hidden; transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--blush-200); }
.card-media { position: relative; aspect-ratio: 1; background: linear-gradient(160deg, #fff, var(--cream-2)); display: block; overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: contain; padding: 6%; transition: transform .5s var(--ease); mix-blend-mode: multiply; }
.card-media img.is-placeholder { padding: 0; mix-blend-mode: normal; object-fit: cover; }
.card:hover .card-media img { transform: scale(1.04); }
.tags { position: absolute; top: .7rem; left: .7rem; display: flex; flex-direction: column; gap: .35rem; align-items: flex-start; z-index: 1; }
.tag { font-size: .68rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; padding: .28rem .6rem; border-radius: 999px; background: #fff; color: var(--rose-600); box-shadow: 0 2px 8px -3px rgba(0, 0, 0, .15); }
.tag.new { background: var(--rose-500); color: #fff; }
.tag.fav { background: var(--gold); color: #fff; }
.tag.out { background: var(--ink); color: #fff; }
.tag.low { background: var(--champagne); color: var(--ink); }
.card.is-out .card-media img { filter: grayscale(.6); opacity: .55; }
.card-body { padding: 1rem 1.1rem 1.15rem; display: flex; flex-direction: column; gap: .3rem; flex: 1; }
.card-brand { font-size: .7rem; letter-spacing: .2em; text-transform: uppercase; color: var(--mauve); }
.card-title { font-family: var(--serif); font-size: 1.28rem; font-weight: 500; line-height: 1.15; margin: 0; }
.card-title a::after { content: ''; position: absolute; inset: 0; z-index: 0; }
.card-tones { font-size: .8rem; color: var(--ink-2); }
.card-foot { display: flex; align-items: center; justify-content: space-between; gap: .6rem; margin-top: auto; padding-top: .6rem; position: relative; z-index: 1; }
.price { font-weight: 600; font-size: 1.08rem; color: var(--ink); }
.price small { font-weight: 400; color: var(--ink-2); font-size: .75rem; margin-right: .2rem; }
.add-btn { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: var(--blush-100); color: var(--rose-600); transition: all .2s; flex: none; }
.add-btn:hover { background: var(--rose-500); color: #fff; }
.add-btn[disabled] { background: var(--line); color: #fff; cursor: not-allowed; }
.add-btn svg { width: 20px; height: 20px; }

/* ---------- Pasos ---------- */
.steps-sec { background: linear-gradient(180deg, #fff, var(--cream)); }
.steps { list-style: none; padding: 0; margin: 0 0 1.5rem; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.2rem; counter-reset: s; }
.steps li { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 1.6rem 1.4rem; position: relative; }
.step-n { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--blush-100); color: var(--rose-600); font-family: var(--serif); font-size: 1.4rem; margin-bottom: .8rem; }
.steps p { color: var(--ink-2); margin: 0; font-size: .95rem; }

/* ---------- Nosotras ---------- */
.about { background: var(--cream); }
.about-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.about-copy p { color: var(--ink-2); }
.slogan { margin: 1.4rem 0 0; font-size: 2.2rem; }
.team { display: flex; gap: 1rem; margin-top: 1.5rem; flex-wrap: wrap; }
.team figure { margin: 0; text-align: center; }
.team img { width: 120px; height: 120px; border-radius: 50%; object-fit: cover; border: 4px solid #fff; box-shadow: var(--shadow); }
.team figcaption { font-size: .85rem; margin-top: .4rem; }

/* ---------- Contacto ---------- */
.contact { background: #fff; }
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.2rem; }
.contact-card { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto auto; column-gap: 1rem; padding: 1.5rem; border-radius: var(--r); border: 1px solid var(--line); background: linear-gradient(160deg, #fff, var(--blush-50)); transition: transform .3s var(--ease), box-shadow .3s; }
.contact-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.cc-icon { grid-row: 1 / span 3; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; color: #fff; }
.cc-icon svg { width: 28px; height: 28px; }
.cc-icon.wa { background: var(--wa); } .cc-icon.wa svg path:last-child { fill: #fff; stroke: none; }
.cc-icon.ig { background: linear-gradient(135deg, #E9A86A, #D45D86 55%, #8E5AB8); }
.cc-icon.tt { background: var(--ink); }
.cc-label { font-size: .75rem; letter-spacing: .2em; text-transform: uppercase; color: var(--mauve); }
.cc-value { font-family: var(--serif); font-size: 1.35rem; }
.cc-cta { color: var(--rose-600); font-size: .9rem; font-weight: 500; }

/* ---------- Footer ---------- */
.footer { background: var(--ink); color: #F6E9E6; padding: 3rem 0 1.5rem; }
.footer-grid { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1.5rem; }
.footer-logo { color: var(--blush-200); font-size: 2.6rem; margin: 0; }
.footer-tag { font-size: .7rem; letter-spacing: .26em; text-transform: uppercase; color: var(--gold-soft); margin: 0; }
.footer nav { display: flex; gap: 1.4rem; flex-wrap: wrap; font-size: .92rem; }
.footer nav a:hover { color: var(--blush-200); }
.footer-social { display: flex; gap: .5rem; }
.footer-social a { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; border: 1px solid rgba(255, 255, 255, .2); }
.footer-social a:hover { background: rgba(255, 255, 255, .08); }
.footer-fine { border-top: 1px solid rgba(255, 255, 255, .12); margin-top: 2rem; padding-top: 1.2rem; font-size: .78rem; color: rgba(246, 233, 230, .7); }
.footer-fine p { margin: .2rem 0; }

/* ---------- Botones flotantes ---------- */
.fab-wa { position: fixed; left: 1.2rem; bottom: 1.2rem; z-index: 60; width: 58px; height: 58px; border-radius: 50%; background: var(--wa); color: #fff; display: grid; place-items: center; box-shadow: 0 14px 30px -10px rgba(31, 168, 85, .6); transition: transform .25s var(--ease); }
.fab-wa:hover { transform: scale(1.07); }
.fab-wa svg { width: 30px; height: 30px; }
.fab-wa svg .fill { fill: #fff; stroke: none; }
.fab-ia { position: fixed; right: 1.2rem; bottom: 1.2rem; z-index: 60; display: flex; align-items: center; gap: .5rem; padding: .35rem 1.1rem .35rem .35rem; border-radius: 999px; background: #fff; border: 1px solid var(--blush-200); box-shadow: var(--shadow-lg); transition: transform .25s var(--ease); }
.fab-ia:hover { transform: translateY(-2px); }
.fab-ia img { width: 46px; height: 46px; }
.fab-ia-label { font-family: var(--serif); font-size: 1.15rem; color: var(--rose-600); font-weight: 600; }
.fab-ia::after { content: ''; position: absolute; top: 4px; left: 38px; width: 12px; height: 12px; border-radius: 50%; background: var(--sage); border: 2px solid #fff; }
body.ia-open .fab-ia { opacity: 0; pointer-events: none; }

/* ---------- Panel Rose IA ---------- */
.ia-panel { position: fixed; right: 1.2rem; bottom: 1.2rem; z-index: 70; width: min(410px, calc(100vw - 2.4rem)); height: min(640px, calc(100vh - 2.4rem)); height: min(640px, calc(100dvh - 2.4rem)); display: flex; flex-direction: column; background: var(--cream); border-radius: 26px; overflow: hidden; box-shadow: 0 30px 80px -20px rgba(80, 30, 45, .45); border: 1px solid var(--blush-200); animation: pop .35s var(--ease); }
@keyframes pop { from { opacity: 0; transform: translateY(16px) scale(.98); } }
.ia-head { display: flex; align-items: center; gap: .7rem; padding: .9rem .7rem .9rem 1rem; background: linear-gradient(120deg, var(--blush-200), var(--champagne)); }
.ia-head > div { flex: 1; min-width: 0; }
.ia-title { font-family: var(--serif); font-size: 1.35rem; font-weight: 600; margin: 0; line-height: 1.1; }
.ia-sub { margin: 0; font-size: .72rem; color: var(--ink-2); }
.ia-head .icon-btn { width: 38px; height: 38px; }
.ia-log { flex: 1; overflow-y: auto; padding: 1rem; display: flex; flex-direction: column; gap: .8rem; background: radial-gradient(400px 300px at 100% 0, var(--blush-50), transparent 70%), var(--cream); scroll-behavior: smooth; }
.msg { max-width: 88%; padding: .75rem 1rem; border-radius: 18px; font-size: .93rem; line-height: 1.5; animation: pop .3s var(--ease); }
.msg p { margin: 0 0 .5rem; } .msg p:last-child { margin: 0; }
.msg.bot { background: #fff; border: 1px solid var(--line); border-bottom-left-radius: 6px; align-self: flex-start; }
.msg.user { background: linear-gradient(135deg, var(--rose-500), var(--rose-600)); color: #fff; border-bottom-right-radius: 6px; align-self: flex-end; }
.msg .chips { margin-top: .6rem; }
.msg .chip { font-size: .82rem; padding: .4rem .8rem; }
.msg ul { margin: .3rem 0 .5rem; padding-left: 1.1rem; }
.msg .fine { margin-top: .4rem; font-size: .75rem; }
.ia-cards { display: flex; flex-direction: column; gap: .5rem; margin-top: .6rem; }
.ia-card { display: grid; grid-template-columns: 56px 1fr auto; gap: .65rem; align-items: center; padding: .5rem; border-radius: 14px; background: var(--cream); border: 1px solid var(--line); }
.ia-card img { width: 56px; height: 56px; object-fit: contain; border-radius: 10px; background: #fff; mix-blend-mode: multiply; }
.ia-card img.is-placeholder { mix-blend-mode: normal; object-fit: cover; }
.ia-card b { display: block; font-weight: 500; font-size: .86rem; line-height: 1.25; }
.ia-card span { font-size: .78rem; color: var(--ink-2); }
.ia-card .ia-actions { display: flex; flex-direction: column; gap: .3rem; }
.ia-card .mini { font-size: .72rem; padding: .3rem .6rem; border-radius: 999px; border: 1px solid var(--rose-300); color: var(--rose-600); background: #fff; white-space: nowrap; }
.ia-card .mini.solid { background: var(--rose-500); border-color: var(--rose-500); color: #fff; }
.ia-card .mini[disabled] { opacity: .45; cursor: not-allowed; }
.ia-compare { width: 100%; border-collapse: collapse; font-size: .8rem; margin-top: .5rem; }
.ia-compare th, .ia-compare td { border-bottom: 1px solid var(--line); padding: .35rem .3rem; text-align: left; vertical-align: top; }
.ia-compare th { color: var(--mauve); font-weight: 500; width: 28%; }
.typing { display: inline-flex; gap: 4px; }
.typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--rose-400); animation: blink 1s infinite; }
.typing i:nth-child(2) { animation-delay: .15s; } .typing i:nth-child(3) { animation-delay: .3s; }
@keyframes blink { 50% { opacity: .25; transform: translateY(-2px); } }
.ia-form { display: flex; gap: .5rem; padding: .75rem; background: #fff; border-top: 1px solid var(--line); }
.ia-form input { flex: 1; border: 1px solid var(--line); border-radius: 999px; padding: 0 1rem; height: 46px; background: var(--cream); outline: 0; font-size: 16px; }
.ia-form input:focus { border-color: var(--rose-400); background: #fff; }
.ia-send { width: 46px; height: 46px; border-radius: 50%; background: var(--rose-500); color: #fff; display: grid; place-items: center; }

/* ---------- Carrito ---------- */
.scrim { position: fixed; inset: 0; background: rgba(61, 42, 49, .35); z-index: 80; animation: fade .25s; backdrop-filter: blur(2px); }
@keyframes fade { from { opacity: 0; } }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; z-index: 90; width: min(440px, 100vw); background: var(--cream); display: flex; flex-direction: column; box-shadow: var(--shadow-lg); animation: slide .35s var(--ease); }
@keyframes slide { from { transform: translateX(100%); } }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 1.1rem 1.2rem; border-bottom: 1px solid var(--line); background: #fff; }
.drawer-head h2 { font-size: 1.7rem; margin: 0; }
.drawer-body { flex: 1; overflow-y: auto; padding: 1rem 1.2rem; }
.drawer-foot { border-top: 1px solid var(--line); padding: 1rem 1.2rem 1.2rem; background: #fff; display: flex; flex-direction: column; gap: .8rem; }
.drawer-foot .fine { margin: 0; }
.total-row { display: flex; justify-content: space-between; align-items: baseline; font-size: 1.05rem; }
.total-row strong { font-family: var(--serif); font-size: 1.8rem; font-weight: 600; }
.note-field { display: flex; flex-direction: column; gap: .3rem; font-size: .8rem; color: var(--ink-2); }
.note-field textarea { border: 1px solid var(--line); border-radius: 12px; padding: .6rem .8rem; resize: vertical; background: var(--cream); font-size: 16px; }
.line { display: grid; grid-template-columns: 72px 1fr; gap: .9rem; padding: .9rem 0; border-bottom: 1px dashed var(--line); }
.line img { width: 72px; height: 72px; object-fit: contain; background: #fff; border-radius: 12px; border: 1px solid var(--line); mix-blend-mode: multiply; }
.line img.is-placeholder { object-fit: cover; mix-blend-mode: normal; }
.line-top { display: flex; justify-content: space-between; gap: .5rem; }
.line-name { font-weight: 500; line-height: 1.25; font-size: .95rem; }
.line-meta { font-size: .78rem; color: var(--ink-2); }
.line-rm { color: var(--ink-2); font-size: .75rem; border-bottom: 1px solid var(--line); align-self: flex-start; }
.line-rm:hover { color: var(--danger); }
.line-bottom { display: flex; align-items: center; justify-content: space-between; margin-top: .5rem; }
.line-sub { font-weight: 600; }
.line-warn { font-size: .75rem; color: var(--danger); margin-top: .3rem; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; background: #fff; }
.qty button { width: 34px; height: 34px; display: grid; place-items: center; font-size: 1.1rem; color: var(--rose-600); }
.qty button[disabled] { color: var(--line); cursor: not-allowed; }
.qty output { min-width: 28px; text-align: center; font-weight: 500; }
.cart-empty { text-align: center; padding: 3rem 1rem; color: var(--ink-2); }
.cart-empty img { margin: 0 auto 1rem; }

/* ---------- Vista de producto ---------- */
.product-dialog { width: min(980px, calc(100vw - 2rem)); max-height: calc(100vh - 2rem); padding: 0; border: 0; border-radius: var(--r-lg); background: #fff; box-shadow: var(--shadow-lg); overflow: auto; }
.product-dialog::backdrop { background: rgba(61, 42, 49, .45); backdrop-filter: blur(3px); }
.product-dialog[open] { animation: pop .35s var(--ease); }
.pd-close { position: absolute; top: .8rem; right: .8rem; z-index: 2; background: rgba(255, 255, 255, .9); }
.pd { display: grid; grid-template-columns: 1fr 1fr; }
.pd-media { background: linear-gradient(160deg, #fff, var(--blush-50)); padding: 2rem; display: flex; flex-direction: column; gap: 1rem; }
.pd-main { aspect-ratio: 1; display: grid; place-items: center; }
.pd-main img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.pd-main img.is-placeholder { mix-blend-mode: normal; object-fit: cover; border-radius: var(--r); }
.pd-thumbs { display: flex; gap: .5rem; flex-wrap: wrap; }
.pd-thumbs button { width: 58px; height: 58px; border-radius: 12px; border: 1px solid var(--line); background: #fff; overflow: hidden; }
.pd-thumbs button[aria-current="true"] { border-color: var(--rose-500); box-shadow: 0 0 0 2px var(--blush-200); }
.pd-thumbs img { width: 100%; height: 100%; object-fit: contain; }
.pd-credit { font-size: .72rem; color: var(--ink-2); margin: 0; }
.pd-credit a { border-bottom: 1px solid var(--line); }
.pd-info { padding: 2.4rem 2rem 2rem; display: flex; flex-direction: column; gap: .9rem; }
.pd-info h2 { font-size: clamp(1.8rem, 3vw, 2.4rem); margin: 0; }
.pd-price { font-size: 1.6rem; font-family: var(--serif); font-weight: 600; }
.pd-stock { font-size: .88rem; display: inline-flex; align-items: center; gap: .4rem; }
.pd-stock::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--sage); }
.pd-stock.low::before { background: var(--gold); }
.pd-stock.out::before { background: var(--danger); }
.pd-desc { color: var(--ink-2); font-size: .95rem; }
.pd-label { font-size: .75rem; letter-spacing: .18em; text-transform: uppercase; color: var(--mauve); margin: 0 0 .4rem; }
.tones { display: flex; flex-wrap: wrap; gap: .45rem; }
.tone { padding: .45rem .8rem; border-radius: 12px; border: 1px solid var(--line); background: #fff; font-size: .85rem; display: flex; flex-direction: column; align-items: flex-start; line-height: 1.2; min-width: 64px; }
.tone small { font-size: .68rem; color: var(--ink-2); }
.tone[aria-pressed="true"] { border-color: var(--rose-500); background: var(--blush-50); box-shadow: 0 0 0 1px var(--rose-500) inset; }
.tone.is-out { color: var(--ink-2); text-decoration: line-through; opacity: .65; }
.pd-buy { display: flex; gap: .7rem; align-items: center; flex-wrap: wrap; }
.pd-buy .btn { flex: 1; }
.pd-ask { font-size: .88rem; color: var(--wa); display: inline-flex; align-items: center; gap: .4rem; }
.pd-ask svg { width: 18px; height: 18px; }

/* ---------- Toast ---------- */
.toast { position: fixed; left: 50%; bottom: 6rem; transform: translateX(-50%); z-index: 100; background: var(--ink); color: #fff; padding: .8rem 1.2rem; border-radius: 999px; font-size: .9rem; box-shadow: var(--shadow-lg); animation: pop .3s var(--ease); display: flex; gap: .8rem; align-items: center; max-width: calc(100vw - 2rem); }
.toast button { color: var(--blush-200); font-weight: 500; border-bottom: 1px solid currentColor; }

/* ---------- Animación al aparecer ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
.noscript { padding: 1rem; text-align: center; background: var(--champagne); }

/* Esqueleto de carga */
.skeleton { border-radius: var(--r); background: linear-gradient(90deg, var(--cream-2), var(--blush-50), var(--cream-2)); background-size: 200% 100%; animation: shimmer 1.4s infinite; aspect-ratio: .78; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* ---------- Responsive ---------- */
@media (max-width: 1020px) {
  .menu { position: fixed; inset: var(--header-h) 0 auto 0; flex-direction: column; gap: 0; background: var(--cream); padding: .5rem 1.25rem 1.2rem; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); transform: translateY(-8px); opacity: 0; pointer-events: none; transition: all .25s var(--ease); }
  .menu.is-open { transform: none; opacity: 1; pointer-events: auto; }
  .menu a { display: block; padding: .9rem 0; border-bottom: 1px solid var(--line); font-size: 1.05rem; }
  .menu-btn { display: inline-grid; }
  .logo { margin: 0 auto; align-items: center; }
  .nav-actions { margin-left: 0; }
  .toolbar { grid-template-columns: 1fr 1fr; }
  .search { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  :root { --header-h: 98px; }
  body { font-size: 15.5px; }
  .announce span:nth-child(n+2) { display: none; }
  .nav { height: 66px; }
  .logo-script { font-size: 1.85rem; }
  .hero-grid { grid-template-columns: 1fr; text-align: center; padding-top: 1.5rem; }
  .hero-copy { order: 2; }
  .hero-art { order: 1; max-width: 330px; margin: 0 auto -1rem; }
  .lead { margin-inline: auto; }
  .hero-cta, .hero-trust { justify-content: center; }
  .hero-cta .btn { flex: 1 1 100%; }
  .ia-band-grid { grid-template-columns: 1fr; text-align: center; }
  .ia-avatar-lg img { margin: 0 auto; width: 96px; height: 96px; }
  .ia-band .chips { justify-content: center; }
  .about-grid { grid-template-columns: 1fr; }
  .about-art { max-width: 300px; margin: 0 auto; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .8rem; }
  .card-body { padding: .75rem .8rem .9rem; }
  .card-title { font-size: 1.08rem; }
  .price { font-size: .98rem; }
  .add-btn { width: 38px; height: 38px; }
  .toolbar { grid-template-columns: 1fr 1fr; }
  .toolbar select { max-width: none; width: 100%; }
  .toggle { grid-column: 1 / -1; }
  .brand-tab { font-size: 1.05rem; padding: .7rem .8rem; }
  .shelf { grid-auto-columns: 62%; }
  .pd { grid-template-columns: 1fr; }
  .pd-media { padding: 1.2rem; }
  .pd-main { max-height: 52vh; }
  .pd-info { padding: 1.4rem 1.2rem 1.6rem; }
  .product-dialog { width: 100vw; max-width: 100vw; max-height: 100dvh; height: 100dvh; border-radius: 0; margin: 0; }
  .ia-panel { inset: 0; width: 100vw; height: 100dvh; border-radius: 0; border: 0; }
  .fab-ia { right: .9rem; bottom: .9rem; padding-right: .9rem; }
  .fab-ia img { width: 42px; height: 42px; }
  .fab-wa { left: .9rem; bottom: .9rem; width: 54px; height: 54px; }
  .type-grid { grid-template-columns: repeat(3, 1fr); gap: .6rem; }
  .type-tile { padding: .9rem .4rem; }
  .type-tile .tt-img { width: 62px; height: 62px; }
  .type-tile strong { font-size: .82rem; }
  .brand-card { min-height: 190px; padding: 1.5rem; }
  .brand-card .bc-name { font-size: 2.1rem; }
  .brand-card .bc-thumbs img { width: 58px; height: 58px; }
  .footer-grid { flex-direction: column; text-align: center; }
  .footer nav { justify-content: center; }
  .toast { bottom: 5.5rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
.pd-tag { align-self: flex-start; }
.qty button.is-max { color: var(--line); }
@media (max-width: 760px) {
  .hero-art { max-width: 230px; margin-bottom: -.5rem; }
  .hero h1 .script { font-size: 3.4rem; }
  .pd-main { max-height: 38vh; }
  .toast { top: calc(var(--header-h) + .6rem); bottom: auto; border-radius: 16px; width: max-content; max-width: calc(100vw - 2rem); }
  .ia-card { grid-template-columns: 48px 1fr auto; }
  .ia-card img { width: 48px; height: 48px; }
}
@media (max-width: 760px) {
  .hero-copy { order: 1; }
  .hero-art { order: 2; max-width: 210px; margin: 0 auto; }
  .pd-main { aspect-ratio: auto; height: 36vh; max-height: none; }
  .pd-main img { height: 100%; }
}
.pd-main { overflow: hidden; min-height: 0; }
.pd-main img, .pd-main img.is-placeholder { width: 100%; height: 100%; object-fit: contain; }
.pd-main { display: flex; align-items: center; justify-content: center; }
.pd-main img, .pd-main img.is-placeholder { max-height: 100%; max-width: 100%; height: auto; width: auto; }
@media (min-width: 761px) { .pd-main img { width: 100%; } }
