/* El Aliño by Menayo — prototipo de portada
   Este CSS se reutilizará casi íntegro en el tema de WordPress. */

:root {
  --cream: #F6F1E7;
  --cream-2: #EEE6D6;
  --paper: #FFFFFF;
  --ink: #1E2117;
  --ink-soft: #4A4D40;
  --muted: #7A7C6E;
  --olive: #3D5A1C;
  --olive-dark: #24360F;
  --lime: #8BC34A;          /* verde de marca actual */
  --terracotta: #B5532B;
  --line: #E2D9C6;
  --radius: 18px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(30,33,23,.05), 0 8px 24px rgba(30,33,23,.06);
  --serif: "Marcellus", Georgia, serif;
  --sans: "DM Sans", system-ui, -apple-system, sans-serif;
  --wrap: 1240px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; } /* height:auto: si no, el alto escrito en la etiqueta (p. ej. 1280) estira la foto */
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }

.wrap { width: min(var(--wrap), 100% - 32px); margin-inline: auto; }

h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.12; margin: 0; letter-spacing: 0; font-variant-numeric: lining-nums; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--olive);
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: var(--lime); border-radius: 2px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 26px; border-radius: 999px; border: 0;
  font-weight: 600; font-size: 15px; transition: transform .2s, background .2s, color .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--olive); color: #fff; }
.btn-primary:hover { background: var(--olive-dark); }
.btn-ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--cream); }
.btn-light { background: var(--cream); color: var(--ink); }
.btn svg { width: 18px; height: 18px; }

/* ---------- Barra superior ---------- */
.topbar {
  background: var(--olive-dark); color: #E9EFD9;
  font-size: 13.5px; text-align: center; padding: 9px 16px;
}
.topbar strong { color: var(--lime); }

/* ---------- Cabecera ---------- */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(246,241,231,.92); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header .wrap { display: flex; align-items: center; gap: 32px; height: 78px; }
.logo img { height: 52px; width: auto; }
.nav { display: flex; gap: 26px; margin-right: auto; }
.nav a { font-size: 15px; font-weight: 500; color: var(--ink-soft); position: relative; padding: 6px 0; }
.nav a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 2px; background: var(--lime); transition: right .25s; }
.nav a:hover { color: var(--ink); }
.nav a:hover::after { right: 0; }
.header-actions { display: flex; align-items: center; gap: 6px; }
.icon-btn {
  width: 44px; height: 44px; border-radius: 50%; border: 0; background: transparent;
  display: grid; place-items: center; color: var(--ink); position: relative; transition: background .2s;
}
.icon-btn:hover { background: var(--cream-2); }
.icon-btn svg { width: 22px; height: 22px; }
.cart-count {
  position: absolute; top: 4px; right: 2px; min-width: 18px; height: 18px; padding: 0 5px;
  background: var(--terracotta); color: #fff; border-radius: 9px; font-size: 11px; font-weight: 700;
  display: grid; place-items: center;
}
.menu-toggle { display: none; }

