/* =========================================================
   CROMA STUDIO — Sistema de diseño 2026
   Basado en el Catálogo Croma Studio 2026: crema, azul marino,
   caramelo y acentos de color del isotipo.
   ========================================================= */

:root {
  --cream: #F7F0E6;
  --cream-2: #EFE4D5;
  --paper: #FFFCF7;
  --sand: #E3D2BC;
  --caramel: #B08458;
  --caramel-2: #C9A27E;
  --navy: #13213F;
  --navy-2: #1C2F57;
  --navy-deep: #0B1530;
  --blue: #5B7FBF;
  --magenta: #E0336F;
  --yellow: #FFD21F;
  --ink: #13213F;
  --ink-2: #4A5571;
  --ink-3: #7C849A;
  --line: rgba(19, 33, 63, .12);
  --line-2: rgba(19, 33, 63, .22);
  --ok: #2F7A55;
  --wa: #1FA855;

  --f-display: "Poppins", system-ui, sans-serif;
  --f-body: "Inter", system-ui, sans-serif;
  --f-script: "Allura", cursive;

  --r-s: 10px;
  --r-m: 18px;
  --r-l: 28px;
  --shadow-s: 0 1px 2px rgba(11, 21, 48, .06), 0 2px 8px rgba(11, 21, 48, .04);
  --shadow-m: 0 10px 30px -12px rgba(11, 21, 48, .25);
  --shadow-l: 0 30px 60px -20px rgba(11, 21, 48, .35);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--caramel); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--navy); color: var(--cream); }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); border: 0; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--navy); color: var(--cream); padding: 10px 16px; z-index: 999; border-radius: 8px; }
.skip:focus { left: 8px; }

/* ---------- Layout ---------- */
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: clamp(72px, 10vw, 140px) 0; position: relative; }
.section--tight { padding: clamp(48px, 6vw, 80px) 0; }
.section--paper { background: var(--paper); }
.section--sand { background: var(--cream-2); }
.section--navy { background: var(--navy); color: var(--cream); }
.section--navy .eyebrow { color: var(--caramel-2); }
.section--navy .lead { color: rgba(247, 240, 230, .72); }

.grid { display: grid; gap: clamp(16px, 2.4vw, 28px); }
.g-2 { grid-template-columns: repeat(2, 1fr); }
.g-3 { grid-template-columns: repeat(3, 1fr); }
.g-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 960px) { .g-3, .g-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .g-2, .g-3 { grid-template-columns: 1fr; } }

/* ---------- Tipografía ---------- */
h1, h2, h3, h4 { font-family: var(--f-display); font-weight: 600; line-height: 1.08; letter-spacing: -.025em; margin: 0; color: inherit; }
.display { font-size: clamp(44px, 7.4vw, 104px); letter-spacing: -.04em; line-height: .98; }
.h1 { font-size: clamp(38px, 5.4vw, 72px); letter-spacing: -.035em; }
.h2 { font-size: clamp(30px, 3.8vw, 52px); }
.h3 { font-size: clamp(20px, 1.8vw, 26px); letter-spacing: -.015em; }
.script { font-family: var(--f-script); font-weight: 400; color: var(--caramel); letter-spacing: 0; font-size: 1.12em; line-height: .8; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--f-body); font-size: 12px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase;
  color: var(--caramel); margin: 0 0 18px;
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; }
.eyebrow--plain::before { display: none; }
.lead { font-size: clamp(17px, 1.4vw, 20px); color: var(--ink-2); max-width: 60ch; line-height: 1.6; }
.muted { color: var(--ink-3); }
.small { font-size: 14px; }
.tiny { font-size: 12px; }
.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 32px; margin-bottom: clamp(36px, 5vw, 64px); flex-wrap: wrap; }
.section-head > div { max-width: 720px; }
.section-head .lead { margin: 18px 0 0; }

/* Franja de color del isotipo */
.spectrum { display: inline-flex; gap: 4px; }
.spectrum i { width: 18px; height: 5px; border-radius: 4px; background: var(--blue); }
.spectrum i:nth-child(2) { background: var(--magenta); }
.spectrum i:nth-child(3) { background: var(--yellow); }

/* ---------- Botones ---------- */
.btn {
  --bg: var(--navy); --fg: var(--cream);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 0 26px; border-radius: 999px; border: 1px solid transparent;
  background: var(--bg); color: var(--fg);
  font-weight: 600; font-size: 15px; letter-spacing: .005em; white-space: nowrap;
  transition: transform .35s var(--ease), background .25s, color .25s, box-shadow .35s var(--ease), border-color .25s;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-m); }
