:root {
  /* Tema celeste claro. Las variables --gold* son el color de acento (se mantiene el nombre). */
  --ink: #12324a;
  --ink-2: #1b4462;
  --ink-3: #2a4a63;
  --ivory: #eef6fb;
  --ivory-2: #dcecf6;
  --paper: #ffffff;
  --sand: #c3dcec;
  --muted: #5f7a8c;
  --gold: #7fbfe4;
  --gold-2: #cde9f8;
  --gold-3: #2f7fae;
  --gold-grad: linear-gradient(135deg, #8ccbef 0%, #dff2fd 38%, #a9d8f3 62%, #eaf7fe 82%, #86c3e6 100%);
  --masc: #2f5f78;
  --fem: #a24c78;
  --serif: "Cormorant Garamond", "Times New Roman", serif;
  --sans: "Jost", "Segoe UI", system-ui, sans-serif;
  --radius: 14px;
  --shadow: 0 10px 30px -12px rgba(18, 50, 74, .25);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 140px; }
body { margin: 0; background: var(--ivory); color: var(--ink); font-family: var(--sans); line-height: 1.55; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
[hidden] { display: none !important; }

.eyebrow { text-transform: uppercase; letter-spacing: .32em; font-size: .72rem; font-weight: 500; color: var(--gold-3); margin: 0 0 .5rem; }

/* ---------- Anuncios ---------- */
.announce {
  background: linear-gradient(90deg, #cfe8f7, #e9f6fd 50%, #cfe8f7); color: var(--ink);
  border-bottom: 1px solid var(--gold); box-shadow: 0 4px 0 var(--ivory);
  font-size: .7rem; letter-spacing: .2em; text-transform: uppercase; font-weight: 500; overflow: hidden;
  position: relative; z-index: 41;
}
.announce-track { display: flex; width: max-content; padding: .55rem 0; white-space: nowrap; animation: ticker 32s linear infinite; }
.announce-track span { padding: 0 2.2rem; }
.announce:hover .announce-track { animation-play-state: paused; }
@keyframes ticker { to { transform: translateX(-50%); } }

/* ---------- Topbar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 40;
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: .6rem 1.5rem;
  padding: .8rem clamp(16px, 4vw, 48px) 0; margin-top: 4px;
  background: var(--ink); color: var(--ivory);
  border-bottom: 1px solid rgba(127, 191, 228, .25);
}
.brandmark { display: flex; align-items: center; gap: .6rem; text-decoration: none; }
.brandmark img { width: 34px; height: 38px; object-fit: contain; }
.brandmark span { font-family: var(--serif); font-size: 1.6rem; letter-spacing: .28em; font-weight: 500; background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.top-search { margin: 0; justify-self: center; width: min(520px, 100%); display: flex; align-items: center; gap: .6rem; background: rgba(255, 255, 255, .07); border: 1px solid rgba(127, 191, 228, .35); border-radius: 999px; padding: 0 1rem; }
.top-search svg { width: 17px; height: 17px; color: var(--gold-2); flex: none; }
.top-search input { flex: 1; border: 0; outline: 0; background: transparent; color: var(--ivory); padding: .6rem 0; font: inherit; font-size: .9rem; min-width: 0; }
.top-search input::placeholder { color: #9fbccd; }
.top-search:focus-within { border-color: var(--gold); background: rgba(255, 255, 255, .1); }
.cart-btn {
  display: flex; align-items: center; gap: .5rem; white-space: nowrap;
  background: transparent; color: var(--ivory); border: 1px solid rgba(127, 191, 228, .55); border-radius: 999px;
  padding: .45rem .9rem .45rem .75rem; font-size: .82rem; letter-spacing: .08em; transition: background .2s, border-color .2s;
}
.cart-btn:hover { background: rgba(127, 191, 228, .12); border-color: var(--gold); }
.cart-btn svg { width: 20px; height: 20px; }
.cart-btn b { min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; background: var(--gold-grad); color: var(--ink); font-size: .75rem; display: grid; place-items: center; font-weight: 600; }
.cart-btn.bump b { animation: bump .35s ease; }
@keyframes bump { 50% { transform: scale(1.35); } }
.nav { grid-column: 1 / -1; display: flex; justify-content: center; gap: 2.2rem; overflow-x: auto; scrollbar-width: none; }
.nav::-webkit-scrollbar { display: none; }
.nav a { white-space: nowrap; text-decoration: none; font-size: .74rem; letter-spacing: .2em; text-transform: uppercase; color: var(--sand); padding: .7rem 0 .75rem; border-bottom: 2px solid transparent; transition: color .2s, border-color .2s; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--gold-2); border-color: var(--gold); }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; display: grid; place-items: center; padding: 4rem 16px 4.5rem; text-align: center; min-height: 560px; }
.hero-bg { position: absolute; inset: 0; background: radial-gradient(ellipse at 50% 45%, rgba(248, 242, 233, .2), rgba(240, 230, 214, .55) 75%), url("../assets/satin.png") center / cover no-repeat; }
.wave { position: absolute; pointer-events: none; }
.wave-top { top: 0; left: 0; width: min(30vw, 400px); height: auto; -webkit-mask-image: linear-gradient(90deg, #000 50%, transparent 95%); mask-image: linear-gradient(90deg, #000 50%, transparent 95%); }
.wave-bottom { right: 0; bottom: 0; width: min(46vw, 640px); height: auto; -webkit-mask-image: linear-gradient(270deg, #000 55%, transparent 95%); mask-image: linear-gradient(270deg, #000 55%, transparent 95%); }
.hero-inner { position: relative; max-width: 760px; }
.hero-logo { width: clamp(170px, 24vw, 240px); height: auto; margin: -1rem auto -1rem; animation: rise 1.1s ease both; }
.hero h1 { font-family: var(--serif); font-weight: 500; font-size: clamp(1.9rem, 4.2vw, 3.1rem); line-height: 1.08; margin: 0 0 1.6rem; animation: rise 1.1s .15s ease both; }
.hero h1 em { font-style: italic; color: var(--gold-3); }
.hero-cta { display: flex; gap: .8rem; justify-content: center; flex-wrap: wrap; animation: rise 1.1s .3s ease both; }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .9rem 1.8rem; border-radius: 999px; border: 0; text-decoration: none; text-transform: uppercase;
  letter-spacing: .2em; font-size: .76rem; font-weight: 500; transition: transform .2s, box-shadow .2s, background .2s, color .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn-gold { background: var(--gold-grad); background-size: 160% 160%; color: var(--ink); box-shadow: 0 8px 22px -10px rgba(47, 127, 174, .8); }
.btn-gold:hover { background-position: 100% 0; }
.btn-gold:disabled { opacity: .5; cursor: not-allowed; transform: none; }
.btn-ghost { border: 1px solid var(--ink); color: var(--ink); background: rgba(255, 255, 255, .35); }
.btn-ghost:hover { background: var(--ink); color: var(--ivory); }
.btn-block { width: 100%; }

/* ---------- Bloques ---------- */
.block, .shop { max-width: 1280px; margin: 0 auto; padding: 3.5rem clamp(16px, 4vw, 48px) 0; }
#marcas { padding-bottom: 4.5rem; }
.block-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; margin-bottom: 1.4rem; }
.block-head.center { justify-content: center; text-align: center; }
.block-head h2 { font-family: var(--serif); font-weight: 500; font-size: clamp(1.8rem, 3.4vw, 2.5rem); margin: 0; line-height: 1.1; }

/* ---------- Categorías ---------- */
.cats { max-width: 1280px; margin: 0 auto; padding: 2.5rem clamp(16px, 4vw, 48px) 0; display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.cat {
  position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end;
  min-height: 190px; padding: 1.6rem 1.8rem; border-radius: var(--radius); text-decoration: none; color: var(--ivory);
  transition: transform .3s, box-shadow .3s;
}
.cat::after { content: "✦"; position: absolute; top: 1.2rem; right: 1.5rem; color: var(--gold-2); font-size: 1.1rem; }
.cat:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.cat-fem { background: radial-gradient(ellipse at 85% 10%, rgba(205, 233, 248, .5), transparent 55%), linear-gradient(135deg, #4d6f8c, #8cb6d4); }
.cat-masc { background: radial-gradient(ellipse at 85% 10%, rgba(205, 233, 248, .5), transparent 55%), linear-gradient(135deg, #12324a, #2f6f95); }
.cat-kicker { font-size: .7rem; letter-spacing: .3em; text-transform: uppercase; opacity: .85; }
.cat-title { font-family: var(--serif); font-size: clamp(2rem, 4vw, 2.8rem); line-height: 1; margin: .2rem 0 .6rem; }
.cat-link { font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-2); }

/* ---------- Carrusel ---------- */
.carousel-nav { display: flex; gap: .4rem; }
.arrow { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--sand); background: var(--paper); font-size: 1.4rem; line-height: 1; color: var(--ink); transition: all .2s; }
.arrow:hover { background: var(--ink); color: var(--gold-2); border-color: var(--ink); }
.carousel { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 3 * 1rem) / 4); gap: 1rem; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 8px 4px 18px; margin: -8px -4px -18px; scroll-padding-inline: 4px; }
.carousel::-webkit-scrollbar { display: none; }
.carousel .card { scroll-snap-align: start; }

/* ---------- Marcas ---------- */
.brand-wall { display: grid; grid-template-columns: repeat(6, 1fr); gap: .6rem; }
.brand-tile {
  display: grid; place-items: center; text-align: center; min-height: 78px; padding: .6rem;
  background: var(--paper); border: 1px solid var(--ivory-2); border-radius: 10px;
  font-family: var(--serif); font-size: 1.05rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; line-height: 1.15; text-decoration: none;
  transition: all .2s;
}
.brand-tile:hover { background: var(--ink); color: var(--gold-2); border-color: var(--ink); }
.brand-tile img { max-width: 78%; max-height: 34px; width: auto; height: auto; filter: brightness(0); opacity: .85; transition: filter .2s, opacity .2s; }
.brand-tile span { display: none; }
.brand-tile.no-logo img { display: none; }
.brand-tile.no-logo span { display: block; }
.brand-tile:hover img { filter: brightness(0) invert(1); opacity: 1; }

/* ---------- Encabezado de página (catálogo) ---------- */
.page-head {
  text-align: center; padding: 2.4rem 16px 2.2rem;
  background: radial-gradient(ellipse at 50% 0%, rgba(255, 255, 255, .7), transparent 70%), linear-gradient(180deg, var(--ivory-2), var(--ivory));
  border-bottom: 1px solid var(--sand);
}
.crumbs { display: flex; justify-content: center; gap: .5rem; font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--ink); }
.crumbs span { display: inline-flex; gap: .5rem; }
.page-head h1 { font-family: var(--serif); font-weight: 500; font-size: clamp(2.2rem, 5vw, 3.4rem); margin: .4rem 0 .2rem; line-height: 1.05; }
.page-sub { margin: 0; color: var(--muted); }
.see-all { text-align: center; margin: 1.6rem 0 0; }

/* ---------- Tienda ---------- */
.shop { padding-top: 2rem; padding-bottom: 4rem; }
.shop-layout { display: grid; grid-template-columns: 240px 1fr; gap: 2rem; align-items: start; }
.filters { padding: 1.2rem 1.2rem .6rem; background: var(--paper); border: 1px solid var(--ivory-2); border-radius: var(--radius); }
.filters-head { display: flex; justify-content: space-between; align-items: center; }
.filters h3 { font-family: var(--serif); font-weight: 600; font-size: 1.4rem; margin: 0 0 .4rem; }
fieldset { border: 0; border-top: 1px solid var(--sand); margin: 0; padding: .9rem 0 1rem; }
legend { font-size: .7rem; letter-spacing: .22em; text-transform: uppercase; font-weight: 600; color: var(--gold-3); padding: 0; margin-bottom: .5rem; float: left; width: 100%; }
fieldset label { display: flex; align-items: center; gap: .55rem; font-size: .9rem; padding: .22rem 0; cursor: pointer; clear: both; }
fieldset label small { margin-left: auto; color: var(--muted); font-size: .75rem; }
input[type="radio"], input[type="checkbox"] { accent-color: var(--ink); width: 15px; height: 15px; margin: 0; }
.brand-checks { clear: both; }

.toolbar { display: flex; align-items: center; gap: 1rem; margin-bottom: .8rem; }
.result-count { margin: 0 auto 0 0; color: var(--muted); font-size: .88rem; }
select {
  font: inherit; font-size: .85rem; color: var(--ink);
  background: var(--paper) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%237a6f62' stroke-width='1.4'/%3E%3C/svg%3E") right 1rem center no-repeat;
  appearance: none; border: 1px solid var(--sand); border-radius: 999px; padding: .6rem 2.4rem .6rem 1rem;
}
select:focus { border-color: var(--gold); outline: 0; }
.btn-filter { display: none; align-items: center; gap: .4rem; border: 1px solid var(--ink); background: var(--paper); border-radius: 999px; padding: .5rem 1rem; font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; }
.btn-filter svg { width: 18px; height: 18px; }
.btn-filter b { background: var(--ink); color: var(--gold-2); border-radius: 10px; font-size: .7rem; min-width: 18px; padding: 0 5px; }
.btn-filter b:empty { display: none; }
.active-tags { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: 1rem; }
.active-tags:empty { display: none; }
.tag-x { display: inline-flex; align-items: center; gap: .4rem; border: 1px solid var(--sand); background: var(--paper); border-radius: 999px; padding: .3rem .5rem .3rem .8rem; font-size: .78rem; }
.tag-x span { font-size: .9rem; color: var(--muted); }
.tag-x:hover { border-color: var(--ink); }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 1rem; }

/* ---------- Tarjeta de producto ---------- */
.card {
  position: relative; display: flex; flex-direction: column; background: var(--paper);
  border: 1px solid var(--ivory-2); border-radius: var(--radius); overflow: hidden;
  transition: transform .25s, box-shadow .25s, border-color .25s; animation: fadeIn .35s ease both;
}
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--sand); }
.card-media { position: relative; display: grid; place-items: center; height: 210px; background: radial-gradient(ellipse at 50% 70%, #fff, var(--ivory-2) 75%); }
.card-media svg { height: 108px; width: auto; filter: drop-shadow(0 10px 8px rgba(18, 50, 74, .22)); transition: transform .3s; }
.card:hover .card-media svg { transform: scale(1.05) rotate(-2deg); }
.card-media { flex: none; overflow: hidden; }
.card-media.has-photo { background: #fff; border-bottom: 1px solid var(--ivory-2); }
.card-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; padding: 1rem 1rem .8rem; transition: transform .35s; }
.card-media .tag { z-index: 1; }
.card:hover .card-media img { transform: scale(1.06); }
.tag { position: absolute; top: .7rem; left: .7rem; font-size: .6rem; letter-spacing: .16em; text-transform: uppercase; font-weight: 500; padding: .2rem .55rem; border-radius: 999px; color: #fff; }
.tag.Masculino { background: var(--masc); }
.tag.Femenino { background: var(--fem); }
.tag.Unisex { background: var(--ink-3); }
.card-body { display: flex; flex-direction: column; flex: 1; padding: .9rem 1rem 1rem; }
.brand-sm { font-size: .66rem; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-3); font-weight: 500; }
.card h4 { font-family: var(--serif); font-weight: 600; font-size: 1.22rem; line-height: 1.15; margin: .15rem 0 .2rem; }
.meta { color: var(--muted); font-size: .8rem; }
.card-foot { margin-top: auto; padding-top: .8rem; display: flex; align-items: center; justify-content: space-between; gap: .5rem; }
.price { font-family: var(--serif); font-size: 1.35rem; font-weight: 600; }
.add {
  display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid var(--ink); background: var(--ink); color: var(--gold-2); font-size: 1.2rem; line-height: 1; transition: all .2s;
}
.add:hover { background: transparent; color: var(--ink); }
.add.added, .add.added:hover { background: var(--gold-grad); color: var(--ink); border-color: transparent; font-size: .85rem; font-weight: 600; }

.more { display: flex; flex-direction: column; align-items: center; gap: .7rem; margin-top: 2rem; }
.more p { margin: 0; font-size: .82rem; color: var(--muted); }
.progress { width: 220px; height: 3px; background: var(--ivory-2); border-radius: 2px; overflow: hidden; }
.progress span { display: block; height: 100%; background: var(--gold-grad); transition: width .3s; }
.empty { grid-column: 1 / -1; text-align: center; padding: 3rem 1rem; color: var(--muted); }
.empty b { display: block; font-family: var(--serif); font-size: 1.6rem; color: var(--ink); font-weight: 500; }
.disclaimer { text-align: center; color: var(--muted); font-size: .78rem; margin-top: 1.5rem; }

/* ---------- Cómo comprar ---------- */
.perks { background: var(--ink); color: var(--sand); display: grid; grid-template-columns: repeat(3, 1fr); padding: 2.6rem clamp(16px, 4vw, 48px); gap: 1.5rem; }
.perk { display: grid; grid-template-columns: auto 1fr; column-gap: 1rem; align-items: baseline; max-width: 340px; margin: 0 auto; }
.perk b { grid-row: span 2; font-family: var(--serif); font-size: 2.4rem; font-weight: 500; line-height: 1; background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.perk h3 { margin: 0; font-family: var(--serif); font-weight: 500; font-size: 1.4rem; color: var(--ivory); }
.perk p { margin: 0; font-size: .88rem; font-weight: 300; }

/* ---------- Contacto ---------- */
.contact { text-align: center; padding: 4rem 16px; background: radial-gradient(ellipse at top, #f7fcff, var(--ivory-2)); }
.contact-logo { width: 110px; height: auto; margin: 0 auto .6rem; }
.contact h2 { font-family: var(--serif); font-weight: 500; font-size: clamp(1.7rem, 3.4vw, 2.4rem); margin: 0; }
.contact > p { color: var(--muted); margin: .4rem 0 1.8rem; }
.contact-links { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; }
.contact-link { display: flex; align-items: center; gap: .8rem; text-decoration: none; text-align: left; background: #fff; border: 1px solid var(--sand); border-radius: var(--radius); padding: .9rem 1.3rem; min-width: 230px; transition: transform .2s, border-color .2s, box-shadow .2s; }
.contact-link:hover { transform: translateY(-2px); border-color: var(--gold); box-shadow: var(--shadow); }
.contact-link svg { width: 28px; height: 28px; color: var(--gold-3); flex: none; }
.contact-link small { display: block; font-size: .66rem; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.contact-link span { font-weight: 500; }

/* ---------- Footer ---------- */
.footer { background: var(--ink); color: var(--sand); padding: 3rem clamp(16px, 4vw, 48px) 1.4rem; }
.footer-cols { max-width: 1180px; margin: 0 auto; display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2rem; }
.footer-logo { width: 120px; height: auto; margin-top: -1rem; }
.footer h4 { margin: 0 0 .8rem; font-size: .7rem; letter-spacing: .24em; text-transform: uppercase; color: var(--gold-2); font-weight: 500; }
.footer-cols a { display: block; text-decoration: none; font-size: .9rem; padding: .2rem 0; font-weight: 300; }
.footer-cols a:hover { color: var(--gold-2); }
.footer-cols p { margin: 0; font-size: .88rem; font-weight: 300; line-height: 1.6; }
.footer-copy { text-align: center; margin: 2.4rem 0 0; padding-top: 1.2rem; border-top: 1px solid rgba(127, 191, 228, .2); font-size: .76rem; color: var(--muted); letter-spacing: .06em; }

/* ---------- WhatsApp ---------- */
.wa-float { position: fixed; right: 20px; bottom: 20px; z-index: 30; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: #25d366; color: #fff; box-shadow: 0 10px 24px -8px rgba(0, 0, 0, .45); transition: transform .2s; }
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 30px; height: 30px; }

/* ---------- Drawer pedido ---------- */
.scrim { position: fixed; inset: 0; background: rgba(15, 13, 11, .55); z-index: 50; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; z-index: 60; width: min(420px, 100%); background: var(--ivory); display: flex; flex-direction: column; transform: translateX(100%); transition: transform .35s cubic-bezier(.2, .8, .2, 1); box-shadow: -20px 0 40px -20px rgba(0, 0, 0, .4); }
.drawer.open { transform: none; }
.drawer > header { display: flex; justify-content: space-between; align-items: center; padding: 1.2rem 1.4rem; background: var(--ink); color: var(--ivory); }
.drawer h2 { font-family: var(--serif); font-weight: 500; margin: 0; font-size: 1.7rem; }
.icon-btn { background: none; border: 0; color: inherit; font-size: 1.1rem; width: 36px; height: 36px; border-radius: 50%; }
.icon-btn:hover { background: rgba(127, 127, 127, .15); }
.drawer-body { flex: 1; overflow-y: auto; padding: 1rem 1.4rem; }
.drawer > footer { padding: 1.2rem 1.4rem 1.4rem; border-top: 1px solid var(--sand); background: var(--paper); }
.total { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 1rem; }
.total span { font-size: .75rem; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.total b { font-family: var(--serif); font-size: 1.9rem; font-weight: 600; }
.link-btn { display: block; margin: .8rem auto 0; background: none; border: 0; color: var(--muted); font-size: .8rem; text-decoration: underline; }
.line { display: grid; grid-template-columns: 1fr auto; gap: .3rem 1rem; padding: .9rem 0; border-bottom: 1px solid var(--ivory-2); }
.line h5 { margin: 0; font-family: var(--serif); font-size: 1.15rem; font-weight: 600; line-height: 1.2; }
.line .meta { font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; }
.line .lp { font-family: var(--serif); font-size: 1.15rem; font-weight: 600; text-align: right; }
.qty { justify-self: start; display: inline-flex; align-items: center; border: 1px solid var(--sand); border-radius: 999px; overflow: hidden; }
.qty button { background: none; border: 0; width: 30px; height: 28px; font-size: 1rem; color: var(--ink); }
.qty button:hover { background: var(--ivory-2); }
.qty span { min-width: 24px; text-align: center; font-size: .9rem; }
.cart-empty { text-align: center; color: var(--muted); padding: 3rem 1rem; }
.cart-empty b { display: block; font-family: var(--serif); font-size: 1.5rem; color: var(--ink); font-weight: 500; margin-bottom: .3rem; }

.toast { position: fixed; left: 50%; bottom: 24px; z-index: 70; transform: translate(-50%, 140%); opacity: 0; background: var(--ink); color: var(--ivory); padding: .75rem 1.2rem; border-radius: 999px; font-size: .85rem; border: 1px solid rgba(127, 191, 228, .5); transition: transform .3s, opacity .3s; pointer-events: none; max-width: calc(100% - 32px); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.toast.show { transform: translate(-50%, 0); opacity: 1; }

.only-mobile { display: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .announce-track { animation: ticker 60s linear infinite !important; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .carousel { grid-auto-columns: calc((100% - 2 * 1rem) / 3); }
  .brand-wall { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 900px) {
  html { scroll-padding-top: 170px; }
  .topbar { grid-template-columns: auto 1fr auto; }
  .cart-btn { grid-column: 3; grid-row: 1; justify-self: end; }
  .top-search { grid-column: 1 / -1; grid-row: 2; justify-self: stretch; width: 100%; }
  .nav { justify-content: flex-start; gap: 1.6rem; }
  .shop-layout { grid-template-columns: 1fr; }
  .only-mobile { display: initial; }
  .btn-filter.only-mobile { display: inline-flex; }
  .filters {
    position: fixed; top: 0; left: 0; bottom: 0; z-index: 60; width: min(340px, 88%); max-height: none;
    background: var(--ivory); padding: 1.2rem 1.4rem 1.6rem; border: 0; border-radius: 0; overflow-y: auto; transform: translateX(-100%); transition: transform .3s;
    box-shadow: 20px 0 40px -20px rgba(0, 0, 0, .4);
  }
  .filters.open { transform: none; }
  .filters .btn-block { position: sticky; bottom: 0; margin-top: 1rem; box-shadow: 0 -14px 18px 4px var(--ivory); }
  .brand-checks { display: grid; grid-template-columns: 1fr 1fr; column-gap: 1rem; }
  .brand-checks label { font-size: .85rem; }
  .brand-checks small { display: none; }
  .perks { grid-template-columns: 1fr; }
  .footer-cols { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  html { scroll-padding-top: 120px; }
  .hero { min-height: 0; padding: 3rem 16px 3.5rem; }
  .wave-top { width: 42vw; }
  .wave-bottom { width: 80vw; opacity: .9; }
  html { scroll-padding-top: 170px; }
  .nav { gap: 1.3rem; }
  .nav a { font-size: .68rem; letter-spacing: .16em; }
  .brandmark span { font-size: 1.25rem; }
  .cart-btn span { display: none; }
  .cats { grid-template-columns: 1fr 1fr; gap: .6rem; }
  .cat { min-height: 130px; padding: 1rem; }
  .cat-link { font-size: .66rem; letter-spacing: .08em; }
  .carousel { grid-auto-columns: 62%; }
  .carousel-nav { display: none; }
  .brand-wall { grid-template-columns: repeat(2, 1fr); }
  .grid { grid-template-columns: 1fr 1fr; gap: .7rem; }
  .card-media { height: 150px; }
  .card-media svg { height: 84px; }
  .card-media img { padding: .5rem; }
  .card-body { padding: .75rem .75rem .8rem; }
  .card h4 { font-size: 1.05rem; }
  .price { font-size: 1.15rem; }
  .toolbar { flex-wrap: wrap; }
  .result-count { order: 3; width: 100%; }
  .wa-float { width: 50px; height: 50px; right: 14px; bottom: 14px; }
}

/* ---------- Tamaños ---------- */
.sizes { display: inline-flex; gap: .3rem; margin-left: .4rem; vertical-align: middle; }
.sizes span { border: 1px solid var(--sand); border-radius: 999px; padding: 0 .45rem; font-size: .7rem; line-height: 1.5; color: var(--ink-3); }
.price small { display: block; font-family: var(--sans); font-size: .62rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); font-weight: 400; line-height: 1; margin-bottom: .1rem; }

.size-dialog { border: 0; padding: 0; border-radius: var(--radius); width: min(460px, calc(100% - 32px)); background: var(--ivory); color: var(--ink); box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .5); }
.size-dialog::backdrop { background: rgba(15, 13, 11, .55); }
.size-inner { position: relative; display: grid; grid-template-columns: 170px 1fr; margin: 0; }
.size-close { position: absolute; top: .5rem; right: .5rem; z-index: 1; }
.size-media { background: #fff; display: grid; place-items: center; padding: 1rem; border-right: 1px solid var(--ivory-2); }
.size-media img { width: 100%; height: 190px; object-fit: contain; }
.size-media svg { height: 110px; width: auto; }
.size-info { padding: 1.4rem 1.4rem 1.3rem; }
.size-info h3 { font-family: var(--serif); font-weight: 600; font-size: 1.5rem; line-height: 1.1; margin: .15rem 2rem .5rem 0; }
.size-ask { margin: 0 0 .7rem; font-size: .85rem; color: var(--muted); }
.size-options { display: grid; gap: .5rem; }
.size-opt {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: .1rem .9rem; text-align: left;
  border: 1px solid var(--sand); background: var(--paper); border-radius: 10px; padding: .6rem .7rem .6rem .9rem; color: var(--ink);
  transition: border-color .2s, background .2s;
}
.size-opt:hover, .size-opt.in { border-color: var(--ink); background: #fff; }
.size-opt > b { font-family: var(--serif); font-size: 1.25rem; font-weight: 600; white-space: nowrap; }
.size-opt > span:not(.stepper) { justify-self: end; font-family: var(--serif); font-size: 1.15rem; font-weight: 600; }
.size-add { border: 1px solid var(--ink); background: var(--ink); color: var(--gold-2); border-radius: 999px; padding: .4rem .9rem; font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; }
.size-add:hover { background: transparent; color: var(--ink); }
.size-done { margin-top: .9rem; }
.size-more { display: inline-block; margin-top: .8rem; font-size: .8rem; color: var(--gold-3); }

/* Control − cantidad + (tarjeta, selector de tamaño y página de producto) */
.stepper, .cart-ctrl.in { display: inline-flex; align-items: center; gap: .15rem; border: 1px solid var(--ink); border-radius: 999px; padding: 2px; background: #fff; }
.stepper button, .cart-ctrl.in button { width: 30px; height: 30px; border-radius: 50%; border: 0; background: none; color: var(--ink); font-size: 1.05rem; line-height: 1; display: grid; place-items: center; }
.stepper button:hover, .cart-ctrl.in button:hover { background: var(--ivory-2); }
.stepper b, .cart-ctrl.in b { min-width: 20px; text-align: center; font-weight: 600; font-size: .92rem; }
.cart-ctrl.in { background: var(--gold-grad); border-color: transparent; }
.cart-ctrl.in button:hover { background: rgba(255, 255, 255, .45); }
.card h4 a { color: inherit; text-decoration: none; }
.card h4 a:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.card-media { cursor: pointer; }
@media (max-width: 560px) {
  .size-inner { grid-template-columns: 1fr; }
  .size-media { border-right: 0; border-bottom: 1px solid var(--ivory-2); }
  .size-media img { height: 140px; }
  .sizes { margin-left: 0; margin-top: .2rem; display: flex; }
}

/* Logo de marca en el encabezado del catálogo */
.page-logo { display: block; margin: .6rem auto .5rem; height: clamp(44px, 7vw, 72px); width: auto; max-width: min(420px, 80vw); object-fit: contain; filter: brightness(0); }

.brand-tile img.tall { max-height: 52px; }

/* ---------- Página de producto ---------- */
.pdp { max-width: 1200px; margin: 0 auto; padding: 1.4rem clamp(16px, 4vw, 48px) 1rem; }
.pdp-crumbs { justify-content: flex-start; flex-wrap: wrap; margin-bottom: 1.2rem; }
.pdp-crumbs [aria-current] { color: var(--ink); }
.pdp-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 3.5rem); align-items: start; }

.pdp-gallery { position: sticky; top: 150px; }
.pdp-main { position: relative; aspect-ratio: 1; border-radius: var(--radius); border: 1px solid var(--ivory-2); display: grid; place-items: center; overflow: hidden;
  background: radial-gradient(ellipse at 50% 70%, #fff, var(--ivory-2) 80%); }
.pdp-main.has-photo { background: #fff; }
.pdp-main img { width: 100%; height: 100%; object-fit: contain; padding: 6%; }
.pdp-main svg { height: 55%; width: auto; filter: drop-shadow(0 18px 14px rgba(18, 50, 74, .25)); }
.pdp-main .tag { top: 1rem; left: 1rem; font-size: .66rem; z-index: 1; }
.pdp-thumbs { display: flex; gap: .6rem; margin-top: .7rem; }
.pdp-thumbs button { width: 76px; height: 76px; padding: 4px; border: 1px solid var(--ivory-2); border-radius: 10px; background: #fff; }
.pdp-thumbs button.on { border-color: var(--ink); }
.pdp-thumbs img { width: 100%; height: 100%; object-fit: contain; }

.pdp-info { padding-top: .2rem; }
.pdp-brand { display: inline-block; font-size: .8rem; letter-spacing: .22em; text-transform: uppercase; color: var(--gold-3); text-decoration: none; }
.pdp-brand img { height: 30px; width: auto; max-width: 220px; filter: brightness(0); opacity: .85; display: block; }
.pdp-info h1 { font-family: var(--serif); font-weight: 500; font-size: clamp(2rem, 4vw, 2.9rem); line-height: 1.05; margin: .7rem 0 .3rem; }
.pdp-sub { margin: 0; color: var(--muted); font-size: .95rem; }
.pdp-price { display: flex; align-items: baseline; gap: .7rem; margin: 1.1rem 0 1.2rem; padding-bottom: 1.1rem; border-bottom: 1px solid var(--sand); }
.pdp-price span { font-family: var(--serif); font-size: clamp(2.2rem, 4vw, 2.8rem); font-weight: 600; line-height: 1; }
.pdp-price small { color: var(--muted); font-size: .9rem; }

.pdp-block { margin-bottom: 1.2rem; }
.pdp-label { display: block; font-size: .72rem; letter-spacing: .22em; text-transform: uppercase; font-weight: 600; margin-bottom: .55rem; }
.pdp-sizes { display: flex; flex-wrap: wrap; gap: .5rem; }
.pdp-size { display: grid; gap: .1rem; min-width: 86px; padding: .55rem .9rem; border: 1px solid var(--sand); border-radius: 10px; background: var(--paper); text-align: center; font-weight: 500; transition: border-color .15s, box-shadow .15s; }
.pdp-size small { font-size: .74rem; color: var(--muted); font-weight: 400; }
.pdp-size:hover { border-color: var(--ink); }
.pdp-size.on { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); background: #fff; }

.pdp-buy { display: grid; grid-template-columns: auto 1fr; gap: .7rem; }
.pdp-qty { display: flex; align-items: center; border: 1px solid var(--ink); border-radius: 999px; background: #fff; }
.pdp-qty button { width: 44px; height: 50px; border: 0; background: none; font-size: 1.2rem; border-radius: 999px; }
.pdp-qty button:hover { background: var(--ivory-2); }
.pdp-qty output { min-width: 26px; text-align: center; font-weight: 600; font-size: 1.05rem; }
.pdp-add { width: 100%; padding: 1rem 1.2rem; font-size: .8rem; }

.pdp-incart:not(:empty) { margin-top: 1rem; padding: .8rem 1rem; background: #e8f4fb; border: 1px solid #c3dcec; border-radius: 12px; }
.pdp-incart-title { margin: 0 0 .4rem; font-size: .7rem; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-3); font-weight: 600; }
.pdp-line { display: grid; grid-template-columns: 1fr auto auto; gap: 1rem; align-items: center; padding: .3rem 0; }
.pdp-line > span:first-child { font-weight: 500; }
.pdp-line-total { font-family: var(--serif); font-weight: 600; font-size: 1.1rem; min-width: 90px; text-align: right; }
.pdp-ver { margin: .4rem 0 0; }

.pdp-perks { list-style: none; padding: 0; margin: 1.4rem 0; display: grid; gap: .3rem; font-size: .88rem; color: var(--ink-3); }
.pdp-acc { border-top: 1px solid var(--sand); padding: .9rem 0; }
.pdp-acc:last-of-type { border-bottom: 1px solid var(--sand); }
.pdp-acc summary { cursor: pointer; font-size: .74rem; letter-spacing: .2em; text-transform: uppercase; font-weight: 600; list-style: none; display: flex; justify-content: space-between; }
.pdp-acc summary::-webkit-details-marker { display: none; }
.pdp-acc summary::after { content: "+"; font-size: 1rem; }
.pdp-acc[open] summary::after { content: "−"; }
.pdp-acc p { margin: .7rem 0 0; color: var(--ink-3); font-size: .92rem; }
.pdp-acc dl { margin: .7rem 0 0; display: grid; gap: .35rem; }
.pdp-acc dl div { display: grid; grid-template-columns: 130px 1fr; gap: 1rem; font-size: .92rem; }
.pdp-acc dt { color: var(--muted); }
.pdp-acc dd { margin: 0; }
.pdp-acc a { color: inherit; }
.pdp-wa { display: inline-flex; margin-top: 1.2rem; color: #1a7f45; font-weight: 500; font-size: .9rem; }
.pdp-404 { text-align: center; padding: 4rem 1rem; }
.pdp-404 h1 { font-family: var(--serif); font-weight: 500; font-size: 2.4rem; margin: 0 0 .4rem; }
.pdp-404 p { color: var(--muted); margin: 0 0 1.4rem; }
#relacionados { padding-bottom: 4rem; }

@media (max-width: 860px) {
  .pdp-grid { grid-template-columns: 1fr; }
  .pdp-gallery { position: static; }
  .pdp-main { aspect-ratio: 4 / 3.4; }
}
@media (max-width: 560px) {
  .pdp-buy { grid-template-columns: 1fr; }
  .pdp-qty { justify-self: start; }
  .pdp-acc dl div { grid-template-columns: 110px 1fr; }
  .cart-ctrl.in button { width: 28px; height: 28px; }
}

/* ---------- Tema celeste: ondas de la portada y logo dorados pasados a celeste ---------- */
.hero-bg { filter: hue-rotate(178deg) saturate(.6) brightness(1.06); }
.brandmark img, .footer-logo, .hero-logo, .contact-logo { filter: hue-rotate(178deg) saturate(.8); }

/* ---------- Varias fotos ---------- */
/* Tarjeta: al pasar el mouse se ve la segunda foto (frasco + caja) */
.card-media img.alt { opacity: 0; transition: opacity .35s, transform .35s; }
@media (hover: hover) {
  .card:hover .card-media.has-photo img.alt { opacity: 1; }
  .card:hover .card-media.has-photo img:not(.alt):has(+ img.alt) { opacity: 0; }
}
/* Galería de la página de producto */
.pdp-nav { position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--sand); background: rgba(255, 255, 255, .9); font-size: 1.6rem; line-height: 1; color: var(--ink); display: grid; place-items: center; transition: background .2s, border-color .2s; }
.pdp-nav:hover { background: #fff; border-color: var(--ink); }
.pdp-nav.prev { left: .8rem; }
.pdp-nav.next { right: .8rem; }
.pdp-count { position: absolute; right: 1rem; bottom: .9rem; font-size: .72rem; letter-spacing: .1em; color: var(--muted); background: rgba(255, 255, 255, .85); padding: .15rem .5rem; border-radius: 999px; }
.pdp-thumbs { flex-wrap: wrap; }
.pdp-thumbs button { transition: border-color .2s; }
.pdp-thumbs button:hover { border-color: var(--gold); }
@media (max-width: 560px) { .pdp-nav { width: 38px; height: 38px; font-size: 1.3rem; } .pdp-thumbs button { width: 60px; height: 60px; } }

/* ---------- Calcular envío (página de producto) ---------- */
.pdp-ship { margin-top: 1.2rem; padding: 1rem 1.1rem 1.05rem; border: 1px solid var(--sand); border-radius: 12px; background: var(--paper); }
.pdp-ship .pdp-label { display: flex; align-items: center; gap: .5rem; margin-bottom: .6rem; }
.pdp-ship .pdp-label svg { width: 22px; height: 22px; color: var(--gold-3); }
.pdp-ship-form { display: flex; gap: .5rem; }
.pdp-ship-form input { flex: 1; min-width: 0; font: inherit; padding: .65rem 1rem; border: 1px solid var(--sand); border-radius: 999px; background: #fff; color: var(--ink); text-transform: uppercase; }
.pdp-ship-form input::placeholder { text-transform: none; color: var(--muted); }
.pdp-ship-form input:focus { outline: 0; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(127, 191, 228, .25); }
.pdp-ship-form .btn { padding: .65rem 1.2rem; }
.pdp-ship-help { display: inline-block; margin-top: .45rem; font-size: .78rem; color: var(--gold-3); }
.pdp-ship-result:not(:empty) { margin-top: .8rem; padding-top: .8rem; border-top: 1px dashed var(--sand); }
.pdp-ship-result p { margin: .25rem 0; }
.ship-dest { font-size: .9rem; }
.ship-opts { list-style: none; margin: .5rem 0; padding: 0; display: grid; gap: .4rem; }
.ship-opts li { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .55rem .75rem; border-radius: 10px; background: var(--ivory); }
.ship-opts b { display: block; font-weight: 500; font-size: .9rem; }
.ship-opts small { color: var(--muted); font-size: .76rem; }
.ship-opts em { font-style: normal; font-family: var(--serif); font-weight: 600; font-size: 1.2rem; white-space: nowrap; }
.ship-free { color: #2f6b45; font-weight: 500; }
.ship-error { color: #a2342f; font-size: .88rem; }
.ship-note { font-size: .74rem; color: var(--muted); }
.ship-loading { font-size: .85rem; color: var(--muted); }

/* Código postal en "Mi pedido" y modo "consultar" */
.cart-cp { margin-bottom: .9rem; }
.cart-cp label { display: block; font-size: .7rem; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); margin-bottom: .35rem; }
.cart-cp input { width: 100%; font: inherit; padding: .6rem .9rem; border: 1px solid var(--sand); border-radius: 999px; background: #fff; color: var(--ink); text-transform: uppercase; }
.cart-cp input::placeholder { text-transform: none; color: var(--muted); }
.cart-cp input:focus { outline: 0; border-color: var(--gold); }
.cart-cp-note { margin: .35rem 0 0; font-size: .76rem; color: var(--muted); }
.ship-consult { font-size: .9rem; color: var(--ink-3); }

/* ---------- Sin stock (regla: sin precio = sin stock) ---------- */
/* El "apagado" va con filter (no con opacity) para no pisar la transparencia de la foto de hover */
.card.sin-stock .card-media img, .card.sin-stock .card-media svg { filter: grayscale(.6) opacity(.55); }
.tag-stock { position: absolute; top: .7rem; right: .7rem; z-index: 1; font-size: .6rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 600; padding: .22rem .55rem; border-radius: 999px; background: #fff; color: var(--ink-3); border: 1px solid var(--sand); }
.price-na { white-space: nowrap; font-family: var(--sans) !important; font-size: .7rem !important; font-weight: 500 !important; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.ask { display: inline-flex; align-items: center; height: 34px; padding: 0 .85rem; border-radius: 999px; border: 1px solid var(--ink); color: var(--ink); text-decoration: none; font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 500; white-space: nowrap; transition: background .2s, color .2s; }
.ask:hover { background: var(--ink); color: var(--gold-2); }
.size-opt.off { opacity: .6; }
.size-opt.off:hover { border-color: var(--sand); background: var(--paper); }
.pdp-price.na span { font-family: var(--sans); font-size: 1.2rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 500; }
.pdp-buy:has(.pdp-qty[hidden]) { grid-template-columns: 1fr; }
.pdp-ask { text-align: center; justify-content: center; }


/* ---------- Redes en el pie (logos) ---------- */
.footer-cols a.social { display: flex; align-items: center; gap: .6rem; }
.footer-cols a.social svg { width: 22px; height: 22px; flex: none; color: var(--gold-2); transition: color .2s; }
.footer-cols a.social:hover svg { color: #fff; }
.brand-tile img[src*="al-haramain"] { max-height: 68px; max-width: 70%; }
@media (max-width: 560px) { .card.sin-stock .card-foot { flex-wrap: wrap; gap: .45rem; } .card-foot .cart-ctrl:has(.ask), .card-foot .ask { width: 100%; justify-content: center; } }