/* ---------- Hero ---------- */
.hero { padding: 56px 0 72px; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(42px, 5.6vw, 76px); margin: 18px 0 22px; }
.hero h1 em { font-style: normal; color: var(--olive); }
.hero p.lead { font-size: 19px; color: var(--ink-soft); max-width: 30em; margin: 0 0 32px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-media { position: relative; }
.hero-media .photo {
  aspect-ratio: 4/5; border-radius: 220px 220px var(--radius) var(--radius); overflow: hidden;
  box-shadow: var(--shadow);
}
.hero-media .photo img { width: 100%; height: 100%; object-fit: cover; }
.hero-badge {
  position: absolute; left: -28px; bottom: 40px;
  background: var(--paper); border-radius: var(--radius); padding: 16px 20px; box-shadow: var(--shadow);
  display: flex; align-items: center; gap: 14px; max-width: 270px;
}
.hero-badge .num { font-family: var(--serif); font-size: 34px; font-weight: 600; color: var(--olive); line-height: 1; }
.hero-badge span { font-size: 14px; color: var(--ink-soft); line-height: 1.35; }
.hero-stamp {
  position: absolute; right: -16px; top: 30px; width: 116px; height: 116px; border-radius: 50%;
  background: var(--lime); color: var(--olive-dark); display: grid; place-items: center; text-align: center;
  font-family: var(--serif); font-weight: 600; font-size: 15px; line-height: 1.15; transform: rotate(8deg);
  box-shadow: var(--shadow);
}

/* ---------- Ventajas ---------- */
.perks { background: var(--paper); border-block: 1px solid var(--line); }
.perks .wrap { display: grid; grid-template-columns: repeat(4, 1fr); }
.perk { display: flex; align-items: center; gap: 14px; padding: 24px 20px; }
.perk + .perk { border-left: 1px solid var(--line); }
.perk svg { width: 30px; height: 30px; color: var(--olive); flex: none; }
.perk strong { display: block; font-size: 15px; }
.perk span { font-size: 13.5px; color: var(--muted); }

/* ---------- Secciones ---------- */
.section { padding: 96px 0; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 40px; }
.section-head h2 { font-size: clamp(32px, 3.6vw, 48px); margin-top: 12px; }
.section-head p { color: var(--ink-soft); max-width: 34em; margin: 12px 0 0; }
.link-arrow { font-weight: 600; color: var(--olive); display: inline-flex; gap: 8px; align-items: center; white-space: nowrap; }
.link-arrow:hover { gap: 12px; }
.link-arrow { transition: gap .2s; }

/* ---------- Categorías ---------- */
.cats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.cat {
  background: var(--paper); border-radius: var(--radius); padding: 18px 18px 20px;
  display: flex; flex-direction: column; transition: transform .25s, box-shadow .25s;
}
.cat:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.cat img { aspect-ratio: 1; object-fit: contain; width: 74%; margin: 0 auto 10px; transition: transform .35s; }
.cat:hover img { transform: scale(1.06) rotate(-2deg); }
.cat h3 { font-size: 21px; }
.cat span { font-size: 14px; color: var(--muted); }
.cat.feature { grid-row: span 2; background: var(--olive); color: #fff; justify-content: space-between; padding: 28px; }
.cat.feature img { width: 92%; margin: 8px auto; }
.cat.feature h3 { font-size: 30px; }
.cat.feature span { color: #CFE3B1; }

/* ---------- Productos ---------- */
.tabs { display: inline-flex; background: var(--cream-2); border-radius: 999px; padding: 4px; }
.tab { border: 0; background: transparent; padding: 10px 20px; border-radius: 999px; font-weight: 600; font-size: 14.5px; color: var(--ink-soft); }
.tab[aria-selected="true"] { background: var(--paper); color: var(--ink); box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.products { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.card {
  background: var(--paper); border-radius: var(--radius); overflow: hidden;
  display: flex; flex-direction: column; transition: box-shadow .25s, transform .25s;
}
.card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.card-img { position: relative; aspect-ratio: 1; background: #fff; }
.card-img img { width: 100%; height: 100%; object-fit: contain; padding: 6%; transition: transform .35s; }
.card:hover .card-img img { transform: scale(1.05); }
.card-tag {
  position: absolute; top: 14px; left: 14px; font-size: 12px; font-weight: 600;
  background: var(--cream); color: var(--olive); padding: 5px 11px; border-radius: 999px;
}
.card-body { padding: 4px 20px 20px; display: flex; flex-direction: column; flex: 1; }
.card-cat { font-size: 12.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.card h3 { font-family: var(--sans); font-weight: 600; font-size: 17px; line-height: 1.3; margin: 4px 0 6px; }
.card-formats { font-size: 13px; color: var(--muted); margin-bottom: 14px; }
.card-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.price { font-family: var(--serif); font-size: 22px; font-weight: 600; }
.price small { font-family: var(--sans); font-size: 12.5px; font-weight: 500; color: var(--muted); margin-right: 3px; }
.add {
  width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--olive); color: #fff;
  display: grid; place-items: center; transition: background .2s, transform .2s;
}
.add:hover { background: var(--olive-dark); transform: rotate(90deg); }
.add svg { width: 20px; height: 20px; }

/* ---------- Banda gildas ---------- */
.gildas { background: var(--ink); color: var(--cream); padding: 0; overflow: hidden; }
.gildas .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; padding-block: 96px; }
.gildas .eyebrow { color: var(--lime); }
.gildas h2 { font-size: clamp(36px, 4.4vw, 60px); margin: 14px 0 20px; }
.gildas h2 em { color: var(--lime); font-style: normal; }
.gildas p { color: #C9CBBE; font-size: 17.5px; max-width: 30em; }
.gildas-photo { border-radius: var(--radius); overflow: hidden; aspect-ratio: 4/3; }
.gildas-photo img { width: 100%; height: 100%; object-fit: cover; }
.gilda-list { list-style: none; padding: 0; margin: 28px 0 34px; display: grid; gap: 2px; }
.gilda-list a {
  display: flex; justify-content: space-between; align-items: baseline; gap: 16px;
  padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,.12); transition: padding .2s, color .2s;
}
.gilda-list a:hover { padding-left: 10px; color: var(--lime); }
.gilda-list .p { font-family: var(--serif); font-size: 18px; white-space: nowrap; }
.gilda-list .p small { font-family: var(--sans); font-size: 12px; color: #9EA192; margin-right: 4px; }

/* ---------- Formatos ---------- */
.formats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.format { background: var(--paper); border-radius: var(--radius); padding: 30px; }
.format .size { font-family: var(--serif); font-size: 44px; font-weight: 600; color: var(--olive); line-height: 1; }
.format h3 { font-family: var(--sans); font-size: 18px; margin: 14px 0 6px; }
.format p { margin: 0; color: var(--ink-soft); font-size: 15px; }

/* ---------- Beneficios ---------- */
.benefits { position: relative; color: #fff; isolation: isolate; }
.benefits::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(rgba(36,54,15,.88), rgba(36,54,15,.92)), url("../img/marca/home03-1.webp") center/cover;
}
.benefits .eyebrow { color: var(--lime); }
.benefits .section-head p { color: #D6DEC6; }
.benefit-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.benefit { border-top: 1px solid rgba(255,255,255,.25); padding-top: 22px; }
.benefit .n { font-family: var(--serif); font-size: 15px; color: var(--lime); }
.benefit h3 { font-size: 23px; margin: 10px 0 10px; }
.benefit p { margin: 0; color: #D6DEC6; font-size: 15px; }

/* ---------- Nosotros ---------- */
.about .wrap { display: grid; grid-template-columns: 1fr 1.1fr; gap: 72px; align-items: center; }
.about-collage { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
/* Fotos reales de la tienda: llenan su hueco recortándose (sin relleno blanco) */
.about-collage img { width: 100%; height: auto; border-radius: var(--radius); aspect-ratio: 4/5; object-fit: cover; object-position: center; padding: 0; background: var(--cream-2); }
.about-collage img:first-child { grid-column: span 2; aspect-ratio: 16/10; }
.about h2 { font-size: clamp(32px, 3.6vw, 48px); margin: 14px 0 22px; }
.about p { color: var(--ink-soft); font-size: 17px; }
.visit {
  margin-top: 30px; padding: 22px 24px; background: var(--paper); border-radius: var(--radius);
  display: flex; gap: 16px; align-items: flex-start;
}
.visit svg { width: 26px; height: 26px; color: var(--terracotta); flex: none; margin-top: 2px; }
.visit strong { display: block; }
.visit span { color: var(--ink-soft); font-size: 15px; }

/* ---------- Pie ---------- */
.footer { background: var(--olive-dark); color: #D9E0CB; padding: 72px 0 28px; font-size: 15px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
.footer .logo-foot { height: 64px; width: auto; filter: invert(1) brightness(1.1); margin-bottom: 18px; }
.footer h4 { font-family: var(--sans); font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--lime); margin: 0 0 16px; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.footer a:hover { color: #fff; }
.footer-contact li { display: flex; gap: 10px; }
.footer-contact svg { width: 18px; height: 18px; flex: none; margin-top: 3px; color: var(--lime); }
.socials { display: flex; gap: 10px; margin-top: 20px; }
.socials a { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.08); }
.socials a:hover { background: var(--lime); color: var(--olive-dark); }
.socials svg { width: 18px; height: 18px; }
.footer-bottom {
  margin-top: 56px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.12);
  display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; align-items: center; font-size: 13.5px; color: #A9B396;
}
.footer-bottom .pay { height: 26px; width: auto; background: #fff; border-radius: 6px; padding: 3px 6px; }
.kit-digital { background: #fff; padding: 14px 0; }
.kit-digital img { width: min(900px, 100%); margin-inline: auto; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .nav { gap: 18px; }
  .nav a { font-size: 14px; }
  .products { grid-template-columns: repeat(3, 1fr); }
  .benefit-grid { grid-template-columns: repeat(2, 1fr); row-gap: 36px; }
}
@media (max-width: 900px) {
  .menu-toggle { display: grid; }
  .nav {
    position: fixed; inset: 78px 0 auto 0; background: var(--cream); flex-direction: column; gap: 0;
    padding: 8px 16px 20px; border-bottom: 1px solid var(--line); transform: translateY(-12px); opacity: 0; visibility: hidden; transition: transform .25s, opacity .25s, visibility .25s;
    z-index: -1;
  }
  .nav.open { transform: none; opacity: 1; visibility: visible; }
  .nav a { font-size: 18px; padding: 14px 4px; border-bottom: 1px solid var(--line); }
  .nav a::after { display: none; }
  .header .wrap { gap: 12px; justify-content: space-between; }
  .hero .wrap, .gildas .wrap, .about .wrap { grid-template-columns: 1fr; gap: 40px; }
  .hero { padding-top: 32px; }
  .hero-media { max-width: 460px; margin-inline: auto; width: 100%; }
  .hero-badge { left: 0; }
  .hero-stamp { right: 0; }
  .perks .wrap { grid-template-columns: repeat(2, 1fr); }
  .perk:nth-child(3) { border-left: 0; }
  .perk:nth-child(n+3) { border-top: 1px solid var(--line); }
  .cats { grid-template-columns: repeat(2, 1fr); }
  .cat.feature { grid-column: span 2; grid-row: auto; }
  .cat.feature img { width: 60%; }
  .formats { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .section { padding: 72px 0; }
  .section-head { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 600px) {
  .products { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .card-body { padding: 2px 14px 14px; }
  .card h3 { font-size: 15px; }
  .card-formats { display: none; }
  .price { font-size: 19px; }
  .add { width: 38px; height: 38px; }
  .perk { padding: 18px 12px; gap: 10px; }
  .perk svg { width: 24px; height: 24px; }
  .benefit-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .logo img { height: 44px; }
  .hero-badge { position: relative; left: auto; bottom: auto; margin: -36px 16px 0; }
  .hero-stamp { width: 92px; height: 92px; font-size: 13px; }
  .tabs { width: 100%; }
  .tab { flex: 1; padding: 10px 8px; }
}

.cat.feature img.cat-circle { background: #fff; border-radius: 50%; padding: 6%; width: 78%; }
@media (max-width: 900px) { .cat.feature img.cat-circle { width: 50%; } }

/* ---------- Selector de idioma (ES / PT) ---------- */
.lang { display: flex; background: var(--cream-2); border-radius: 999px; padding: 3px; margin-right: 6px; }
.lang a { font-size: 12.5px; font-weight: 700; letter-spacing: .04em; padding: 5px 10px; border-radius: 999px; color: var(--muted); }
.lang a[aria-current="true"] { background: var(--paper); color: var(--ink); box-shadow: 0 1px 2px rgba(0,0,0,.08); }

/* ---------- Resto de categorías ---------- */
.cats-more { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; margin-top: 18px; }
.cat-mini {
  display: flex; align-items: center; gap: 10px; padding: 10px 14px 10px 10px;
  background: var(--paper); border-radius: 999px; font-size: 14px; font-weight: 600; line-height: 1.25;
  transition: box-shadow .2s, transform .2s;
}
.cat-mini:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.cat-mini img { width: 44px; height: 44px; object-fit: contain; flex: none; }
@media (max-width: 1080px) { .cats-more { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 600px) {
  .cats-more { grid-template-columns: 1fr 1fr; gap: 10px; }
  .cat-mini { font-size: 13px; border-radius: 14px; }
  .lang { margin-right: 0; }
  .lang a { padding: 4px 7px; font-size: 11.5px; }
  .header-actions { gap: 0; }
  .header-actions .icon-btn { width: 38px; height: 38px; }
}

/* =========================================================
   PÁGINAS INTERIORES (tienda, categoría, producto)
   ========================================================= */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.home .perks-foot { display: none; }

/* Migas de pan */
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 13.5px; color: var(--muted); margin-bottom: 22px; }
.crumbs a:hover { color: var(--olive); text-decoration: underline; }
.crumbs [aria-current] { color: var(--ink); }

/* Cabecera de categoría */
.page-hero { padding: 36px 0 28px; }
.page-hero h1 { font-size: clamp(40px, 5vw, 64px); margin: 12px 0 6px; }
.page-hero p { margin: 0; color: var(--ink-soft); }
.cat-chips {
  display: flex; gap: 10px; margin-top: 30px; overflow-x: auto; padding-bottom: 8px; scrollbar-width: thin;
  scroll-snap-type: x proximity;
}
.chip {
  flex: none; display: inline-flex; align-items: center; gap: 8px; scroll-snap-align: start;
  padding: 7px 16px 7px 8px; border-radius: 999px; background: var(--paper); font-size: 14px; font-weight: 600;
  border: 1.5px solid transparent; transition: border-color .2s;
}
.chip:first-child { padding-left: 16px; }
.chip img { width: 30px; height: 30px; object-fit: contain; border-radius: 50%; }
.chip small { font-weight: 500; color: var(--muted); }
.chip:hover { border-color: var(--line); }
.chip.active { background: var(--olive); color: #fff; }
.chip.active small { color: #CFE3B1; }

/* Barra de herramientas */
.shop-body { padding: 8px 0 96px; }
.toolbar {
  display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; align-items: center;
  padding: 16px 0 24px; border-top: 1px solid var(--line); margin-bottom: 4px;
}
.toolbar[hidden] { display: none; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filter {
  border: 1.5px solid var(--line); background: transparent; border-radius: 999px; padding: 8px 16px;
  font-size: 14px; font-weight: 600; color: var(--ink-soft); transition: all .2s;
}
.filter:hover { border-color: var(--ink-soft); }
.filter[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--cream); }
.toolbar-right { display: flex; align-items: center; gap: 18px; }
.switch { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--ink-soft); cursor: pointer; }
.switch input { accent-color: var(--olive); width: 17px; height: 17px; }
.select { position: relative; }
.select select {
  appearance: none; font: inherit; font-size: 14px; font-weight: 600; color: var(--ink);
  background: var(--paper); border: 1.5px solid var(--line); border-radius: 999px; padding: 9px 40px 9px 16px; cursor: pointer;
}
.select svg { position: absolute; right: 14px; top: 50%; width: 16px; height: 16px; transform: translateY(-50%); pointer-events: none; }
.no-results { grid-column: 1 / -1; text-align: center; color: var(--muted); padding: 40px 0; }

/* Agotados */
.card.is-out .card-img img { opacity: .45; filter: grayscale(.6); }
.card-tag.out { background: var(--ink); color: #fff; z-index: 1; }

/* Categoría vacía */
.empty { text-align: center; max-width: 560px; margin: 24px auto 0; padding: 48px 24px; background: var(--paper); border-radius: var(--radius); }
.empty[hidden] { display: none; }
.empty img { width: 120px; height: 120px; object-fit: contain; margin: 0 auto 12px; }
.empty h2 { font-size: 30px; margin-bottom: 10px; }
.empty p { color: var(--ink-soft); margin: 0 0 24px; }

/* ---------- Ficha de producto ---------- */
.pdp { padding: 32px 0 24px; }
.pdp-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: start; }
.pdp-media { position: sticky; top: 100px; }
.pdp-photo { position: relative; background: #fff; border-radius: var(--radius); aspect-ratio: 1; overflow: hidden; }
.pdp-photo img { width: 100%; height: 100%; object-fit: contain; padding: 4%; }
.pdp-photo .card-tag { top: 20px; left: 20px; font-size: 13px; }
.pdp-info { padding-top: 8px; }
.pdp-info h1 { font-size: clamp(36px, 4vw, 54px); margin: 12px 0 16px; }
.pdp-short { color: var(--ink-soft); font-size: 17px; margin: 0 0 24px; }
.pdp-price { display: flex; align-items: baseline; gap: 12px; margin-bottom: 24px; }
.pdp-price .price { font-size: 38px; }
.pdp-price .unit { font-size: 14px; color: var(--muted); }
.pdp-formats[hidden] { display: none; }
.pdp-label { font-size: 14px; color: var(--ink-soft); margin-bottom: 10px; }
.pdp-label strong { color: var(--ink); }
.format-pills { display: grid; grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); gap: 8px; margin-bottom: 26px; }
.format-pill {
  display: flex; flex-direction: column; align-items: flex-start; gap: 2px; text-align: left;
  padding: 11px 14px; border-radius: var(--radius-sm); border: 1.5px solid var(--line); background: var(--paper);
  font-size: 14px; font-weight: 600; color: var(--ink); transition: border-color .2s, box-shadow .2s;
}
.format-pill small { font-weight: 500; color: var(--muted); font-size: 13px; }
.format-pill:hover:not(:disabled) { border-color: var(--ink-soft); }
.format-pill[aria-checked="true"] { border-color: var(--olive); box-shadow: inset 0 0 0 1px var(--olive); background: #F3F7EC; }
.format-pill[aria-checked="true"] small { color: var(--olive); }
.format-pill:disabled { opacity: .45; cursor: not-allowed; text-decoration: line-through; }
.pdp-buy { display: flex; gap: 12px; margin-bottom: 28px; }
.pdp-buy[hidden], .pdp-out[hidden] { display: none; }
.qty { display: flex; align-items: center; background: var(--paper); border: 1.5px solid var(--line); border-radius: 999px; }
.qty button { width: 44px; height: 50px; border: 0; background: transparent; display: grid; place-items: center; color: var(--ink); }
.qty button svg { width: 16px; height: 16px; }
.qty input { width: 38px; border: 0; background: transparent; text-align: center; font: inherit; font-weight: 700; font-size: 16px; -moz-appearance: textfield; }
.qty input::-webkit-inner-spin-button { -webkit-appearance: none; }
.btn-add { flex: 1; font-size: 16px; }
.btn-add span { font-weight: 500; opacity: .85; }
.pdp-out { background: #FBEDE6; color: #6E2E14; border-radius: var(--radius-sm); padding: 16px 18px; margin-bottom: 28px; font-size: 15px; }
.pdp-out a { text-decoration: underline; }
.pdp-perks { list-style: none; padding: 0; margin: 0 0 22px; border-top: 1px solid var(--line); }
.pdp-perks li { display: flex; gap: 12px; align-items: center; padding: 13px 0; border-bottom: 1px solid var(--line); font-size: 15px; color: var(--ink-soft); }
.pdp-perks svg { width: 22px; height: 22px; color: var(--olive); flex: none; }
.pdp-perks strong { color: var(--ink); }
.pdp-meta { display: flex; flex-wrap: wrap; gap: 6px 20px; font-size: 13.5px; color: var(--muted); }
.pdp-meta a { color: var(--olive); }

.pdp-details { max-width: 860px; margin: 64px 0 0; border-top: 1px solid var(--line); }
.pdp-details details { border-bottom: 1px solid var(--line); }
.pdp-details summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 22px 0; font-family: var(--serif); font-size: 24px; font-weight: 600;
}
.pdp-details summary::-webkit-details-marker { display: none; }
.pdp-details summary svg { width: 22px; height: 22px; transition: transform .25s; flex: none; }
.pdp-details details[open] summary svg { transform: rotate(180deg); }
.prose { padding: 0 0 28px; color: var(--ink-soft); font-size: 16.5px; }
.prose h3 { font-size: 22px; color: var(--ink); margin: 0 0 12px; }
.prose h3 strong { font-weight: 600; }
.prose p { margin: 0 0 14px; }
.prose strong { color: var(--ink); }
.prose ul { padding-left: 0; list-style: none; margin: 0 0 16px; display: grid; gap: 6px; }
.prose ul li { padding-left: 26px; position: relative; }
.prose ul li::before { content: ""; position: absolute; left: 4px; top: .62em; width: 9px; height: 9px; border-radius: 50%; background: var(--lime); }
.prose a { color: var(--olive); text-decoration: underline; }
.related { padding-top: 72px; }

/* Barra de compra fija (móvil) */
.sticky-buy {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; display: none;
  align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: var(--paper); border-top: 1px solid var(--line);
  box-shadow: 0 -6px 20px rgba(0,0,0,.06); transform: translateY(110%); transition: transform .3s;
}
.sticky-buy div { min-width: 0; }
.sticky-buy strong { display: block; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sticky-buy span { font-size: 13.5px; color: var(--muted); }
.sticky-buy .btn { padding: 13px 24px; flex: none; }
.sticky-buy.show { transform: none; }
.sticky-buy.disabled { display: none !important; }

/* Aviso "añadido al carrito" */
.toast {
  position: fixed; right: 20px; top: 96px; z-index: 80; max-width: 360px;
  display: flex; gap: 12px; align-items: flex-start; padding: 16px 18px; border-radius: var(--radius);
  background: var(--ink); color: var(--cream); font-size: 14.5px; line-height: 1.45; box-shadow: var(--shadow);
  opacity: 0; transform: translateY(-10px); pointer-events: none; transition: opacity .25s, transform .25s;
}
.toast.show { opacity: 1; transform: none; }
.toast svg { width: 22px; height: 22px; color: var(--lime); flex: none; margin-top: 1px; }
.toast span { color: #C9CBBE; }
.toast span strong { color: var(--lime); }

@media (max-width: 900px) {
  .pdp-grid { grid-template-columns: 1fr; gap: 28px; }
  .pdp-media { position: static; }
  .pdp-photo { max-width: 520px; margin-inline: auto; }
  .sticky-buy { display: flex; }
  .single-product .kit-digital { padding-bottom: 90px; }
  .toolbar { flex-direction: column; align-items: stretch; }
  .toolbar-right { justify-content: space-between; }
}
@media (max-width: 600px) {
  .page-hero { padding-top: 24px; }
  .cat-chips { margin-inline: -16px; padding-inline: 16px; }
  .filters { flex-wrap: nowrap; overflow-x: auto; margin-inline: -16px; padding-inline: 16px; }
  .filter { flex: none; }
  .pdp-price .price { font-size: 32px; }
  .format-pills { grid-template-columns: 1fr 1fr; }
  .pdp-details { margin-top: 40px; }
  .pdp-details summary { font-size: 20px; }
  .toast { left: 16px; right: 16px; top: auto; bottom: 16px; max-width: none; }
  .single-product .toast { bottom: 90px; }
}

.no-photo { object-fit: contain !important; padding: 26% !important; opacity: .18; }
.format-pills { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }

.switch span { white-space: nowrap; }

/* =========================================================
   OPTIMIZACIÓN MÓVIL
   ========================================================= */
html { -webkit-text-size-adjust: 100%; }
a, button, summary, label { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
.nav-extra { display: none; }

/* En pantallas táctiles no hay hover: evitamos tarjetas "levantadas" tras tocar */
@media (hover: none) {
  .btn:hover, .card:hover, .cat:hover, .cat-mini:hover, .add:hover, .cat:hover img, .card:hover .card-img img { transform: none; }
  .card:hover, .cat:hover, .cat-mini:hover { box-shadow: none; }
  .gilda-list a:hover { padding-left: 0; }
  .btn:active, .add:active, .format-pill:active, .filter:active, .chip:active { transform: scale(.97); }
  .card:active, .cat:active { transform: scale(.985); }
}

@media (max-width: 900px) {
  .nav { max-height: calc(100dvh - 78px); overflow-y: auto; overscroll-behavior: contain; }
  body.menu-open { overflow: hidden; }
}

@media (max-width: 600px) {
  /* Cabecera: solo buscar, carrito y menú; cuenta e idioma van dentro del menú */
  .lang-head, .account-btn { display: none; }
  .header-actions .icon-btn { width: 44px; height: 44px; }
  .header .wrap { height: 68px; }
  .nav { inset: 68px 0 auto 0; max-height: calc(100dvh - 68px); }
  .nav-extra { display: flex; flex-direction: column; gap: 14px; padding-top: 18px; }
  .nav-extra > a { display: flex; align-items: center; gap: 10px; border: 0 !important; padding: 6px 4px !important; font-size: 17px !important; }
  .nav-extra > a svg { width: 22px; height: 22px; }
  .nav-extra .lang { align-self: flex-start; margin: 0; }
  .nav-extra .lang a { font-size: 14px; padding: 10px 18px; border: 0; }

  /* iOS hace zoom en campos con letra < 16px */
  input, select, textarea, .select select { font-size: 16px; }

  /* Zonas táctiles de al menos 44px */
  .link-arrow { padding-block: 10px; }
  .switch { padding-block: 10px; }
  .switch input { width: 20px; height: 20px; }
  .pdp-info .eyebrow { padding-block: 8px; }
  .qty button { width: 46px; height: 52px; }
  .chip { padding-block: 9px; }
  .chip small { font-size: 12px; }
  .filter { padding: 10px 16px; }
  .footer ul { gap: 4px; }
  .footer ul a { display: inline-block; padding-block: 6px; }
  .crumbs { font-size: 13px; }
  .crumbs a { padding-block: 6px; }
  .topbar { font-size: 12.5px; padding: 8px 12px; }
}

@media (max-width: 360px) {
  .logo img { height: 40px; }
  .hero h1 { font-size: 36px; }
  .products { gap: 10px; }
  .card-body { padding: 2px 11px 12px; }
  .card h3 { font-size: 14px; }
  .price { font-size: 17px; }
  .price small { display: block; font-size: 11.5px; }
  .add { width: 36px; height: 36px; }
}

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

/* Zona táctil ampliada del botón + sin cambiar su tamaño visual */
.add { position: relative; }
.add::after { content: ""; position: absolute; inset: -6px; border-radius: 50%; }

@media (max-width: 600px) {
  .toolbar-right { gap: 12px; }
  .select { flex: 1; min-width: 0; }
  .select select { width: 100%; }
}

/* =========================================================
   CARRITO, CHECKOUT, CUENTA, NOSOTROS, CONTACTO, LEGALES
   ========================================================= */
.page-hero-sm { padding-bottom: 20px; }
.page-hero-sm h1 { font-size: clamp(36px, 4.4vw, 54px); }
.page-hero .lead { font-size: 18px; color: var(--ink-soft); max-width: 36em; margin-top: 12px; }
.checkout-body { padding: 12px 0 96px; }
.btn-block { width: 100%; }
.btn-lg { padding: 18px 26px; font-size: 16.5px; }
.free { color: var(--olive); font-weight: 700; }
.hp { position: absolute; left: -9999px; }

/* Pasos de compra */
.steps { display: flex; gap: 8px; list-style: none; padding: 0; margin: 0 0 18px; font-size: 14px; color: var(--muted); flex-wrap: wrap; }
.steps li, .steps a { display: inline-flex; align-items: center; gap: 8px; }
.steps li + li::before { content: ""; width: 24px; height: 1.5px; background: var(--line); margin-right: 4px; }
.steps span { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 13px; background: var(--cream-2); }
.steps span svg { width: 14px; height: 14px; }
.steps [aria-current] { color: var(--ink); font-weight: 600; }
.steps [aria-current] span { background: var(--olive); color: #fff; }
.steps .done span { background: var(--lime); color: var(--olive-dark); }

/* Carrito */
.cart-grid, .checkout-grid { display: grid; grid-template-columns: 1fr 380px; gap: 40px; align-items: start; }
.cart-grid[hidden] { display: none; }
.ship-progress { background: var(--paper); border-radius: var(--radius); padding: 18px 22px; margin-bottom: 16px; }
.ship-progress p { margin: 0 0 10px; font-size: 15px; color: var(--ink-soft); }
.ship-progress strong { color: var(--ink); }
.bar { height: 8px; background: var(--cream-2); border-radius: 999px; overflow: hidden; }
.bar span { display: block; height: 100%; background: linear-gradient(90deg, var(--lime), var(--olive)); border-radius: 999px; transition: width .4s; }
.cart-items { list-style: none; padding: 0; margin: 0 0 20px; background: var(--paper); border-radius: var(--radius); }
.cart-item { display: grid; grid-template-columns: 96px 1fr auto; gap: 18px; align-items: center; padding: 18px 22px; }
.cart-item + .cart-item { border-top: 1px solid var(--line); }
.cart-thumb { width: 96px; height: 96px; border-radius: var(--radius-sm); overflow: hidden; background: #fff; }
.cart-thumb img { width: 100%; height: 100%; object-fit: contain; }
.cart-name { font-weight: 600; font-size: 16.5px; display: block; }
.cart-format { font-size: 14px; color: var(--muted); }
.cart-actions { display: flex; align-items: center; gap: 16px; margin-top: 10px; }
.qty-sm button { width: 38px; height: 38px; }
.qty-sm span { min-width: 22px; text-align: center; font-weight: 700; }
.remove { border: 0; background: none; color: var(--muted); font-size: 14px; text-decoration: underline; padding: 10px 0; }
.remove:hover { color: var(--terracotta); }
.cart-line { font-family: var(--serif); font-size: 20px; font-weight: 600; align-self: start; padding-top: 4px; }
.back-link svg { flex: none; }
.empty-icon { width: 56px; height: 56px; color: var(--olive); margin: 0 auto 10px; display: block; }

/* Resumen */
.summary { background: var(--paper); border-radius: var(--radius); padding: 26px; }
.summary h2 { font-size: 26px; margin-bottom: 14px; }
.summary-sticky { position: sticky; top: 100px; }
.totals { margin: 0 0 18px; }
.totals > div { display: flex; justify-content: space-between; gap: 16px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 15.5px; }
.totals dt small { display: block; font-size: 12.5px; color: var(--muted); }
.totals dd { margin: 0; font-weight: 600; white-space: nowrap; }
.totals .total { border-bottom: 0; padding-top: 16px; align-items: baseline; }
.totals .total dt { font-weight: 700; font-size: 17px; }
.totals .total dd { font-family: var(--serif); font-size: 28px; }
.coupon { margin-bottom: 18px; }
.coupon summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; font-size: 14.5px; color: var(--olive); font-weight: 600; padding: 6px 0; }
.coupon summary::-webkit-details-marker { display: none; }
.coupon summary svg { width: 18px; height: 18px; transition: transform .2s; }
.coupon[open] summary svg { transform: rotate(180deg); }
.coupon-form { display: flex; gap: 8px; margin-top: 10px; }
.coupon-form input { flex: 1; min-width: 0; }
.coupon-form .btn { padding: 12px 18px; }
.secure { display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 13.5px; color: var(--muted); margin-top: 14px; text-align: center; }
.secure svg { width: 16px; height: 16px; flex: none; }
.pay-logos { margin: 12px auto 0; height: 28px; width: auto; }
.mini-items { list-style: none; padding: 0; margin: 0 0 8px; display: grid; gap: 14px; }
.mini-items li { display: grid; grid-template-columns: 60px 1fr auto; gap: 12px; align-items: center; font-size: 14.5px; }
.mini-thumb { position: relative; width: 60px; height: 60px; background: #fff; border-radius: var(--radius-sm); border: 1px solid var(--line); }
.mini-thumb img { width: 100%; height: 100%; object-fit: contain; border-radius: var(--radius-sm); }
.mini-thumb b { position: absolute; top: -7px; right: -7px; min-width: 22px; height: 22px; border-radius: 11px; background: var(--ink-soft); color: #fff; font-size: 12px; display: grid; place-items: center; }
.mini-name { font-weight: 600; line-height: 1.3; }
.mini-name small { display: block; font-weight: 400; color: var(--muted); }
.summary-toggle { display: none; }

/* Formularios */
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; flex: 1; min-width: 0; }
.field label { font-size: 14px; font-weight: 600; }
.field label small { font-weight: 400; color: var(--muted); }
.field > small { font-size: 13px; color: var(--muted); }
.field input, .field textarea, .coupon-form input, .select-field select {
  font: inherit; font-size: 16px; color: var(--ink); width: 100%;
  background: #fff; border: 1.5px solid var(--line); border-radius: var(--radius-sm); padding: 13px 14px;
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus, .field textarea:focus, .coupon-form input:focus, .select-field select:focus {
  outline: none; border-color: var(--olive); box-shadow: 0 0 0 3px rgba(61,90,28,.15);
}
.select-field select { border-radius: var(--radius-sm); padding-right: 40px; font-weight: 500; }
.field-row { display: flex; gap: 14px; }
.field.invalid input, .field.invalid textarea { border-color: var(--terracotta); background: #FFF8F5; }
.field.invalid::after { content: "Revisa este campo"; font-size: 13px; color: var(--terracotta); }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 14.5px; color: var(--ink-soft); cursor: pointer; padding: 4px 0; }
.check input { width: 20px; height: 20px; accent-color: var(--olive); flex: none; margin: 1px 0 0; }
.check a { color: var(--olive); text-decoration: underline; }
.check.invalid span { color: var(--terracotta); }

/* Checkout */
.checkout-form { min-width: 0; }
.co-step { border: 0; padding: 26px; margin: 0 0 16px; background: var(--paper); border-radius: var(--radius); min-width: 0; }
.co-step legend { float: left; width: 100%; display: flex; align-items: center; gap: 10px; font-family: var(--serif); font-size: 22px; font-weight: 600; margin-bottom: 16px; padding: 0; }
.co-step legend + * { clear: both; }
.co-step legend span { width: 30px; height: 30px; border-radius: 50%; background: var(--olive); color: #fff; display: grid; place-items: center; font-family: var(--sans); font-size: 14px; }
.co-hint { margin: 0 0 14px; font-size: 14.5px; color: var(--ink-soft); clear: both; }
.co-hint a, .co-note a { color: var(--olive); text-decoration: underline; font-weight: 600; }
.co-more summary { cursor: pointer; font-size: 14.5px; color: var(--olive); font-weight: 600; padding: 8px 0; }
.co-more .field { margin-top: 10px; }
.option {
  display: flex; align-items: center; gap: 14px; padding: 16px 18px; border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  cursor: pointer; transition: border-color .2s, background .2s; clear: both;
}
.option + .option { margin-top: 10px; }
.option input { width: 20px; height: 20px; accent-color: var(--olive); flex: none; margin: 0; }
.option-body { flex: 1; display: flex; flex-direction: column; }
.option-body small { color: var(--muted); font-size: 13.5px; line-height: 1.45; }
.option-price { font-weight: 700; white-space: nowrap; }
.option:has(input:checked) { border-color: var(--olive); background: #F3F7EC; }
.co-legal { padding: 4px 4px 18px; }
.co-note { font-size: 13.5px; color: var(--muted); margin: 10px 0 0; }

/* Cuenta */
.auth-tabs { display: none; }
.auth-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; max-width: 980px; }
.auth-card { background: var(--paper); border-radius: var(--radius); padding: 30px; }
.auth-card h2 { font-size: 28px; margin-bottom: 20px; }
.auth-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: -4px 0 18px; font-size: 14.5px; flex-wrap: wrap; }
.auth-row a { color: var(--olive); text-decoration: underline; padding: 8px 0; }
.auth-perks { list-style: none; padding: 0; margin: -6px 0 20px; display: grid; gap: 8px; font-size: 14.5px; color: var(--ink-soft); }
.auth-perks li { display: flex; gap: 10px; align-items: center; }
.auth-perks svg { width: 18px; height: 18px; color: var(--olive); flex: none; }
.auth-card .co-note { margin: -4px 0 18px; }
.pass { position: relative; }
.pass input { padding-right: 76px; }
.pass-toggle { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); border: 0; background: var(--cream-2); border-radius: 8px; padding: 8px 12px; font-size: 13px; font-weight: 600; min-height: 36px; }

/* Nosotros */
.about-hero h1 { max-width: 15em; }
.about-hero h1 em { font-style: normal; color: var(--olive); }
.story { display: grid; grid-template-columns: 380px 1fr; gap: 64px; align-items: start; }
.story-video { margin: 0; position: sticky; top: 100px; }
.story-video video { width: 100%; height: auto; aspect-ratio: 9/16; object-fit: cover; border-radius: var(--radius); background: var(--ink); box-shadow: var(--shadow); display: block; }
.story-video figcaption { font-size: 14px; color: var(--muted); text-align: center; margin-top: 10px; }
.story-text { font-size: 18px; color: var(--ink-soft); max-width: 38em; }
.story-text p { margin: 0 0 18px; }
.story-text strong { color: var(--ink); }
.story-text blockquote {
  margin: 28px 0; padding: 4px 0 4px 24px; border-left: 3px solid var(--lime);
  font-family: var(--serif); font-size: 26px; line-height: 1.3; color: var(--olive); font-style: normal;
}
.values { background: var(--paper); border-block: 1px solid var(--line); }
.values .wrap { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; padding-block: 40px; }
.value svg { width: 30px; height: 30px; color: var(--olive); }
.value h3 { font-size: 20px; margin: 12px 0 6px; }
.value p { margin: 0; color: var(--muted); font-size: 15px; }
.store-gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 24px; }
.store-gallery img { width: 100%; height: auto; aspect-ratio: 3/4; object-fit: cover; border-radius: var(--radius); }
.visit-lg { align-items: center; margin-top: 0; }
.visit-lg div { flex: 1; }
.visit-lg .btn { flex: none; }
.cta-band { background: var(--olive); color: #fff; text-align: center; padding: 72px 0; }
.cta-band h2 { font-size: clamp(30px, 3.6vw, 44px); margin-bottom: 10px; }
.cta-band p { color: #D6E5C2; margin: 0 0 26px; font-size: 17px; }

/* Contacto */
.contact-grid { display: grid; grid-template-columns: 1fr 1.25fr; gap: 32px; align-items: start; }
.contact-cards { display: grid; gap: 12px; }
.contact-card {
  display: flex; gap: 16px; align-items: center; background: var(--paper); border-radius: var(--radius); padding: 20px 22px;
  transition: box-shadow .2s, transform .2s;
}
.contact-card:hover { box-shadow: var(--shadow); }
.contact-card svg { width: 26px; height: 26px; color: var(--olive); flex: none; }
.contact-card small { display: block; font-size: 13px; color: var(--muted); }
.contact-card strong { font-size: 17px; word-break: break-word; }
.contact-card span { display: block; font-size: 14.5px; color: var(--ink-soft); }
.contact-social { display: flex; align-items: center; gap: 10px; padding: 10px 4px; color: var(--muted); font-size: 14.5px; }
.contact-social a { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--paper); color: var(--ink); }
.contact-social svg { width: 20px; height: 20px; }
.contact-form .btn { margin-top: 18px; }
.sent { text-align: center; padding: 40px 10px; }
.sent svg { width: 48px; height: 48px; color: var(--olive); }
.sent h2 { margin: 10px 0 8px; }
.sent p { color: var(--ink-soft); margin: 0; }

/* Legales */
.legal-body { padding: 8px 0 96px; }
.legal-grid { display: grid; grid-template-columns: 280px 1fr; gap: 56px; align-items: start; }
.legal-toc { position: sticky; top: 100px; max-height: calc(100vh - 120px); overflow-y: auto; }
.legal-toc[hidden] { display: none; }
.legal-toc[hidden] + .legal-prose { grid-column: 1 / -1; }
.legal-toc summary { list-style: none; display: flex; justify-content: space-between; align-items: center; font-weight: 700; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--olive); padding: 4px 0 12px; cursor: pointer; }
.legal-toc summary::-webkit-details-marker { display: none; }
.legal-toc summary svg { width: 18px; height: 18px; display: none; }
.legal-toc nav { display: grid; border-left: 2px solid var(--line); }
.legal-toc nav a { font-size: 14px; color: var(--ink-soft); padding: 7px 0 7px 16px; margin-left: -2px; border-left: 2px solid transparent; line-height: 1.35; }
.legal-toc nav a:hover { color: var(--ink); border-left-color: var(--lime); }
.legal-prose { background: var(--paper); border-radius: var(--radius); padding: 40px 44px; max-width: 860px; overflow-wrap: anywhere; }
.legal-prose h2 { font-size: 26px; color: var(--ink); margin: 36px 0 14px; scroll-margin-top: 100px; }
.legal-prose h2:first-child { margin-top: 0; }
.legal-prose h3 { font-size: 19px; margin: 24px 0 10px; }
.legal-prose table { width: 100%; border-collapse: collapse; font-size: 14px; margin: 0 0 18px; display: block; overflow-x: auto; }
.legal-prose td, .legal-prose th { border: 1px solid var(--line); padding: 8px 10px; text-align: left; vertical-align: top; }

@media (max-width: 1080px) {
  .cart-grid, .checkout-grid { grid-template-columns: 1fr 340px; gap: 28px; }
  .story { grid-template-columns: 320px 1fr; gap: 40px; }
}
@media (max-width: 900px) {
  .cart-grid, .checkout-grid, .contact-grid, .legal-grid { grid-template-columns: 1fr; }
  .summary-sticky { display: none; }
  .summary-toggle {
    display: block; background: var(--paper); border-radius: var(--radius); margin-bottom: 16px;
  }
  .summary-toggle summary { list-style: none; display: flex; justify-content: space-between; align-items: center; padding: 16px 20px; cursor: pointer; font-weight: 600; color: var(--olive); }
  .summary-toggle summary::-webkit-details-marker { display: none; }
  .summary-toggle summary span { display: flex; align-items: center; gap: 10px; }
  .summary-toggle summary svg { width: 20px; height: 20px; }
  .summary-toggle summary strong { font-family: var(--serif); font-size: 20px; color: var(--ink); }
  .summary-toggle .mini-items { padding: 4px 20px 20px; }
  .cart-page .kit-digital { padding-bottom: 90px; }
  .cart-page .sticky-buy { display: flex; }
  .auth-tabs { display: flex; width: 100%; margin-bottom: 16px; }
  .auth-tabs .tab { flex: 1; }
  .auth-grid { grid-template-columns: 1fr; }
  .auth-card.pane-hidden { display: none; }
  .story { grid-template-columns: 1fr; }
  .story-video { position: static; max-width: 340px; margin-inline: auto; }
  .values .wrap { grid-template-columns: repeat(2, 1fr); }
  .store-gallery { grid-template-columns: repeat(2, 1fr); }
  .legal-toc { position: static; max-height: none; background: var(--paper); border-radius: var(--radius); padding: 14px 20px; }
  .legal-toc summary { padding: 4px 0; }
  .legal-toc summary svg { display: block; transition: transform .2s; }
  .legal-toc details[open] summary svg { transform: rotate(180deg); }
  .legal-toc details[open] nav { margin-top: 10px; }
}
@media (max-width: 600px) {
  .steps { font-size: 13px; gap: 6px; }
  .steps li + li::before { width: 10px; }
  .cart-item { grid-template-columns: 72px 1fr; gap: 14px; padding: 16px; position: relative; }
  .cart-thumb { width: 72px; height: 72px; }
  .cart-line { grid-column: 2; font-size: 18px; padding-top: 0; }
  .cart-actions { gap: 10px; }
  .summary, .co-step, .auth-card { padding: 20px; }
  .field-row { flex-direction: column; gap: 0; }
  .co-step legend { font-size: 20px; }
  .values .wrap { gap: 28px 16px; padding-block: 32px; }
  .value h3 { font-size: 17px; }
  .store-gallery { gap: 10px; }
  .visit-lg { flex-wrap: wrap; }
  .visit-lg .btn { width: 100%; }
  .story-text { font-size: 17px; }
  .story-text blockquote { font-size: 22px; }
  .legal-prose { padding: 24px 20px; }
  .legal-prose h2 { font-size: 22px; }
}

@media (max-width: 600px) {
  .qty-sm button { width: 44px; height: 44px; }
  .cart-name { padding-block: 6px; }
  .coupon summary, .co-more summary { padding-block: 12px; }
  .steps a { padding-block: 10px; }
  .field label small { font-size: 13px; }
}

@media (max-width: 600px) {
  /* Pasos: en móvil solo se lee el paso actual */
  .steps { flex-wrap: nowrap; }
  .steps li:not([aria-current]) { font-size: 0; gap: 0; }
  .steps li:not([aria-current]) a { font-size: 0; gap: 0; }
  .steps li:not([aria-current]) span { font-size: 13px; }
  .steps li + li::before { width: 16px; margin-right: 6px; }
}


/* Tipografía de títulos y cifras: Playfair Display con números rectos (15/10/2026) */
.price, .hero-badge .num, .format .size, .gilda-list .p, .totals dd, .cart-line, .benefit .n, .pdp-price .price { font-variant-numeric: lining-nums tabular-nums; }
.price { font-weight: 700; letter-spacing: -.01em; }
.hero h1, .page-hero h1, .pdp-info h1 { letter-spacing: -.005em; }

/* =========================================================
   SECCIÓN ANIMADA: la aceituna que rueda (15/10/2026)
   ========================================================= */
.olive-roll { background: var(--cream-2); padding: 64px 0; overflow: hidden; }
.olive-stage { position: relative; height: 200px; }
.olive { position: absolute; right: 0; top: 50%; width: 120px; height: 120px; margin-top: -60px; transform: translateX(var(--dist, 0)) rotate(var(--turn, 0)); }
.olive svg { width: 100%; height: 100%; display: block; overflow: visible; }
.olive-shadow { position: absolute; right: 10px; top: 50%; margin-top: 58px; width: 100px; height: 14px; border-radius: 50%; background: rgba(36,54,15,.18); filter: blur(4px); transform: translateX(var(--dist, 0)); }
.olive-text { position: absolute; right: 156px; top: 50%; transform: translateY(-50%); text-align: right; max-width: min(680px, calc(100% - 170px)); }
.olive-text h2 { font-size: clamp(28px, 3.8vw, 48px); }
.olive-text h2 em { font-style: normal; color: var(--olive); }
.olive-text .eyebrow { margin-bottom: 10px; }
.olive-text p { margin: 12px 0 0; color: var(--ink-soft); font-size: 17px; }
.olive-text .link-arrow { margin-left: 8px; }
/* Antes de animar (solo si hay JS): aceituna fuera a la izquierda y texto escondido dentro de ella */
.js .olive-roll:not(.played) .olive-text > * { clip-path: inset(0 0 0 100%); transform: translateX(60px); opacity: 0; }
.olive-roll.play .olive { transition: transform 2s cubic-bezier(.25,.8,.3,1); transform: translateX(0) rotate(0deg); animation: olive-squash .5s 1.95s ease-out; }
.olive-roll.play .olive-shadow { transition: transform 2s cubic-bezier(.25,.8,.3,1); transform: translateX(0); }
.js .olive-roll.play .olive-text > * { transition: clip-path 1s cubic-bezier(.2,.8,.2,1), transform 1s cubic-bezier(.2,.8,.2,1), opacity .4s; clip-path: inset(0 0 0 0); transform: none; opacity: 1; }
.olive-roll.play .olive-text > :nth-child(1) { transition-delay: 2.05s; }
.olive-roll.play .olive-text > :nth-child(2) { transition-delay: 2.2s; }
.olive-roll.play .olive-text > :nth-child(3) { transition-delay: 2.4s; }
@keyframes olive-squash { 0%, 100% { scale: 1 1; } 30% { scale: 1.08 .92; } 60% { scale: .97 1.03; } }
@media (prefers-reduced-motion: reduce) {
  .olive, .olive-shadow { transform: none !important; transition: none !important; animation: none !important; }
  .js .olive-roll .olive-text > * { clip-path: none !important; transform: none !important; opacity: 1 !important; transition: none !important; }
}
@media (max-width: 760px) {
  .olive-roll { padding: 44px 0; }
  .olive-stage { height: auto; min-height: 260px; padding-bottom: 100px; }
  .olive-text { position: relative; right: auto; top: auto; transform: none; max-width: none; text-align: left; }
  .olive { width: 72px; height: 72px; top: auto; bottom: 14px; margin-top: 0; }
  .olive-shadow { width: 60px; right: 6px; top: auto; bottom: 8px; margin-top: 0; }
  .olive-text .link-arrow { margin-left: 0; display: flex; }
}

/* Lo que lleva el atributo hidden no se muestra nunca (p. ej. la pestaña inactiva de la portada) */
[hidden] { display: none !important; }

/* =========================================================
   ANIMACIÓN: la gilda que se monta sola (15/10/2026)
   ========================================================= */
.gildas-photo { position: relative; }
.gilda-build {
  position: absolute; right: 18px; bottom: 18px; width: 170px; height: 250px;
  background: var(--cream); border-radius: 999px 999px 24px 24px; padding: 14px 10px 8px;
  box-shadow: 0 10px 30px rgba(0,0,0,.25);
}
.gilda-build svg { width: 100%; height: 100%; display: block; overflow: visible; }
.gb-stick { transform-box: fill-box; transform-origin: 50% 100%; }
.gb-piece { transform-box: fill-box; transform-origin: 50% 50%; }
.js .gilda-build:not(.played) .gb-stick { transform: scaleY(0); }
.js .gilda-build:not(.played) .gb-piece { transform: translateY(-180px); opacity: 0; }
.js .gilda-build.play .gb-stick { transform: scaleY(1); transition: transform .55s cubic-bezier(.3,.8,.3,1); }
.gilda-build.play .gb-piece { animation: gb-drop .65s cubic-bezier(.3,.7,.4,1) both; }
.gilda-build.play .gb-1 { animation-delay: .55s; }
.gilda-build.play .gb-2 { animation-delay: 1.05s; }
.gilda-build.play .gb-3 { animation-delay: 1.55s; }
.gilda-build.play .gb-4 { animation-delay: 2.05s; }
@keyframes gb-drop {
  0%   { transform: translateY(-180px) rotate(-12deg); opacity: 0; }
  15%  { opacity: 1; }
  70%  { transform: translateY(6px) rotate(3deg) scale(1.04, .94); }
  85%  { transform: translateY(-3px) rotate(-1deg) scale(.98, 1.02); }
  100% { transform: none; opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .gb-stick, .gb-piece { transform: none !important; opacity: 1 !important; animation: none !important; transition: none !important; }
}
@media (max-width: 600px) {
  .gilda-build { width: 118px; height: 174px; right: 12px; bottom: 12px; padding: 10px 7px 6px; }
}

/* Tipografía Marcellus (15/10/2026): solo tiene un grosor, así que nada de negritas sintéticas */
h1, h2, h3, .price, .hero-badge .num, .hero-stamp, .format .size, .gilda-list .p, .benefit .n,
.pdp-details summary, .cart-line, .totals dd, .co-step legend, .summary-toggle summary strong,
.story-text blockquote, .cat h3, .empty h2 { font-weight: 400 !important; font-synthesis: none; }
h1, h2, h3 { letter-spacing: 0; line-height: 1.15; }
.card h3 { font-weight: 600 !important; } /* nombres de producto: siguen en DM Sans */
.price { font-size: 24px; letter-spacing: 0; }
.pdp-price .price { font-size: 40px; }

/* =========================================================
   HERO: el tarro que se abre (15/10/2026)
   Ordenador: título centrado, tarro debajo y los ingredientes a los lados.
   Móvil: antetítulo + título, tarro con los ingredientes en abanico, y debajo texto y botones.
   ========================================================= */
.hero-jar { position: relative; overflow: hidden; background: radial-gradient(ellipse 70% 55% at 50% 100%, rgba(139,195,74,.14), transparent 70%); }
.hj-defs { position: absolute; width: 0; height: 0; }
.hj-stage {
  --jar-w: clamp(124px, min(12vw, 22vh), 184px);
  --jar-h: calc(var(--jar-w) * 1.3);
  --base: clamp(52px, 6.4vw, 94px);
  position: relative; text-align: center;
  padding: clamp(24px, 4.5vh, 56px) 0 calc(var(--jar-h) + clamp(12px, 2.6vh, 26px));
}
.hj-text { position: relative; z-index: 3; max-width: min(780px, 66%); margin-inline: auto; }
.hero-jar .eyebrow::after { content: ""; width: 22px; height: 2px; background: var(--lime); border-radius: 2px; }
.hero-jar h1 { font-size: clamp(38px, min(5.2vw, 7.8vh), 70px); line-height: 1.08; margin: clamp(10px, 1.8vh, 16px) auto clamp(12px, 2vh, 18px); max-width: 13.5em; text-wrap: balance; }
.hero-jar h1 em { font-style: normal; color: var(--olive); }
.hero-jar .lead { font-size: clamp(16px, 2.4vh, 18px); line-height: 1.6; color: var(--ink-soft); max-width: 42em; margin: 0 auto clamp(18px, 3.2vh, 28px); text-wrap: pretty; }
.hero-jar .hero-ctas { justify-content: center; }

/* Escena: ocupa todo el escenario en ordenador; sus medidas sirven para calcular el vuelo de cada ingrediente */
.hj-scene { position: absolute; inset: 0; z-index: 1; pointer-events: none; container-type: size; }
.hj-jar {
  position: absolute; left: 50%; bottom: 0; translate: -50% 0; z-index: 2;
  width: var(--jar-w); aspect-ratio: 200 / 260; container-type: inline-size;
}
.hj-body { position: absolute; left: 0; top: 15.385%; width: 100%; height: 84.615%; overflow: visible; }
.hj-lid { position: absolute; left: 0; top: 0; width: 100%; height: 19.23%; overflow: visible; transform-origin: 50% 60%; z-index: 3; }
.hj-shadow { position: absolute; left: 4%; right: 4%; bottom: -3%; height: 8%; border-radius: 50%; background: rgba(36,54,15,.22); filter: blur(5px); }
.hj-label {
  position: absolute; left: 17%; top: 57%; width: 66%; height: 25%; z-index: 2;
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  background: var(--cream); border-radius: 6px; color: var(--olive-dark);
  box-shadow: 0 0 0 1.5px rgba(61,90,28,.55), inset 0 0 0 3px var(--cream), inset 0 0 0 4px rgba(61,90,28,.3);
  font-family: var(--sans); font-weight: 700; font-size: 6.6cqw; line-height: 1.15; letter-spacing: .05em; text-transform: uppercase;
}
.hj-label small { font-family: var(--serif); font-weight: 400; font-size: 7.6cqw; letter-spacing: .02em; text-transform: none; color: var(--olive); margin-bottom: 1.4cqw; }
.hj-glow {
  position: absolute; left: 50%; bottom: calc(var(--jar-h) * .3); translate: -50% 50%;
  width: calc(var(--jar-w) * 3.2); aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle, rgba(232,226,122,.45), rgba(139,195,74,.16) 45%, transparent 70%);
}

/* Ingredientes: --x/--y = centro en ordenador (% de la escena), --mx/--my = centro en móvil */
.hj-item {
  --cx: var(--x); --cy: var(--y);
  --fx: calc(50cqw - var(--cx) * 1cqw);
  --fy: calc(100cqh - var(--jar-h) * .8 - var(--cy) * 1cqh);
  position: absolute; left: calc(var(--cx) * 1%); top: calc(var(--cy) * 1%);
  width: calc(var(--base) * var(--s, 1)); aspect-ratio: 1; translate: -50% -50%;
  transform: rotate(var(--r, 0deg));
}
.hj-scene { --mid-x: .12; --mid-y: .92; --arc: 2cqh; --lid-up: -130%; }
.hj-item svg { width: 100%; height: 100%; display: block; overflow: visible; filter: drop-shadow(0 6px 8px rgba(36,54,15,.18)); }
.hj-i1 { --x: 12; --y: 12; --mx: 26; --my: 90; --s: .8;   --r: -10deg; --d: 0s; }
.hj-i2 { --x: 5;  --y: 30; --mx: 15; --my: 46; --s: .9;   --r: -14deg; --d: .06s; }
.hj-i3 { --x: 10; --y: 54; --mx: 22; --my: 15; --s: 1.45; --r: 6deg;   --d: .12s; }
.hj-i4 { --x: 4;  --y: 76; --mx: 6;  --my: 74; --s: .8;   --r: 0deg;   --d: .18s; }
.hj-i5 { --x: 11; --y: 92; --mx: 40; --my: 7;  --s: .9;   --r: 16deg;  --d: .24s; }
.hj-i6 { --x: 94; --y: 16; --mx: 61; --my: 6;  --s: .85;  --r: 14deg;  --d: .03s; }
.hj-i7 { --x: 90; --y: 40; --mx: 80; --my: 17; --s: 1.2;  --r: -6deg;  --d: .09s; }
.hj-i8 { --x: 95; --y: 64; --mx: 86; --my: 48; --s: 1.25; --r: -12deg; --d: .15s; }
.hj-i9 { --x: 77; --y: 84; --mx: 91; --my: 79; --s: 1.35; --r: -6deg;  --d: .21s; }

/* Etiqueta "+90 productos": a la izquierda del tarro en ordenador */
.hj-badge {
  position: absolute; z-index: 3; right: calc(50% + var(--jar-w) / 2 + 14px); bottom: calc(var(--jar-h) * .36);
  display: flex; align-items: center; gap: 12px; width: max-content; max-width: 250px; text-align: left;
  background: var(--paper); border-radius: 14px; padding: 12px 16px; box-shadow: var(--shadow); rotate: -3deg;
}
.hj-badge .num { font-family: var(--serif); font-size: 30px; color: var(--olive); line-height: 1; font-variant-numeric: lining-nums; }
.hj-badge span:last-child { font-size: 13.5px; line-height: 1.3; color: var(--ink-soft); }

/* ---- Animación de entrada (CSS puro: arranca al cargar la página, el hero siempre está a la vista) ---- */
.hj-text > * { animation: hj-rise .8s cubic-bezier(.2,.8,.2,1) both; }
.hj-text > :nth-child(2) { animation-delay: .1s; }
.hj-text > :nth-child(3) { animation-delay: .25s; }
.hj-text > :nth-child(4) { animation-delay: .4s; }
.hj-jar  { animation: hj-jar-in .8s .2s cubic-bezier(.2,.8,.2,1) both; }
.hj-lid  { animation: hj-lid 1.4s 1s cubic-bezier(.45,.05,.35,1) both; }
.hj-glow { animation: hj-glow 1.2s 1.6s ease-out both; }
.hj-item { animation: hj-fly 1s calc(1.75s + var(--d)) cubic-bezier(.3,.6,.35,1) both; }
.hj-item svg { animation: hj-float 3.4s calc(3s + var(--d) * 4) ease-in-out infinite alternate; }
.hj-badge { animation: hj-tag .7s 2.6s cubic-bezier(.3,.7,.4,1.4) both; }

@keyframes hj-rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes hj-jar-in { from { opacity: 0; transform: translateY(30px) scale(.94); } to { opacity: 1; transform: none; } }
@keyframes hj-lid {
  0%   { transform: none; }
  9%   { transform: rotate(-6deg); }
  18%  { transform: rotate(5deg); }
  27%  { transform: rotate(-6deg); }
  36%  { transform: translateY(-6%) rotate(4deg); }
  58%  { transform: translate(14%, var(--lid-up, -220%)) rotate(-28deg); }
  86%  { transform: translate(50%, 350%) rotate(84deg); }
  93%  { transform: translate(50%, 334%) rotate(80deg); }
  100% { transform: translate(50%, 350%) rotate(84deg); }
}
@keyframes hj-glow { from { opacity: 0; transform: scale(.5); } to { opacity: 1; transform: none; } }
@keyframes hj-fly {
  0%   { transform: translate(var(--fx), var(--fy)) scale(.25) rotate(0deg); opacity: 0; }
  12%  { opacity: 1; }
  50%  { transform: translate(calc(var(--fx) * var(--mid-x, .45)), calc(var(--fy) * var(--mid-y, .45) - var(--arc, 16cqh))) scale(.95) rotate(calc(var(--r, 0deg) * .5 + 90deg)); }
  82%  { transform: translate(0, 0) scale(1.07, .93) rotate(var(--r, 0deg)); opacity: 1; }
  100% { transform: rotate(var(--r, 0deg)); opacity: 1; }
}
@keyframes hj-float { from { transform: translateY(0) rotate(0deg); } to { transform: translateY(-7px) rotate(4deg); } }
@keyframes hj-tag { from { opacity: 0; transform: translateY(14px) scale(.8); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  .hero-jar *, .hero-jar *::before { animation: none !important; }
}

/* Tablet y móvil */
@media (max-width: 900px) {
  .hj-stage {
    --jar-w: clamp(118px, 33vw, 196px);
    --base: clamp(40px, 12.5vw, 76px);
    display: flex; flex-direction: column; align-items: center;
    padding: 26px 0 40px;
  }
  .hj-text { display: contents; }
  .hj-text .eyebrow { order: 1; }
  .hero-jar h1 { order: 2; font-size: clamp(34px, 9.6vw, 54px); margin: 12px auto 0; max-width: 12em; }
  .hj-scene { order: 3; position: relative; inset: auto; width: 100%; height: calc(var(--jar-h) + clamp(60px, 18vw, 120px)); margin: 18px 0 26px; }
  .hero-jar .lead { order: 4; font-size: 16.5px; margin-bottom: 24px; max-width: 34em; }
  .hero-jar .hero-ctas { order: 5; width: 100%; }
  .hj-item { --cx: var(--mx); --cy: var(--my); }
  .hj-scene { --mid-x: .45; --mid-y: .45; --arc: 16cqh; --lid-up: -200%; }
  .hj-badge { order: 6; position: static; rotate: none; margin-top: 22px; max-width: none; box-shadow: none; background: var(--cream-2); padding: 10px 16px; animation: hj-rise .8s .5s cubic-bezier(.2,.8,.2,1) both; }
  .hj-badge .num { font-size: 24px; }
}
@media (max-width: 600px) {
  .hero-jar .hero-ctas { flex-direction: column; align-items: stretch; max-width: 360px; }
  .hero-jar .hero-ctas .btn { width: 100%; }
}

/* =========================================================
   MENÚ: desplegables "Delicatessen" y "Otros Productos" (15/10/2026)
   Ordenador: se abren al pasar el ratón o al pulsar. Móvil: se despliegan dentro del menú.
   ========================================================= */
.nav { align-items: center; }
.nav-group { position: relative; display: flex; align-items: center; }
.nav-parent {
  display: inline-flex; align-items: center; gap: 4px; background: none; border: 0; padding: 6px 0;
  font-size: 15px; font-weight: 500; color: var(--ink-soft);
}
.nav-parent svg { width: 16px; height: 16px; transition: transform .2s; }
.nav-parent:hover, .nav-group.open .nav-parent, .nav-group.is-current .nav-parent { color: var(--ink); }
.nav-group.open .nav-parent svg { transform: rotate(180deg); }
.nav-sub {
  position: absolute; top: 100%; left: -14px; z-index: 60; min-width: 240px; margin-top: 12px;
  display: grid; padding: 8px; background: var(--paper); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow);
  opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .18s, transform .18s, visibility .18s;
}
.nav-sub::before { content: ""; position: absolute; left: 0; right: 0; top: -14px; height: 14px; } /* puente para que no se cierre al bajar el ratón */
.nav .nav-sub a { display: block; padding: 10px 12px; border-radius: 9px; font-size: 14.5px; white-space: nowrap; }
.nav .nav-sub a::after { display: none; }
.nav .nav-sub a:hover, .nav .nav-sub a[aria-current] { background: var(--cream); color: var(--olive); }
.nav-group.open .nav-sub { opacity: 1; visibility: visible; transform: none; }
@media (hover: hover) and (min-width: 901px) {
  .nav-group:hover .nav-sub { opacity: 1; visibility: visible; transform: none; }
  .nav-group:hover .nav-parent svg { transform: rotate(180deg); }
}
@media (max-width: 1080px) {
  .nav-parent { font-size: 14px; }
}
@media (max-width: 900px) {
  .nav { align-items: stretch; }
  .nav-group { display: block; border-bottom: 1px solid var(--line); }
  .nav-parent { width: 100%; justify-content: space-between; font-size: 18px; padding: 14px 4px; color: var(--ink-soft); }
  .nav-parent svg { width: 20px; height: 20px; }
  .nav-sub {
    position: static; min-width: 0; margin: 0 0 10px; padding: 4px 0 4px 14px; border: 0; border-left: 2px solid var(--lime);
    border-radius: 0; box-shadow: none; background: none; display: none; opacity: 1; visibility: visible; transform: none; transition: none;
  }
  .nav-sub::before { display: none; }
  .nav-group.open .nav-sub { display: grid; }
  .nav .nav-sub a { font-size: 16.5px; padding: 11px 8px; border-bottom: 0; white-space: normal; }
}

/* Desplegable cuyo título también es enlace (p. ej. "Productos" → tienda): enlace + flecha */
.nav-group > a + .nav-parent { padding: 6px 2px; margin-left: 2px; }
.nav-group > a[aria-current], .nav-group.is-current > a { color: var(--ink); }
.nav .nav-sub a.nav-sub-all { margin-top: 6px; padding-top: 12px; border-top: 1px solid var(--line); border-radius: 0 0 9px 9px; color: var(--olive); font-weight: 600; }
@media (max-width: 900px) {
  .nav-group:has(> a) { display: grid; grid-template-columns: 1fr auto; align-items: center; }
  .nav-group > a { border-bottom: 0 !important; }
  .nav-group > a + .nav-parent { width: 48px; height: 48px; padding: 0; margin: 0; justify-content: center; }
  .nav-group:has(> a) .nav-sub { grid-column: 1 / -1; }
  .nav .nav-sub a.nav-sub-all { margin-top: 4px; padding-top: 12px; border-radius: 0; }
}

/* =========================================================
   BLOG Y TEXTOS SEO (15/10/2026)
   ========================================================= */
/* Artículo */
.post-hero h1 { max-width: 20em; }
.post-meta { margin: 10px 0 0; color: var(--muted); font-size: 15px; }
.post-body { padding: 8px 0 72px; }
.post-cover { max-width: 980px; margin: 0 auto 36px; }
.post-cover img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: contain; background: #fff; padding: 3%; border-radius: var(--radius); }
.post-prose { max-width: 740px; margin: 0 auto; font-size: 18px; line-height: 1.75; color: var(--ink-soft); padding: 0; }
.post-prose > p:first-child { font-size: 20px; color: var(--ink); }
.post-prose h2 { font-size: clamp(26px, 3vw, 34px); color: var(--ink); margin: 44px 0 14px; line-height: 1.2; }
.post-prose h3 { font-size: 22px; margin: 30px 0 10px; }
.post-prose ol { padding-left: 22px; margin: 0 0 18px; display: grid; gap: 8px; }
.post-prose ol li::marker { color: var(--olive); font-weight: 700; }
.post-prose blockquote { margin: 28px 0; padding: 18px 22px; background: var(--paper); border-left: 3px solid var(--lime); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; color: var(--ink); }
.post-prose blockquote p:last-child { margin: 0; }
.post-prose img { border-radius: var(--radius-sm); }
.post-prose .products-inline { margin: 22px 0 30px; }
.products-inline { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.post-prose .products-inline a { text-decoration: none; }
.post-prose .products-inline h3 { font-size: 16px; margin: 0; }

/* Portada del blog */
.post-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.post-card { display: flex; flex-direction: column; background: var(--paper); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: transform .2s; }
.post-card:hover { transform: translateY(-3px); }
.post-card-img { aspect-ratio: 16 / 10; background: #fff; border-bottom: 1px solid var(--line); }
.post-card-img img { width: 100%; height: 100%; object-fit: contain; padding: 4%; } /* fotos de producto con fondo blanco: enteras, como en la tienda */
.post-card-body { padding: 18px 20px 22px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.post-card-body small { color: var(--muted); font-size: 13px; }
.post-card-body h2 { font-size: 22px; line-height: 1.2; }
.post-card-body p { margin: 0; color: var(--ink-soft); font-size: 15px; flex: 1; }

/* Texto SEO de las categorías (debajo de los productos) */
.cat-seo { padding: 8px 0 72px; }
.cat-seo-text { max-width: 820px; margin: 0 auto; background: var(--paper); border-radius: var(--radius); padding: 40px 44px; font-size: 16.5px; line-height: 1.7; }
.cat-seo-text h2 { font-size: clamp(24px, 2.8vw, 30px); color: var(--ink); margin: 0 0 14px; }
.cat-seo-text h2:not(:first-child) { margin-top: 34px; }
.cat-seo-text h3 { font-size: 19px; margin: 22px 0 6px; color: var(--ink); }

@media (max-width: 900px) {
  .post-list, .products-inline { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .post-list { grid-template-columns: 1fr; gap: 16px; }
  .products-inline { gap: 12px; }
  .post-prose { font-size: 17px; }
  .post-prose > p:first-child { font-size: 18px; }
  .post-prose h2 { margin-top: 36px; }
  .post-cover { margin-bottom: 24px; }
  .cat-seo-text { padding: 26px 20px; font-size: 16px; }
  .cat-seo { padding-bottom: 48px; }
}