.btn:active { transform: translateY(0); }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn--ghost { --bg: transparent; --fg: var(--navy); border-color: var(--line-2); }
.btn--ghost:hover { --bg: var(--navy); --fg: var(--cream); border-color: var(--navy); }
.btn--light { --bg: var(--cream); --fg: var(--navy); }
.btn--ghost-light { --bg: transparent; --fg: var(--cream); border-color: rgba(247, 240, 230, .35); }
.btn--ghost-light:hover { --bg: var(--cream); --fg: var(--navy); }
.btn--caramel { --bg: var(--caramel); --fg: #fff; }
.btn--wa { --bg: var(--wa); --fg: #fff; }
.btn--sm { min-height: 40px; padding: 0 18px; font-size: 14px; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .45; pointer-events: none; }
.link { font-weight: 600; display: inline-flex; gap: 8px; align-items: center; border-bottom: 1px solid var(--line-2); padding-bottom: 3px; transition: gap .3s var(--ease), border-color .3s; }
.link:hover { gap: 14px; border-color: var(--caramel); }
.link svg { width: 16px; height: 16px; }

/* ---------- Header ---------- */
.announce { background: var(--navy-deep); color: var(--cream); font-size: 13px; text-align: center; padding: 9px 16px; letter-spacing: .01em; }
.announce a { color: var(--caramel-2); font-weight: 600; }
.header {
  position: sticky; top: 0; z-index: 60; height: var(--header-h);
  background: rgba(247, 240, 230, .82); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent; transition: border-color .3s, background .3s;
}
.header.is-scrolled { border-color: var(--line); background: rgba(247, 240, 230, .94); }
.header .wrap { height: 100%; display: flex; align-items: center; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 12px; flex: none; }
.brand img { height: 38px; width: auto; }
.brand-word { display: flex; flex-direction: column; line-height: 1; }
.brand-word b { font-family: var(--f-display); font-weight: 700; letter-spacing: .14em; font-size: 19px; }
.brand-word span { font-size: 9px; letter-spacing: .5em; color: var(--ink-2); margin-top: 4px; padding-left: 2px; }
.nav { display: flex; gap: 4px; margin-left: auto; }
.nav a { padding: 8px 14px; border-radius: 999px; font-size: 14.5px; font-weight: 500; color: var(--ink-2); transition: color .2s, background .2s; position: relative; }
.nav a:hover { color: var(--ink); background: rgba(19, 33, 63, .05); }
.nav a[aria-current="page"] { color: var(--ink); }
.nav a[aria-current="page"]::after { content: ""; position: absolute; left: 50%; bottom: 2px; width: 4px; height: 4px; border-radius: 50%; background: var(--caramel); transform: translateX(-50%); }
.nav .nav-promo { color: var(--magenta); }
.header-actions { display: flex; align-items: center; gap: 10px; }
.icon-btn {
  position: relative; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-2); background: transparent;
  display: grid; place-items: center; transition: background .2s, border-color .2s;
}
.icon-btn:hover { background: var(--navy); color: var(--cream); border-color: var(--navy); }
.icon-btn svg { width: 20px; height: 20px; }
.cart-count {
  position: absolute; top: -3px; right: -3px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px;
  background: var(--magenta); color: #fff; font-size: 11px; font-weight: 700; display: grid; place-items: center;
  transform: scale(0); transition: transform .3s var(--ease);
}
.cart-count.has { transform: scale(1); }
.cart-count.bump { animation: bump .5s var(--ease); }
@keyframes bump { 40% { transform: scale(1.35); } }
.menu-btn { display: none; }
@media (max-width: 1240px) {
  .nav { display: none; }
  .menu-btn { display: grid; }
  .header .wrap { justify-content: space-between; }
  .header-actions { margin-left: auto; }
  .header-actions .btn { display: none; }
}

/* Menú móvil */
.mobile-nav {
  position: fixed; inset: 0; z-index: 80; background: var(--navy); color: var(--cream);
  display: flex; flex-direction: column; padding: 24px var(--gutter) 40px;
  transform: translateY(-100%); transition: transform .55s var(--ease); visibility: hidden;
}
.mobile-nav.open { transform: none; visibility: visible; }
.mobile-nav .top { display: flex; justify-content: space-between; align-items: center; }
.mobile-nav .icon-btn { border-color: rgba(247, 240, 230, .3); }
.mobile-nav nav { display: flex; flex-direction: column; margin-top: 40px; }
.mobile-nav nav a { font-family: var(--f-display); font-size: clamp(30px, 8vw, 44px); font-weight: 600; letter-spacing: -.03em; padding: 8px 0; border-bottom: 1px solid rgba(247, 240, 230, .1); display: flex; justify-content: space-between; align-items: center; }
.mobile-nav nav a small { font-family: var(--f-body); font-size: 12px; letter-spacing: .15em; color: var(--caramel-2); font-weight: 500; }
.mobile-nav .bottom { margin-top: auto; display: grid; gap: 12px; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: clamp(40px, 6vw, 80px) 0 clamp(60px, 8vw, 110px); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero h1 .script { display: block; font-size: 1.05em; margin: .05em 0 .1em; }
.hero .lead { margin: 28px 0 36px; }
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-meta { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: clamp(20px, 4vw, 48px); margin-top: 52px; padding-top: 28px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.hero-meta div b { display: block; font-family: var(--f-display); font-size: clamp(26px, 2.6vw, 34px); font-weight: 600; letter-spacing: -.03em; }
.hero-meta div span { font-size: 13px; color: var(--ink-3); }
.hero-visual { position: relative; aspect-ratio: 1 / 1.05; }
.hero-visual .blob { position: absolute; inset: 6% 0 0 8%; background: var(--navy); border-radius: 52% 48% 46% 54% / 44% 50% 50% 56%; }
.hero-visual .arc { position: absolute; right: -6%; bottom: -4%; width: 46%; aspect-ratio: 1; border-radius: 50% 50% 0 0; background: var(--sand); }
.hero-visual figure { position: absolute; margin: 0; background: var(--paper); border-radius: var(--r-l); box-shadow: var(--shadow-l); overflow: hidden; display: grid; place-items: center; }
.hero-visual figure img { width: 100%; height: 100%; object-fit: contain; padding: 8%; }
.hero-visual .f1 { left: 0; top: 10%; width: 46%; aspect-ratio: 3 / 4; }
.hero-visual .f2 { right: 4%; top: 0; width: 46%; aspect-ratio: 1; }
.hero-visual .f3 { right: 10%; bottom: 4%; width: 52%; aspect-ratio: 4 / 3.4; }
.hero-visual .tag { position: absolute; left: 6%; bottom: 8%; background: var(--cream); padding: 14px 18px; border-radius: var(--r-m); box-shadow: var(--shadow-m); font-size: 13px; display: flex; gap: 12px; align-items: center; z-index: 2; }
.hero-visual .tag b { display: block; font-size: 15px; }
.sparkle { position: absolute; width: 26px; height: 26px; color: var(--caramel-2); }
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { max-width: 520px; width: 100%; margin: 0 auto; }
  .hero-visual .arc { right: 0; }
}

/* ---------- Marquee ---------- */
.marquee { overflow: hidden; border-block: 1px solid var(--line); background: var(--paper); padding: 22px 0; }
.marquee-track { display: flex; gap: 56px; width: max-content; animation: marquee 38s linear infinite; }
.marquee span { font-family: var(--f-display); font-size: clamp(20px, 2.2vw, 28px); font-weight: 500; letter-spacing: -.02em; display: inline-flex; align-items: center; gap: 56px; white-space: nowrap; }
.marquee span::after { content: "✦"; color: var(--caramel-2); font-size: .7em; }
@keyframes marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee-track { animation: none; } }

/* ---------- Tarjetas ---------- */
.card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-l); overflow: hidden;
  transition: transform .5s var(--ease), box-shadow .5s var(--ease), border-color .3s;
  position: relative;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-m); border-color: transparent; }
.cat-card { display: flex; flex-direction: column; min-height: 100%; }
.cat-card .media { aspect-ratio: 4 / 3.3; background: var(--cream-2); display: grid; place-items: center; overflow: hidden; }
.cat-card .media img { width: 78%; height: 78%; object-fit: contain; transition: transform .8s var(--ease); }
.cat-card:hover .media img { transform: scale(1.06) rotate(-1.5deg); }
.cat-card .body { padding: 22px 24px 24px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.cat-card .num { font-size: 12px; letter-spacing: .16em; color: var(--caramel); font-weight: 600; }
.cat-card p { margin: 0; color: var(--ink-2); font-size: 14.5px; }
.cat-card .arrow { margin-top: auto; padding-top: 14px; display: flex; justify-content: space-between; align-items: center; font-size: 14px; font-weight: 600; }
.cat-card .arrow i { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line-2); display: grid; place-items: center; transition: background .3s, color .3s, transform .4s var(--ease); font-style: normal; }
.cat-card:hover .arrow i { background: var(--navy); color: var(--cream); transform: rotate(-45deg); }

/* Tarjeta producto (empresarial) */
.p-card { display: flex; flex-direction: column; cursor: pointer; }
.p-card .media { aspect-ratio: 1; background: #fff; display: grid; place-items: center; overflow: hidden; border-bottom: 1px solid var(--line); }
.p-card .media img { width: 86%; height: 86%; object-fit: contain; transition: transform .7s var(--ease); }
.p-card:hover .media img { transform: scale(1.05); }
.p-card .body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.p-card .code { font-size: 11px; letter-spacing: .14em; color: var(--caramel); font-weight: 600; }
.p-card h3 { font-size: 16px; letter-spacing: -.01em; line-height: 1.25; }
.p-card .meta { font-size: 13px; color: var(--ink-3); }
.p-card .dots { display: flex; gap: 4px; margin-top: 8px; flex-wrap: wrap; }
.p-card .foot { margin-top: auto; padding-top: 14px; display: flex; gap: 8px; }
.p-card .foot .btn { flex: 1; }
.p-card .badge { position: absolute; top: 12px; left: 12px; }

.dot { width: 14px; height: 14px; border-radius: 50%; border: 1px solid rgba(0, 0, 0, .12); display: inline-block; flex: none; }

.chip {
  display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 16px; border-radius: 999px;
  border: 1px solid var(--line-2); background: transparent; font-size: 14px; font-weight: 500; color: var(--ink-2);
  transition: all .2s; white-space: nowrap;
}
.chip:hover { border-color: var(--navy); color: var(--ink); }
.chip.active, .chip[aria-pressed="true"] { background: var(--navy); color: var(--cream); border-color: var(--navy); }
.chip .n { font-size: 11px; opacity: .6; }
.badge { display: inline-flex; align-items: center; height: 24px; padding: 0 10px; border-radius: 999px; background: var(--navy); color: var(--cream); font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; z-index: 1; }
.badge--caramel { background: var(--caramel); }
.badge--magenta { background: var(--magenta); }
.badge--soft { background: var(--cream-2); color: var(--ink); }

/* ---------- Formularios ---------- */
.field { display: grid; gap: 6px; }
.field label, .label { font-size: 13px; font-weight: 600; color: var(--ink-2); }
.input, .select, .textarea {
  width: 100%; min-height: 48px; border-radius: 14px; border: 1px solid var(--line-2); background: var(--paper);
  padding: 12px 16px; font-size: 15px; transition: border-color .2s, box-shadow .2s;
}
.textarea { min-height: 96px; resize: vertical; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 4px rgba(19, 33, 63, .08); }
.select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%2313213F' stroke-width='1.6'%3E%3Cpath d='M1 1.5l5 5 5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; padding-right: 40px; }
.search { position: relative; }
.search svg { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--ink-3); }
.search .input { padding-left: 46px; border-radius: 999px; }

.qty { display: inline-flex; align-items: center; border: 1px solid var(--line-2); border-radius: 999px; height: 44px; overflow: hidden; background: var(--paper); }
.qty button { width: 40px; height: 100%; border: 0; background: transparent; font-size: 18px; }
.qty button:hover { background: var(--cream-2); }
.qty input { width: 64px; text-align: center; border: 0; background: transparent; font-weight: 600; -moz-appearance: textfield; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; }
.qty--sm { height: 36px; }
.qty--sm button { width: 32px; }
.qty--sm input { width: 44px; font-size: 14px; }

/* Opciones tipo "pill" seleccionables */
.opts { display: flex; flex-wrap: wrap; gap: 8px; }
.opt {
  min-height: 42px; padding: 8px 16px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--paper);
  font-size: 14px; font-weight: 500; display: inline-flex; align-items: center; gap: 8px; transition: all .2s; text-align: left;
}
.opt small { color: var(--ink-3); font-weight: 500; }
.opt:hover { border-color: var(--navy); }
.opt[aria-pressed="true"] { border-color: var(--navy); background: var(--navy); color: var(--cream); }
.opt[aria-pressed="true"] small { color: var(--caramel-2); }
.swatch { width: 34px; height: 34px; border-radius: 50%; border: 2px solid var(--paper); box-shadow: 0 0 0 1px var(--line-2); transition: box-shadow .2s, transform .2s; padding: 0; }
.swatch:hover { transform: scale(1.08); }
.swatch[aria-pressed="true"] { box-shadow: 0 0 0 2px var(--navy); }

/* ---------- Drawer del carrito ---------- */
.scrim { position: fixed; inset: 0; background: rgba(11, 21, 48, .45); backdrop-filter: blur(2px); z-index: 90; opacity: 0; visibility: hidden; transition: opacity .35s, visibility .35s; }
.scrim.open { opacity: 1; visibility: visible; }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 95; width: min(460px, 100%); background: var(--cream);
  display: flex; flex-direction: column; transform: translateX(100%); transition: transform .5s var(--ease), visibility .5s; visibility: hidden;
}
.drawer.open { transform: none; visibility: visible; box-shadow: var(--shadow-l); }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 20px 24px; border-bottom: 1px solid var(--line); }
.drawer-head h2 { font-size: 22px; }
.drawer-body { flex: 1; overflow-y: auto; padding: 8px 24px 24px; }
.drawer-foot { border-top: 1px solid var(--line); padding: 18px 24px 22px; background: var(--paper); display: grid; gap: 12px; max-height: 62vh; overflow-y: auto; }
.cart-line { display: grid; grid-template-columns: 72px 1fr; gap: 14px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.cart-line .thumb { width: 72px; height: 72px; border-radius: 14px; background: #fff; border: 1px solid var(--line); display: grid; place-items: center; overflow: hidden; }
.cart-line .thumb img { width: 84%; height: 84%; object-fit: contain; }
.cart-line h4 { font-family: var(--f-body); font-size: 14.5px; font-weight: 600; letter-spacing: 0; line-height: 1.3; }
.cart-line .opts-txt { font-size: 12.5px; color: var(--ink-3); margin: 3px 0 8px; line-height: 1.45; }
.cart-line .row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.cart-line .price { font-weight: 600; font-size: 14.5px; }
.rm { border: 0; background: none; font-size: 12px; color: var(--ink-3); text-decoration: underline; padding: 0; }
.cart-empty { text-align: center; padding: 60px 10px; color: var(--ink-3); }
.cart-empty svg { width: 56px; height: 56px; margin: 0 auto 16px; color: var(--sand); }
.totals { display: grid; gap: 4px; font-size: 14px; }
.totals .row { display: flex; justify-content: space-between; }
.totals .grand { font-size: 18px; font-weight: 700; font-family: var(--f-display); }
.checkout-fields { display: grid; gap: 10px; }
.checkout-fields .input { min-height: 44px; font-size: 14px; }

/* ---------- Modal ---------- */
.modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 16px; visibility: hidden; }
.modal.open { visibility: visible; }
.modal .scrim { position: absolute; z-index: 0; opacity: 1; visibility: inherit; }
.modal-box {
  position: relative; z-index: 1; width: min(980px, 100%); max-height: calc(100vh - 32px); overflow: auto; background: var(--cream);
  border-radius: var(--r-l); box-shadow: var(--shadow-l); opacity: 0; transform: translateY(20px) scale(.98); transition: all .4s var(--ease);
}
.modal.open .modal-box { opacity: 1; transform: none; }
.modal-close { position: absolute; top: 14px; right: 14px; z-index: 2; background: var(--cream); }
.pd { display: grid; grid-template-columns: 1fr 1fr; }
.pd .media { background: #fff; display: grid; place-items: center; padding: 32px; min-height: 380px; }
.pd .media img { max-height: 460px; object-fit: contain; }
.pd .info { padding: 40px 36px; display: grid; gap: 18px; align-content: start; }
.pd dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; font-size: 14px; margin: 0; }
.pd dt { color: var(--ink-3); }
.pd dd { margin: 0; font-weight: 500; }
@media (max-width: 760px) { .pd { grid-template-columns: 1fr; } .pd .media { min-height: 260px; } .pd .info { padding: 28px 22px; } }

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 28px; z-index: 120; transform: translate(-50%, calc(100% + 40px)); visibility: hidden;
  background: var(--navy); color: var(--cream); padding: 14px 18px 14px 20px; border-radius: 999px; box-shadow: var(--shadow-l);
  display: flex; align-items: center; gap: 14px; font-size: 14px; transition: transform .5s var(--ease), visibility .5s; max-width: calc(100% - 32px);
}
.toast.show { transform: translate(-50%, 0); visibility: visible; }
.toast button { background: var(--cream); color: var(--navy); border: 0; border-radius: 999px; padding: 6px 14px; font-weight: 600; font-size: 13px; white-space: nowrap; }

/* ---------- WhatsApp flotante ---------- */
.wa-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 50; width: 58px; height: 58px; border-radius: 50%; background: var(--wa); color: #fff;
  display: grid; place-items: center; box-shadow: 0 12px 30px -8px rgba(31, 168, 85, .6); transition: transform .3s var(--ease);
}
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 28px; height: 28px; }
.wa-float::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--wa); animation: ping 2.4s var(--ease) infinite; }
@keyframes ping { 0% { transform: scale(1); opacity: .8; } 80%, 100% { transform: scale(1.6); opacity: 0; } }

/* ---------- Footer ---------- */
.footer { background: var(--navy-deep); color: rgba(247, 240, 230, .75); padding: clamp(64px, 8vw, 100px) 0 32px; font-size: 14.5px; }
.footer a:hover { color: var(--cream); }
.footer-cta { display: flex; justify-content: space-between; align-items: end; gap: 32px; padding-bottom: 56px; margin-bottom: 56px; border-bottom: 1px solid rgba(247, 240, 230, .12); flex-wrap: wrap; }
.footer-cta h2 { color: var(--cream); font-size: clamp(34px, 5vw, 64px); max-width: 14ch; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
.footer h3 { font-family: var(--f-body); font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--caramel-2); font-weight: 600; margin-bottom: 16px; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer .brand-word b { color: var(--cream); }
.footer .brand-word span { color: rgba(247, 240, 230, .6); }
.footer-bottom { margin-top: 56px; padding-top: 24px; border-top: 1px solid rgba(247, 240, 230, .12); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 13px; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Page hero (internas) ---------- */
.page-hero { padding: clamp(48px, 7vw, 96px) 0 clamp(40px, 5vw, 64px); position: relative; overflow: hidden; }
.page-hero .lead { margin-top: 22px; }
.crumbs { display: flex; gap: 8px; font-size: 13px; color: var(--ink-3); margin-bottom: 28px; flex-wrap: wrap; }
.crumbs a:hover { color: var(--ink); }
.crumbs span[aria-hidden] { opacity: .5; }

/* ---------- Pasos / proceso ---------- */
.steps { counter-reset: s; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1px solid var(--line); }
.step { padding: 28px 24px 8px 0; border-right: 1px solid var(--line); counter-increment: s; }
.step + .step { padding-left: 24px; }
.step:last-child { border-right: 0; }
.step::before { content: "0" counter(s); display: block; font-family: var(--f-display); font-size: 14px; font-weight: 600; color: var(--caramel); margin-bottom: 40px; }
.step h3 { font-size: 20px; margin-bottom: 8px; }
.step p { color: var(--ink-2); font-size: 14.5px; margin: 0; }
.section--navy .step, .section--navy .steps { border-color: rgba(247, 240, 230, .14); }
.section--navy .step p { color: rgba(247, 240, 230, .7); }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr 1fr; } .step:nth-child(2) { border-right: 0; } .step:nth-child(3) { padding-left: 0; } .step:nth-child(n+3) { border-top: 1px solid var(--line); } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } .step, .step + .step { border-right: 0; padding-left: 0; border-top: 1px solid var(--line); } .step::before { margin-bottom: 14px; } }

/* ---------- Galería ---------- */
.masonry { columns: 4 260px; column-gap: 18px; }
.masonry figure { break-inside: avoid; margin: 0 0 18px; border-radius: var(--r-m); overflow: hidden; background: var(--paper); border: 1px solid var(--line); position: relative; cursor: zoom-in; }
.masonry img { width: 100%; height: auto; transition: transform .8s var(--ease); }
.masonry figure:hover img { transform: scale(1.04); }
.masonry figcaption { position: absolute; left: 12px; bottom: 12px; right: 12px; background: rgba(247, 240, 230, .92); backdrop-filter: blur(6px); padding: 8px 12px; border-radius: 10px; font-size: 13px; font-weight: 500; opacity: 0; transform: translateY(8px); transition: all .35s var(--ease); }
.masonry figure:hover figcaption { opacity: 1; transform: none; }
.lightbox { position: fixed; inset: 0; z-index: 110; background: rgba(11, 21, 48, .92); display: grid; place-items: center; padding: 24px; opacity: 0; visibility: hidden; transition: opacity .3s; }
.lightbox.open { opacity: 1; visibility: visible; }
.lightbox img { max-width: min(900px, 100%); max-height: 80vh; background: var(--paper); border-radius: var(--r-m); padding: 24px; object-fit: contain; }
.lightbox p { color: var(--cream); text-align: center; margin: 16px 0 0; }
.lightbox .icon-btn { position: absolute; top: 18px; right: 18px; color: var(--cream); border-color: rgba(247, 240, 230, .3); }
.lightbox .nav-l, .lightbox .nav-r { position: absolute; top: 50%; transform: translateY(-50%); color: var(--cream); border-color: rgba(247, 240, 230, .3); }
.lightbox .nav-l { left: 18px; } .lightbox .nav-r { right: 18px; }

/* ---------- Timeline ---------- */
.timeline { position: relative; display: grid; gap: 0; }
.tl-item { display: grid; grid-template-columns: 160px 1fr; gap: 40px; padding: 36px 0; border-top: 1px solid var(--line); }
.tl-item .year { font-family: var(--f-display); font-size: 40px; font-weight: 600; letter-spacing: -.04em; color: var(--caramel); line-height: 1; }
.tl-item h3 { font-size: 22px; margin-bottom: 8px; }
.tl-item p { margin: 0; color: var(--ink-2); max-width: 62ch; }
@media (max-width: 640px) { .tl-item { grid-template-columns: 1fr; gap: 10px; } }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-l); overflow: hidden; }
.stats > div { background: var(--paper); padding: 32px 28px; }
.stats b { display: block; font-family: var(--f-display); font-size: clamp(34px, 4vw, 54px); font-weight: 600; letter-spacing: -.04em; line-height: 1; }
.stats span { font-size: 14px; color: var(--ink-2); display: block; margin-top: 10px; }
.section--navy .stats { background: rgba(247, 240, 230, .12); border-color: rgba(247, 240, 230, .12); }
.section--navy .stats > div { background: var(--navy); }
.section--navy .stats span { color: rgba(247, 240, 230, .7); }
@media (max-width: 860px) { .stats { grid-template-columns: 1fr 1fr; } }

/* ---------- Bloques varios ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }
.frame { border-radius: var(--r-l); overflow: hidden; background: var(--paper); border: 1px solid var(--line); position: relative; }
.frame img { width: 100%; height: 100%; object-fit: cover; }
.check-list { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 14px; }
.check-list li { display: flex; gap: 14px; align-items: start; }
.check-list li::before { content: ""; flex: none; width: 22px; height: 22px; margin-top: 2px; border-radius: 50%; background: var(--navy) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23F7F0E6' stroke-width='3'%3E%3Cpath d='M6 12l4 4 8-8'/%3E%3C/svg%3E") center/12px no-repeat; }
.section--navy .check-list li::before { background-color: var(--caramel); }
.logo-row { display: flex; flex-wrap: wrap; gap: 12px; }
.pill-note { display: inline-flex; align-items: center; gap: 10px; padding: 8px 14px 8px 8px; border-radius: 999px; background: var(--paper); border: 1px solid var(--line); font-size: 13.5px; }
.pill-note b { background: var(--navy); color: var(--cream); border-radius: 999px; padding: 3px 10px; font-size: 12px; }
.quote { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-l); padding: 32px; display: flex; flex-direction: column; gap: 18px; }
.quote p { margin: 0; font-size: 17px; line-height: 1.6; }
.quote footer { display: flex; align-items: center; gap: 12px; font-size: 14px; margin-top: auto; }
.quote footer i { width: 40px; height: 40px; border-radius: 50%; background: var(--cream-2); display: grid; place-items: center; font-style: normal; font-weight: 700; color: var(--navy); }
.faq details { border-top: 1px solid var(--line); padding: 22px 0; }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 20px; font-family: var(--f-display); font-weight: 500; font-size: 19px; letter-spacing: -.01em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 26px; line-height: 1; color: var(--caramel); transition: transform .3s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 14px 0 0; color: var(--ink-2); max-width: 70ch; }
.cta-band { background: var(--navy); color: var(--cream); border-radius: var(--r-l); padding: clamp(36px, 6vw, 72px); display: grid; grid-template-columns: 1.4fr 1fr; gap: 32px; align-items: center; position: relative; overflow: hidden; }
.cta-band .lead { color: rgba(247, 240, 230, .72); }
.cta-band .actions { display: flex; gap: 12px; flex-wrap: wrap; justify-content: flex-end; }
.cta-band::after { content: ""; position: absolute; right: -80px; bottom: -120px; width: 320px; height: 320px; border-radius: 50%; border: 1px solid rgba(201, 162, 126, .35); }
@media (max-width: 860px) { .cta-band { grid-template-columns: 1fr; } .cta-band .actions { justify-content: flex-start; } }

/* Barra de filtros sticky */
.filterbar { position: sticky; top: var(--header-h); z-index: 30; background: rgba(247, 240, 230, .94); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); padding: 14px 0; }
.filterbar .wrap { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.scroll-x { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.scroll-x::-webkit-scrollbar { display: none; }
.empty-state { text-align: center; padding: 80px 20px; color: var(--ink-3); grid-column: 1 / -1; }

/* ---------- Animaciones de entrada ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 1s var(--ease), transform 1s var(--ease); transition-delay: var(--d, 0s); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  * { animation-duration: .01ms !important; }
}
.no-js .reveal { opacity: 1; transform: none; transition: none; }
.no-js .marquee-track { animation: none; }

/* ---------- Personaliza (configurador) ---------- */
.shop { display: grid; grid-template-columns: 300px 1fr; gap: clamp(20px, 3vw, 40px); align-items: start; }
.shop-side { position: sticky; top: calc(var(--header-h) + 16px); display: grid; gap: 14px; }
.shop-side .scroll-x { flex-wrap: wrap; }
.picks { display: grid; gap: 8px; max-height: calc(100vh - var(--header-h) - 150px); overflow-y: auto; padding-right: 4px; }
.pick { display: flex; gap: 12px; align-items: center; text-align: left; padding: 8px; border-radius: 16px; border: 1px solid var(--line); background: var(--paper); transition: border-color .2s, background .2s, transform .3s var(--ease); }
.pick:hover { border-color: var(--line-2); transform: translateX(3px); }
.pick.active { border-color: var(--navy); box-shadow: inset 3px 0 0 var(--caramel); }
.pick-img { width: 56px; height: 56px; border-radius: 12px; background: #fff; display: grid; place-items: center; flex: none; overflow: hidden; }
.pick-img img { width: 86%; height: 86%; object-fit: contain; }
.pick-txt { display: grid; line-height: 1.3; }
.pick-txt b { font-size: 14.5px; font-weight: 600; }
.pick-txt small { font-size: 12.5px; color: var(--caramel); font-weight: 600; margin-top: 2px; }
.configurator { display: grid; grid-template-columns: 1fr 1fr; gap: 0; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-l); overflow: hidden; scroll-margin-top: calc(var(--header-h) + 16px); }
.cfg-media { background: #fff; border-right: 1px solid var(--line); padding: 24px; display: grid; gap: 14px; align-content: start; }
.cfg-media > * { position: sticky; top: calc(var(--header-h) + 24px); }
.cfg-main { aspect-ratio: 1; display: grid; place-items: center; }
.cfg-main img { max-width: 88%; max-height: 100%; object-fit: contain; animation: fadeIn .5s var(--ease); }
@keyframes fadeIn { from { opacity: 0; transform: scale(.98); } }
.cfg-thumbs { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.cfg-thumbs button { width: 58px; height: 58px; border-radius: 12px; border: 1px solid var(--line); background: var(--cream); padding: 4px; }
.cfg-thumbs button:hover { border-color: var(--navy); }
.cfg-thumbs img { width: 100%; height: 100%; object-fit: contain; }
.cfg-body { padding: clamp(24px, 3vw, 40px); }
.cfg-group { margin-top: 22px; display: grid; gap: 10px; }
.opt[disabled] { opacity: 1; cursor: default; background: var(--cream-2); color: var(--ink); border-color: var(--line-2); }
.opt[disabled] small { color: var(--caramel); }
.cfg-price { margin-top: 26px; padding: 18px 20px; border-radius: var(--r-m); background: var(--cream); display: flex; justify-content: space-between; align-items: end; gap: 16px; }
.cfg-price span { display: block; }
.cfg-price b { font-family: var(--f-display); font-size: 28px; letter-spacing: -.03em; display: block; line-height: 1.1; }
.cfg-actions { display: flex; gap: 10px; margin-top: 16px; flex-wrap: wrap; }
.cfg-actions .btn { flex: 1 1 180px; }
@media (max-width: 1180px) { .configurator { grid-template-columns: 1fr; } .cfg-media { border-right: 0; border-bottom: 1px solid var(--line); } .cfg-main { aspect-ratio: 4/3; } }
@media (max-width: 980px) {
  .shop { grid-template-columns: 1fr; }
  .shop-side { position: static; }
  .picks { display: flex; overflow-x: auto; max-height: none; padding-bottom: 6px; scrollbar-width: none; }
  .picks::-webkit-scrollbar { display: none; }
  .pick { flex: none; width: 230px; }
}
main { overflow-x: clip; }

/* ---------- Taller (máquinas) ---------- */
.machines { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.machine { margin: 0; position: relative; border-radius: var(--r-l); overflow: hidden; aspect-ratio: 3 / 4; background: var(--navy-2); }
.machine img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); filter: saturate(.9); }
.machine:hover img { transform: scale(1.06); }
.machine::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(11, 21, 48, .88)); }
.machine figcaption { position: absolute; left: 20px; right: 20px; bottom: 18px; z-index: 1; color: var(--cream); display: grid; gap: 4px; }
.machine figcaption b { font-family: var(--f-display); font-size: 19px; font-weight: 600; letter-spacing: -.01em; }
.machine figcaption span { font-size: 13.5px; color: rgba(247, 240, 230, .75); }
.photo-credit { font-size: 11px; color: var(--ink-3); margin-top: 14px; }
.section--navy .photo-credit { color: rgba(247, 240, 230, .45); }
@media (max-width: 960px) { .machines { grid-template-columns: 1fr 1fr; } }

/* ---------- Servicios ---------- */
.services { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-l); overflow: hidden; }
.service { background: var(--paper); padding: 32px 28px 36px; display: grid; gap: 10px; align-content: start; min-height: 240px; position: relative; transition: background .4s var(--ease), color .4s; }
.service:hover { background: var(--navy); color: var(--cream); }
.service:hover p { color: rgba(247, 240, 230, .75); }
.service p { margin: 0; color: var(--ink-2); font-size: 14.5px; transition: color .4s; }
.service-n { font-family: var(--f-display); font-weight: 600; color: var(--caramel); font-size: 14px; margin-bottom: 26px; }
.service ul { margin: 6px 0 0; padding-left: 18px; font-size: 14px; color: var(--ink-2); display: grid; gap: 4px; }
.service:hover ul { color: rgba(247, 240, 230, .75); }
@media (max-width: 960px) { .services { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .services { grid-template-columns: 1fr; } }

/* ---------- Lealtad ---------- */
.loyalty { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.tier { border-radius: var(--r-l); padding: 30px 28px 32px; color: var(--cream); position: relative; overflow: hidden; min-height: 100%; }
.tier::before { content: ""; position: absolute; right: -60px; top: -60px; width: 200px; height: 200px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .25); }
.tier--plata { background: linear-gradient(140deg, #6F7C93, #2C3954); }
.tier--oro { background: linear-gradient(140deg, #C9A27E, #8A6239); }
.tier--diamante { background: linear-gradient(140deg, #1C2F57, #0B1530 70%); box-shadow: inset 0 0 0 1px rgba(201, 162, 126, .4); }
.tier-brand { font-size: 10px; letter-spacing: .4em; opacity: .7; }
.tier h3 { font-size: 34px; margin: 18px 0 4px; letter-spacing: -.03em; }
.tier-req { margin: 0 0 18px; font-size: 13px; opacity: .8; }
.tier ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; font-size: 14.5px; }
.tier li { display: flex; gap: 10px; }
.tier li::before { content: "✦"; color: var(--yellow); font-size: 11px; margin-top: 4px; }
@media (max-width: 900px) { .loyalty { grid-template-columns: 1fr; } }

/* ---------- Equipo ---------- */
.team { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.member { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-l); overflow: hidden; }
.member .avatar { aspect-ratio: 1; display: grid; place-items: center; position: relative; overflow: hidden; }
.member .avatar svg { width: 62%; height: auto; }
.member .avatar span { position: absolute; left: 14px; top: 14px; font-size: 11px; letter-spacing: .16em; font-weight: 600; color: rgba(247, 240, 230, .8); }
.member .info { padding: 18px 20px 22px; }
.member h3 { font-size: 18px; letter-spacing: -.01em; }
.member p { margin: 6px 0 0; font-size: 14px; color: var(--ink-2); }
@media (max-width: 960px) { .team { grid-template-columns: 1fr 1fr; } }
