/* ==========================================================================
   Ruway — hoja de estilos

   Este archivo tiene dos mitades y conviene no confundirlas:

   TEMA (reescribir en cada cliente)
     Los tokens de :root y las secciones de escaparate — hero, franjas,
     historia, contacto, pie. Aquí es donde el sitio toma su personalidad.
     Empieza cambiando los tokens: casi todo lo demás los hereda.

   MOTOR (dejar como está, salvo que quieras cambiar el comportamiento)
     Catálogo y tarjetas, buscador y filtros, ficha de producto, carrito y
     cajón lateral, modal de contacto, avisos, banner de vista previa. Son
     los componentes que el panel y main.js manipulan por dentro: si les
     cambias los nombres de clase, dejan de funcionar. Reestilizarlos sí,
     renombrarlos no.

   La paleta que viene abajo es un gris neutro a propósito. No la publiques
   tal cual: sustitúyela por la del cliente antes de mostrar nada.
   ========================================================================== */

/* ---------- Reset ligero ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html {
  overflow-x: clip;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
img, picture, svg { display: block; max-width: 100%; }
button, input, textarea, select { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
[hidden] { display: none !important; }

/* ---------- TEMA · Tokens ----------
   Cambia estos valores y el sitio entero se mueve con ellos. Los nombres
   --gold / --azul son históricos: significan "color de acción" y "color de
   marca", no un color literal. Conviene mantener los nombres (el resto de
   la hoja y el panel los usan) y cambiar solo los valores.               */
:root {
  /* RUWAY — paleta del BrandBook 2026 (Bema Studio). Superficies: el «Natural White» #E2D8CC
     aclarado, como la tela cruda; nunca blanco puro. */
  --porcelana:#fbf8f3;
  --paper:    #f6f1ea;   /* tarjetas y bloques claros */
  --bg:       #efe8de;   /* fondo de página */
  --bg-2:     #e2d8cc;   /* Natural White del manual */
  --sand:     #cbbfae;

  /* tinta: Eerie Black */
  --ink:      #1a1a1a;
  --ink-soft: #3b3632;
  --ink-mute: #6e655b;

  /* marca: Matte Dark Red */
  --azul:      #771a15;  /* principal */
  --azul-hondo:#4e100d;
  --azul-tinta:#1a1a1a;  /* bloques oscuros: Eerie Black */
  --azul-claro:#c99a8f;

  /* acción: Authentic Gold, reservado para lo que se pulsa */
  --gold:     #e7ae23;
  --gold-deep:#b5850f;
  --gold-soft:#f2d48a;

  /* Business Gold (oliva) */
  --olive:    #6a592b;
  --olive-deep:#4a3e1d;

  --green:    #4f7a3a;
  --line:     rgba(26,26,26,0.14);
  --line-2:   rgba(26,26,26,0.07);

  --accent:   var(--azul);
  --accent-2: var(--azul-hondo);

  /* Tipografía: el manual pide Flaviotte (titulares) y DM Sans (texto). Flaviotte no está en Google Fonts:
     Instrument Serif es su par web más cercano (serif condensada de alto contraste). DM Mono para códigos
     de pieza (A003), medidas y etiquetas: el papel de la etiqueta colgante. */
  --ff-display: "Instrument Serif", "Flaviotte", Georgia, serif;
  --ff-body:    "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ff-mono:    "DM Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --ff-script:  var(--ff-display);

  --ease-out: cubic-bezier(.22,.61,.36,1);
  --ease:     cubic-bezier(.65,.05,.36,1);

  --wrap: 1220px;
  --pad: clamp(1.1rem, 4vw, 3.2rem);
  --radius: 6px;
  --radius-sm: 4px;
  --utilbar-h: 34px;
}

/* ---------- Tonalidad del fondo (elegible desde el panel · General) ----------
   El panel ofrece tres tonos de fondo. Ajusta estas dos variantes a tu
   paleta para que la opción siga teniendo sentido en este cliente.       */
:root[data-bg-tone="crema"] {   /* más cálido */
  --paper: #f3ebdf;
  --bg:    #e9dece;
  --bg-2:  #dccdb8;
  --sand:  #c3b199;
}
:root[data-bg-tone="arena"] {   /* más contrastado */
  --paper: #ece6dd;
  --bg:    #ddd5c9;
  --bg-2:  #cfc5b6;
  --sand:  #b3a693;
}

/* ---------- Base ---------- */
body {
  font-family: var(--ff-body);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.62;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

.wrap { width: min(100% - 2.2rem, var(--wrap)); margin-inline: auto; }
.wrap-wide { width: min(100% - 1.4rem, 1420px); margin-inline: auto; }
section { position: relative; }

:where(a, button, input, select, textarea):focus-visible {
  outline: 2px solid var(--gold-deep);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- Tipografía utilitaria ---------- */
/* El eyebrow es una etiqueta de plano: mono, con guion de cota. */
.kicker {
  font-family: var(--ff-mono);
  font-weight: 500;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-2);
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}
.kicker::before {
  content: "";
  width: 26px; height: 1px;
  background: currentColor;
  display: inline-block;
  opacity: .75;
}
/* .script: la palabra que carga el titular. Archivo expandido, naranja. */
.script {
  font-family: var(--ff-display);
  font-weight: 800;
  font-variation-settings: "wdth" 118;
  color: var(--gold);
  line-height: .88;
  letter-spacing: -0.025em;
}
h1, h2, h3 {
  font-family: var(--ff-display);
  font-weight: 700;
  font-variation-settings: "wdth" 104;
  line-height: 1.02;
  letter-spacing: -0.025em;
}

.section-head { margin-bottom: clamp(2rem, 5vw, 3.2rem); }
/* Estas 3 secciones no usan .wrap: su contenido (tarjetas) se centra solo,
   acotado a var(--wrap); el encabezado necesita el mismo tope para alinear
   con el borde izquierdo de las tarjetas en pantallas anchas. */
.problem-section .section-head,
.benefits-rich .section-head,
.rubros .section-head {
  width: min(100% - 2rem, var(--wrap));
}
.section-head h2 { font-size: clamp(2rem, 4.6vw, 3.3rem); margin-top: 0.8rem; }
.section-head p { color: var(--ink-mute); margin-top: 1rem; font-size: 1.02rem; }

/* Cota: divisor con medida, en vez de una línea decorativa cualquiera */
.cota { display: flex; align-items: center; gap: .8rem; color: var(--ink-mute); font-family: var(--ff-mono); font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; }
.cota::before, .cota::after { content: ""; height: 1px; background: var(--line); flex: 1; }

/* ---------- Botones ---------- */
.btn {
  --bg-btn: var(--azul);
  --fg-btn: #fff;
  display: inline-flex; align-items: center; gap: 0.55rem;
  padding: 0.88em 1.45em;
  border-radius: var(--radius-sm);
  font-family: var(--ff-display);
  font-weight: 600;
  font-variation-settings: "wdth" 100;
  font-size: 0.96rem;
  letter-spacing: -0.005em;
  background: var(--bg-btn);
  color: var(--fg-btn);
  border: 1.5px solid var(--bg-btn);
  cursor: pointer;
  transition: transform .22s var(--ease-out), background .22s, color .22s, box-shadow .22s, border-color .22s;
  will-change: transform;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 12px 26px -14px rgba(4,29,56,.75); }
.btn-gold { --bg-btn: var(--gold); --fg-btn: #2b1a00; }
.btn-gold:hover { box-shadow: 0 14px 30px -12px rgba(201,115,0,.75); }
.btn-wa { --bg-btn: #25d366; --fg-btn: #04310f; }
.btn-wa:hover { box-shadow: 0 14px 30px -12px rgba(37,211,102,.6); }
.btn-ghost { --bg-btn: transparent; --fg-btn: var(--ink); border-color: var(--line); }
.btn-ghost:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.btn svg { width: 1.1em; height: 1.1em; }

/* ---------- Splash ---------- */
/* Deliberadamente breve y callado: el momento de la página es el plano del hero. */
.splash {
  position: fixed; inset: 0; z-index: 200;
  display: grid; place-items: center;
  background: var(--azul-tinta);
  color: #fff;
  animation: splashSafety .01s 4.4s forwards;
}
.splash.is-out { opacity: 0; pointer-events: none; transition: opacity .55s var(--ease-out), clip-path .7s var(--ease); clip-path: inset(0 0 100% 0); }
@keyframes splashSafety { to { opacity: 0; pointer-events: none; clip-path: inset(0 0 100% 0); } }
.splash-mark { text-align: center; }
.splash-mark .m {
  font-family: var(--ff-display); font-weight: 800;
  font-variation-settings: "wdth" 112;
  font-size: clamp(2.3rem,8vw,4rem); letter-spacing: .01em; color: #fff;
}
.splash-mark .s {
  font-family: var(--ff-mono); font-size: .74rem; letter-spacing: .34em;
  text-transform: uppercase; color: var(--gold); margin-top: .5rem;
}
.splash-bar { width: 150px; height: 1px; margin: 1.4rem auto 0; background: rgba(255,255,255,.16); overflow: hidden; }
.splash-bar::after { content: ""; display: block; height: 100%; width: 34%; background: var(--gold); animation: splashLoad 1.2s var(--ease-out) infinite; }
@keyframes splashLoad { 0% { transform: translateX(-120%);} 100% { transform: translateX(400%);} }

/* ---------- Nav ---------- */
.nav {
  --nav-fg: #ffffff;
  --nav-fg-mute: rgba(255,255,255,.74);
  --nav-line: rgba(255,255,255,.24);
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding-block: 1.05rem;
  padding-inline: max(var(--pad), calc((100% - var(--wrap)) / 2));
  color: var(--nav-fg);
  transition: background .35s var(--ease-out), box-shadow .35s, padding .35s, color .35s;
}
.nav.is-solid {
  --nav-fg: var(--ink);
  --nav-fg-mute: var(--ink-soft);
  --nav-line: var(--line);
  background: color-mix(in srgb, var(--paper) 90%, transparent);
  backdrop-filter: blur(12px) saturate(140%);
  -webkit-backdrop-filter: blur(12px) saturate(140%);
  box-shadow: 0 1px 0 var(--line-2), 0 10px 30px -24px rgba(4,29,56,.6);
  padding-block: 0.66rem;
}
.brandmark {
  display: inline-flex; align-items: center; gap: .58rem;
  font-family: var(--ff-display); font-weight: 800;
  font-variation-settings: "wdth" 108;
  font-size: 1.3rem; letter-spacing: .0em; color: var(--nav-fg);
}
.brandmark .seal { width: 32px; height: 32px; flex: none; }
.brand-logo-img { width: auto; height: 34px; max-width: 200px; flex: none; object-fit: contain; }
.footer .brand-logo-img { height: 30px; }
/* Con el logo completo (wordmark) cargado, el nombre en texto sobra al lado */
.brandmark:has(.brand-logo-img:not([hidden])) .brand-text { display: none; }
.brandmark .apos { color: var(--gold); }
.nav-links { display: flex; align-items: center; gap: 1.6rem; }
.nav-links a.link { font-weight: 500; font-size: .94rem; color: var(--nav-fg-mute); position: relative; padding: .2rem 0; transition: color .22s; }
.nav-links a.link:hover { color: var(--nav-fg); }
.nav-links a.link::after { content:""; position:absolute; left:0; bottom:-3px; height:2px; width:0; background: var(--gold); transition: width .28s var(--ease-out); }
.nav-links a.link:hover::after { width: 100%; }
.nav-cta { display: inline-flex; }
.nav-links a.nav-cta { padding: .5em 1.1em; font-size: .88rem; }
.menu-extra { display: none; }
.nav-burger { display: none; background: none; border: 0; cursor: pointer; width: 42px; height: 42px; border-radius: var(--radius-sm); align-items: center; justify-content: center; color: var(--nav-fg); }
.nav-burger span, .nav-burger span::before, .nav-burger span::after { content:""; display:block; width: 20px; height: 2px; background: currentColor; position: relative; transition: transform .3s var(--ease); }
.nav-burger span::before { position: absolute; top: -6px; }
.nav-burger span::after { position: absolute; top: 6px; }
body.menu-open .nav-burger { color: var(--ink); }
body.menu-open .nav-burger span { background: transparent; }
body.menu-open .nav-burger span::before { transform: translateY(6px) rotate(45deg); }
body.menu-open .nav-burger span::after { transform: translateY(-6px) rotate(-45deg); }

/* ==========================================================================
   HERO — plano técnico
   ========================================================================== */
.hero {
  display: flex; flex-direction: column; justify-content: center;
  padding: 6.6rem var(--pad) clamp(2.6rem, 5vw, 4rem);
  position: relative; overflow: hidden;
  color: #fff;
  background:
    radial-gradient(90% 70% at 78% 8%, color-mix(in srgb, var(--azul-claro) 30%, transparent) 0%, transparent 58%),
    radial-gradient(70% 60% at 6% 96%, color-mix(in srgb, var(--gold) 16%, transparent) 0%, transparent 60%),
    linear-gradient(168deg, var(--azul-hondo) 0%, var(--azul-tinta) 100%);
}
/* papel milimetrado: retícula fina + retícula mayor */
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px),
    linear-gradient(rgba(255,255,255,.09) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.09) 1px, transparent 1px);
  background-size: 30px 30px, 30px 30px, 150px 150px, 150px 150px;
  mask-image: radial-gradient(120% 100% at 50% 40%, #000 30%, transparent 100%);
  -webkit-mask-image: radial-gradient(120% 100% at 50% 40%, #000 30%, transparent 100%);
}
.hero-grid {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1fr;
  gap: clamp(1.5rem, 4vw, 3.2rem); align-items: center;
  width: min(100% - 2rem, var(--wrap)); margin-inline: auto;
  flex: 1;
  padding-block: 1rem;
}
@media (min-width: 941px) {
  .hero-grid:has(.hero-inset img[src]) { grid-template-columns: 1.05fr .95fr; }
}
.hero-copy { max-width: 640px; }
.hero-inset { display: none; position: relative; }
.hero-inset:has(img[src]) { display: block; }
.hero-inset img {
  display: block; width: 100%; height: auto; border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,.14);
  box-shadow: 0 40px 80px -30px rgba(0,0,0,.6);
}
.hero .kicker { color: var(--gold-soft); }
.hero-title {
  font-size: clamp(2.4rem, 5vw, 3.9rem);
  max-width: 13ch;
  margin: .9rem 0 0.4rem;
  color: #fff;
}
.hero-title .lg { display: block; font-variation-settings: "wdth" 100; font-weight: 600; }
.hero-title .script { display: block; font-size: clamp(3rem, 6.6vw, 5.2rem); margin: .03em 0 .02em -0.035em; }
.hero-sub { font-size: 1.04rem; color: rgba(255,255,255,.76); max-width: 46ch; margin: 1rem 0 0; }
.hero-slogan {
  font-family: var(--ff-mono); font-size: .74rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--gold); margin-top: .9rem; display: flex; align-items: center; gap: .55rem;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.2rem; }
.hero .btn-ghost { --fg-btn: #fff; border-color: rgba(255,255,255,.34); }
.hero .btn-ghost:hover { background: #fff; color: var(--azul-tinta); border-color: #fff; }


.scroll-cue { position: absolute; right: var(--pad); bottom: 1.2rem; z-index: 2; font-family: var(--ff-mono); font-size: .6rem; letter-spacing: .22em; text-transform: uppercase; color: rgba(255,255,255,.5); display: flex; flex-direction: column; align-items: center; gap: .5rem; }
.scroll-cue .ln { width: 1px; height: 30px; background: linear-gradient(rgba(255,255,255,.6), transparent); animation: cue 1.9s var(--ease-out) infinite; transform-origin: top; }
@keyframes cue { 0%,100%{ transform: scaleY(.35); opacity:.35;} 50%{ transform: scaleY(1); opacity:1;} }

/* ---------- Marquee ---------- */
.marquee { background: var(--gold); color: #2b1a00; overflow: hidden; }
.marquee-track { display: inline-flex; align-items: center; gap: 2.2rem; padding: .72rem 0; white-space: nowrap; will-change: transform; animation: marq 38s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track span { font-family: var(--ff-mono); font-weight: 500; font-size: .82rem; letter-spacing: .18em; text-transform: uppercase; display: inline-flex; align-items: center; gap: 2.2rem; }
.marquee-track .dot { width: 5px; height: 5px; border-radius: 50%; background: rgba(43,26,0,.5); }
@keyframes marq { to { transform: translateX(-50%); } }

/* ---------- Accesos por categoría (opcional) ---------- */
.rooms { padding: clamp(3.4rem, 7vw, 5.4rem) var(--pad) clamp(2rem,4vw,3rem); }
.rooms-head { margin-bottom: 1.8rem; }
.rooms-head h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); margin-top: .7rem; }
.rooms-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.room {
  background: var(--paper); padding: 1.5rem 1.4rem 1.3rem;
  display: flex; flex-direction: column; gap: .55rem; min-height: 168px;
  border: 1.5px solid var(--line); border-radius: var(--radius);
  transition: background .25s var(--ease-out), color .25s, border-color .25s, box-shadow .25s, transform .25s var(--ease-out);
  cursor: pointer;
}
.room:hover { background: var(--azul); color: #fff; border-color: var(--azul); box-shadow: 0 20px 40px -24px rgba(10,74,74,.45); transform: translateY(-3px); }
.room svg { width: 34px; height: 34px; color: var(--azul); transition: color .25s, transform .3s var(--ease-out); }
.room:hover svg { color: var(--gold); transform: translateY(-3px); }
.room .rn { font-family: var(--ff-display); font-weight: 700; font-size: 1.08rem; margin-top: auto; }
.room .rd { font-size: .84rem; color: var(--ink-mute); transition: color .25s; }
.room:hover .rd { color: rgba(255,255,255,.72); }
.room .rk { font-family: var(--ff-mono); font-size: .6rem; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-mute); transition: color .25s; }
.room:hover .rk { color: var(--gold-soft); }

/* ---------- Catálogo ---------- */
.catalogo { padding: clamp(3rem, 7vw, 5.5rem) var(--pad) clamp(4rem, 9vw, 6.5rem); }
.cat-top { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1.4rem; margin-bottom: 1.6rem; }
.cat-controls { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 1.4rem; margin-bottom: 2.2rem; }
.search { position: relative; display: flex; align-items: center; flex: 1 1 300px; max-width: 380px; }
.search .ic { position: absolute; left: 13px; width: 17px; height: 17px; color: var(--ink-mute); pointer-events: none; }
.search input { width: 100%; padding: .68em 2.6em .68em 2.5em; border: 1.5px solid var(--line); border-radius: var(--radius-sm); background: var(--porcelana); font-family: var(--ff-body); font-size: 16px; color: var(--ink); -webkit-appearance: none; appearance: none; }
.search input::placeholder { color: var(--ink-mute); }
.search input:focus { outline: none; border-color: var(--azul); box-shadow: 0 0 0 3px rgba(10,74,138,.15); }
.search input::-webkit-search-cancel-button { display: none; }
.search-clear { position: absolute; right: 8px; width: 28px; height: 28px; border: 0; background: none; cursor: pointer; color: var(--ink-mute); border-radius: var(--radius-sm); display: none; place-content: center; }
.search-clear.show { display: grid; }
.search-clear svg { width: 15px; height: 15px; }
.search-clear:hover { background: var(--bg-2); color: var(--ink); }
.filters { display: flex; flex-wrap: wrap; gap: .45rem; }
.no-results { display: none; text-align: center; color: var(--ink-mute); padding: 2.8rem 1rem; }
.filter {
  font-family: var(--ff-mono); font-weight: 500; font-size: .76rem;
  letter-spacing: .08em; text-transform: uppercase;
  padding: .58em 1em; border-radius: var(--radius-sm);
  border: 1.5px solid var(--line); background: transparent; color: var(--ink-soft);
  cursor: pointer; transition: all .22s var(--ease-out);
}
.filter:hover { border-color: var(--azul); color: var(--azul); }
.filter.is-active { background: var(--azul); color: #fff; border-color: var(--azul); }

.grid-products {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(266px, 1fr));
  gap: clamp(1rem, 2vw, 1.5rem);
}
.card {
  position: relative; display: flex; flex-direction: column;
  background: var(--paper);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line-2);
  transition: transform .35s var(--ease-out), box-shadow .35s, border-color .35s;
  will-change: transform;
}
.card:hover { transform: translateY(-6px); box-shadow: 0 28px 48px -30px rgba(4,29,56,.45); border-color: var(--line); }
.card-media { position: relative; aspect-ratio: 4/3.9; overflow: hidden; background: var(--photo-bg, #fff); display: block; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease-out); }
.card:hover .card-media img { transform: scale(1.05); }
.card-line { position: absolute; top: 0; left: 0; right: 0; height: 4px; background: var(--accent); z-index: 3; }
.card-fav {
  position: absolute; top: .75rem; right: .75rem; z-index: 3;
  background: var(--gold); color: #2b1a00;
  font-family: var(--ff-mono); font-weight: 600; font-size: .62rem;
  letter-spacing: .12em; text-transform: uppercase;
  padding: .34em .7em; border-radius: 4px;
}
.card-body { padding: 1.05rem 1.15rem 1.25rem; display: flex; flex-direction: column; gap: .45rem; flex: 1; }
.card-kicker { font-family: var(--ff-mono); font-size: .64rem; letter-spacing: .16em; text-transform: uppercase; color: var(--accent-2); font-weight: 500; }
.card h3 { font-size: 1.2rem; font-variation-settings: "wdth" 100; }
.card-desc { font-size: .88rem; color: var(--ink-mute); flex: 1; }
.card-title-link { color: inherit; }
.card-title-link:hover h3 { color: var(--accent-2); }

/* tarjeta sin foto: ficha técnica dibujada, no un hueco */
.card-seal {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: .5rem; text-align: center;
  padding: 1rem;
  background:
    linear-gradient(rgba(255,255,255,.5) 1px, transparent 1px) 0 0 / 100% 22px,
    linear-gradient(90deg, rgba(255,255,255,.5) 1px, transparent 1px) 0 0 / 22px 100%,
    linear-gradient(160deg, color-mix(in srgb, var(--accent) 16%, #eef2f7), #dde5ee);
  color: var(--accent-2);
}
.card-seal .cs-mark { width: 84px; height: 84px; color: var(--accent-2); opacity: .92; }
.card-seal .cs-mark svg { width: 100%; height: 100%; }
.card-seal .cs-name { font-family: var(--ff-mono); font-size: .68rem; letter-spacing: .2em; text-transform: uppercase; color: var(--accent-2); }
.card-seal .cs-sub { font-family: var(--ff-mono); font-size: .56rem; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-mute); }

/* ---------- Barra de confianza (va pegada al hero, donde decide) ---------- */
.trustbar { background: var(--porcelana); border-bottom: 1px solid var(--line-2); }
.trustbar-row { display: grid; grid-template-columns: repeat(4,1fr); width: min(100% - 2rem, var(--wrap)); margin-inline: auto; }
.trust { display: flex; gap: .85rem; align-items: flex-start; padding: 1.5rem 1.5rem 1.5rem 0; border-right: 1px solid var(--line-2); }
.trust:last-child { border-right: 0; }
.trust svg { width: 24px; height: 24px; color: var(--azul); flex: none; margin-top: .15rem; }
.trust h4 { font-family: var(--ff-display); font-weight: 700; font-size: .98rem; }
.trust p { font-size: .82rem; color: var(--ink-mute); margin-top: .1rem; }

/* ---------- Más pedidos: tira horizontal, distinta del grid ---------- */
.destacados { padding: clamp(3rem,6vw,4.5rem) var(--pad) 0; }
.dest-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1rem; margin-bottom: 1.5rem; width: min(100% - 2rem, var(--wrap)); margin-inline: auto; }
.dest-head h2 { font-size: clamp(1.6rem,3.2vw,2.2rem); margin-top: .6rem; }
.dest-hint { font-family: var(--ff-mono); font-size: .66rem; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-mute); }
.dest-rail {
  display: flex; gap: 1rem; overflow-x: auto; scroll-snap-type: x mandatory;
  padding: .3rem calc((100% - min(100% - 2rem, var(--wrap))) / 2) 1.4rem;
  scrollbar-width: thin;
}
.dest-rail::-webkit-scrollbar { height: 6px; }
.dest-rail::-webkit-scrollbar-thumb { background: var(--sand); border-radius: 999px; }
.dest-rail .card { flex: 0 0 clamp(240px, 74vw, 290px); scroll-snap-align: start; }
.dest-rail:empty { display: none; }

/* ---------- Cotizador de lista (franja naranja: el momento de vender) ---------- */
.cotiza { background: var(--gold); color: #2b1a00; padding: clamp(3.2rem,7vw,5rem) var(--pad); }
.cotiza-grid { display: grid; grid-template-columns: .95fr 1.05fr; gap: clamp(1.8rem,4vw,3.4rem); align-items: center; width: min(100% - 2rem, var(--wrap)); margin-inline: auto; }
.cotiza .kicker { color: #7a4e00; }
.cotiza h2 { font-size: clamp(2rem,4.6vw,3.1rem); margin-top: .7rem; color: #2b1a00; }
.cotiza h2 .script { color: #fff; display: block; font-size: clamp(2.4rem,5.4vw,3.7rem); }
.cotiza p { color: #6b4400; margin-top: 1rem; max-width: 42ch; }
.cotiza-steps { display: flex; flex-wrap: wrap; gap: .5rem 1.4rem; margin-top: 1.4rem; font-family: var(--ff-mono); font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: #7a4e00; }
.cotiza-steps span { display: inline-flex; align-items: center; gap: .4rem; }
.cotiza-steps b { color: #2b1a00; }
.cotiza-panel { background: #fff; border-radius: var(--radius); padding: 1.4rem; box-shadow: 0 34px 60px -34px rgba(90,55,0,.7); }
.cotiza-panel label { display: block; font-family: var(--ff-mono); font-size: .66rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-mute); margin-bottom: .5rem; }
.cotiza-panel textarea {
  width: 100%; min-height: 148px; resize: vertical;
  font-family: var(--ff-mono); font-size: .86rem; line-height: 1.7; color: var(--ink);
  padding: .8rem .9rem; border: 1.5px solid var(--line); border-radius: var(--radius-sm); background: var(--paper);
}
.cotiza-panel textarea:focus { outline: none; border-color: var(--azul); box-shadow: 0 0 0 3px rgba(10,74,138,.15); }
.cotiza-foot { display: flex; flex-wrap: wrap; gap: .7rem; align-items: center; margin-top: .9rem; }
.cotiza-foot .btn { flex: 1 1 auto; justify-content: center; }
.cotiza-count { font-family: var(--ff-mono); font-size: .72rem; color: var(--ink-mute); }

/* ---------- Historia / el local (opcional) ---------- */
.historia { padding: clamp(4rem, 9vw, 6.5rem) var(--pad); background: var(--paper); }
.historia-grid { display: grid; grid-template-columns: 0.88fr 1.12fr; gap: clamp(2rem,5vw,4rem); align-items: center; width: min(100% - 2rem, var(--wrap)); margin-inline: auto; }
.historia-figure { position: relative; }
.historia-figure img { width: 100%; border-radius: var(--radius); aspect-ratio: 4/4.4; object-fit: cover; box-shadow: 0 36px 64px -40px rgba(4,29,56,.55); }
/* sin foto cargada, la columna se retira y el texto ocupa el ancho */
.historia-figure:not(:has(img[src])) { display: none; }
.historia-figure .tagchip {
  position: absolute; bottom: -14px; left: -12px;
  background: var(--gold); color: #2b1a00;
  font-family: var(--ff-mono); font-size: .7rem; letter-spacing: .1em; text-transform: uppercase;
  padding: .6rem 1rem; border-radius: 6px;
  box-shadow: 0 14px 28px -16px rgba(201,115,0,.8);
}
.historia-grid:not(:has(.historia-figure img[src])) { grid-template-columns: 1fr; }
.historia h2 { font-size: clamp(1.9rem, 4.2vw, 3rem); margin: .8rem 0 1.1rem; }
.historia p { color: var(--ink-soft); margin-bottom: 1rem; }
.pillars { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.4rem; margin-top: 2.2rem; }
.pillar { border-top: 2px solid var(--azul); padding-top: .9rem; }
.pillar .n {
  font-family: var(--ff-mono); font-size: .62rem; letter-spacing: .2em;
  color: var(--azul); margin-bottom: .5rem; display: block;
}
.pillar h4 { font-family: var(--ff-display); font-weight: 700; font-size: 1.02rem; margin-bottom: .25rem; }
.pillar p { font-size: .88rem; color: var(--ink-mute); margin: 0; }

/* ---------- Respaldo (ex reconocimientos) ---------- */
.awards { padding: clamp(4rem, 9vw, 6.5rem) var(--pad); background: var(--azul-tinta); color: #fff; }
.awards .kicker { color: var(--gold); }
.awards .section-head h2 { color: #fff; }
.awards .section-head p { color: rgba(255,255,255,.6); }
.awards-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; }
.award {
  flex: 1 1 260px; max-width: 320px;
  display: flex; gap: 1rem; align-items: flex-start;
  padding: 1.5rem 1.5rem 1.6rem;
  background: var(--azul-hondo);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius);
  transition: background .3s var(--ease-out), transform .3s var(--ease-out);
}
.award:hover { background: color-mix(in srgb, var(--azul-hondo) 82%, white); transform: translateY(-3px); }
.medal { flex: none; width: 40px; height: 40px; display: grid; place-content: center; border-radius: 50%; border: 1.5px solid currentColor; }
.medal svg { width: 19px; height: 19px; }
.medal.oro    { color: var(--gold); }
.medal.plata  { color: var(--azul-claro); }
.medal.bronce { color: rgba(255,255,255,.55); }
.award .cat { font-family: var(--ff-display); font-weight: 700; font-size: 1.06rem; color: #fff; }
.award .ev { font-size: .86rem; color: rgba(255,255,255,.62); margin-top: .25rem; }
.award .tp { font-family: var(--ff-mono); font-size: .64rem; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.42); margin-top: .5rem; }
.award .yr { font-family: var(--ff-mono); font-size: .74rem; color: var(--gold); font-weight: 500; margin-top: .5rem; letter-spacing: .06em; }

/* ---------- Clientes / a quién atendemos ---------- */
.clients { padding: clamp(3rem,7vw,4.5rem) 0; text-align: center; overflow: hidden; }
.clients .wrap { padding-inline: var(--pad); }
.clients .section-head { margin-bottom: 0; text-align: left; }
.clients .section-head p { margin-inline: 0; }
.client-marquee {
  position: relative; margin-top: clamp(2rem, 5vw, 3.2rem); display: flex; flex-direction: column; gap: .55rem;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.client-marquee-row { display: flex; gap: .55rem; width: max-content; animation: client-marquee-scroll 52s linear infinite; }
.client-marquee-row:nth-child(2) { animation-duration: 68s; }
.client-marquee-row:nth-child(3) { animation-duration: 40s; }
.client-marquee-row:nth-child(4) { animation-duration: 58s; }
.client-marquee-row:nth-child(5) { animation-duration: 46s; }
.client-marquee:hover .client-marquee-row { animation-play-state: paused; }
.client-chip { flex: 0 0 auto; font-family: var(--ff-mono); font-size: .74rem; letter-spacing: .08em; text-transform: uppercase; padding: .6em 1em; border-radius: var(--radius-sm); border: 1px solid var(--line); color: var(--ink-soft); background: var(--paper); white-space: nowrap; }
@keyframes client-marquee-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .client-marquee-row { animation: none; } }

/* ---------- Contacto ---------- */
.contacto { padding: clamp(3rem, 7vw, 5.5rem) var(--pad) clamp(4rem,9vw,6.5rem); }
.contacto-card {
  position: relative; overflow: hidden;
  background: var(--azul); color: #fff;
  border-radius: var(--radius);
  padding: clamp(2.2rem, 5.5vw, 4.2rem);
  width: min(100%, var(--wrap)); margin-inline: auto;
  display: grid; grid-template-columns: 1.15fr .85fr; gap: 2.5rem; align-items: center;
}
.contacto-card::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.07) 1px, transparent 1px);
  background-size: 30px 30px;
  mask-image: linear-gradient(120deg, #000, transparent 70%);
  -webkit-mask-image: linear-gradient(120deg, #000, transparent 70%);
}
.contacto-card > * { position: relative; z-index: 1; }
.contacto-card .kicker { color: var(--gold-soft); }
.contacto-card h2 { font-size: clamp(2rem, 4.4vw, 3.1rem); margin-top: .7rem; }
.contacto-card h2 .script { display: block; font-size: clamp(2.5rem,5.6vw,4rem); }
.contacto-card p { color: rgba(255,255,255,.76); margin: 1rem 0 1.8rem; max-width: 42ch; }
.contacto-actions { display: flex; flex-wrap: wrap; gap: .7rem; }
.contacto-card .btn-ghost { --fg-btn: #fff; border-color: rgba(255,255,255,.4); }
.contacto-card .btn-ghost:hover { background: #fff; color: var(--azul); border-color: #fff; }
.contact-list { display: flex; flex-direction: column; gap: 1.1rem; }
.contact-item { display: flex; gap: .8rem; align-items: flex-start; }
.contact-item svg { width: 20px; height: 20px; color: var(--gold); flex: none; margin-top: .25rem; }
.contact-item .lbl { font-family: var(--ff-mono); font-size: .62rem; letter-spacing: .2em; text-transform: uppercase; color: rgba(255,255,255,.5); }
.contact-item .val { font-weight: 500; }
.contact-item a.val:hover { color: var(--gold-soft); }

/* ---------- Formulario de contacto (modal) ---------- */
.cf-overlay {
  position: fixed; inset: 0; z-index: 120; background: rgba(4,29,56,.6);
  opacity: 0; pointer-events: none; transition: opacity .3s var(--ease-out);
  display: flex; align-items: center; justify-content: center; padding: 1rem;
}
.cf-overlay.open { opacity: 1; pointer-events: auto; }
.cf-modal {
  width: min(640px, 94vw); max-height: 97vh; overflow-y: auto; overflow-x: hidden;
  opacity: 0; transform: translateY(16px) scale(.98);
  transition: all .3s var(--ease-out);
  margin: auto;
}
.cf-modal.open { opacity: 1; transform: none; }
.contact-form {
  position: relative;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(1.5rem, 4vw, 2.2rem);
  box-shadow: 0 40px 90px -30px rgba(0,0,0,.5);
}
.cf-close {
  position: absolute; top: .9rem; right: .9rem; width: 30px; height: 30px;
  border-radius: 6px; border: 1px solid var(--line); background: var(--paper);
  color: var(--ink-soft); cursor: pointer; display: grid; place-content: center;
}
.cf-close:hover { background: var(--bg-2); }
.contact-form h3 { font-size: clamp(1.3rem, 2.6vw, 1.7rem); margin-top: .4rem; }
.contact-form .cf-sub { color: var(--ink-mute); margin: .35rem 0 1.1rem; font-size: .92rem; }
.cf-grid { display: grid; grid-template-columns: 1fr 2fr; gap: .8rem; min-width: 0; }
.cf-field { margin-bottom: .8rem; display: flex; flex-direction: column; gap: .3rem; min-width: 0; }
.cf-field label { display: block; min-height: 1.5rem; line-height: 1.25; font-family: var(--ff-mono); font-size: .66rem; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-mute); }
.cf-field label .opt { text-transform: none; letter-spacing: 0; font-size: .95em; }
.cf-field label .req { color: var(--gold-deep); }
.cf-req-note { font-size: .74rem; color: var(--ink-mute); margin-bottom: .5rem; }
.cf-check { display: flex; gap: .55rem; align-items: flex-start; font-size: .82rem; line-height: 1.4; color: var(--ink-soft, var(--ink-mute)); margin: .2rem 0 .5rem; cursor: pointer; }
.cf-check input { margin-top: .2rem; flex: none; }
.cf-req-note .req { color: var(--gold-deep); font-weight: 700; }
.cf-field input, .cf-field select, .contact-form textarea {
  width: 100%; min-width: 0; box-sizing: border-box;
  font-family: var(--ff-body); font-size: 15px; color: var(--ink);
  padding: .58em .75em; border: 1.5px solid var(--line); border-radius: var(--radius-sm); background: #fff;
}
.contact-form textarea { min-height: 90px; resize: vertical; }
.cf-field input:focus, .cf-field select:focus, .contact-form textarea:focus { outline: none; border-color: var(--azul); box-shadow: 0 0 0 3px rgba(10,74,138,.15); }
.cf-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
#cf-code { font-family: var(--ff-mono); letter-spacing: .5em; text-align: center; font-size: 1.3rem; font-weight: 600; }
[data-cf-step2] [data-cf-back] { margin-left: .6rem; }
.cf-status { margin-top: .9rem; font-size: .9rem; color: var(--ink-mute); min-height: 1.3em; }
.cf-status.ok { color: var(--green); }
.cf-status.err { color: #c0392b; }
.cf-success { text-align: center; padding: 1.2rem 0 .4rem; }
.cf-success-ic { font-size: 2.4rem; margin-bottom: .3rem; }
.cf-success h3 { margin-top: 0; }
@media (max-width: 820px) { .cf-grid { grid-template-columns: 1fr; } }

/* ---------- Formulario de registro (copia visual del formulario oficial) ---------- */
.reg-modal { width: min(620px, 94vw); }
.reg-modal .contact-form { padding: 1.3rem 1.5rem 1.6rem; }
.reg-header { text-align: center; margin-bottom: .7rem; }
.reg-logo { height: 46px; width: auto; margin: 0 auto .55rem; display: block; }
.reg-header h3 { color: #4f3fe0; margin: 0 0 .2rem; font-size: 1.35rem; }
.reg-header .cf-sub { color: #6d63cf; margin: 0; font-size: .88rem; }
.reg-section-label { font-family: var(--ff-mono); font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; color: #4f3fe0; font-weight: 600; margin: .6rem 0 .3rem; }
.reg-section-label:first-child { margin-top: 0; }
.reg-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; min-width: 0; }
.reg-icon-field label { text-transform: none; font-family: var(--ff-body); font-size: .84rem; font-weight: 600; letter-spacing: 0; color: var(--ink); min-height: 0; margin-bottom: .1rem; }
.reg-modal .cf-field { margin-bottom: .5rem; }
.reg-modal .cf-req-note { margin-bottom: .3rem; }
.reg-input { position: relative; display: flex; align-items: center; }
.reg-input svg { position: absolute; left: .85rem; width: 15px; height: 15px; color: var(--ink-mute); pointer-events: none; z-index: 1; }
.reg-input input, .reg-input select { padding-left: 2.3rem; padding-right: 2.1rem; }
.reg-eye { position: absolute; right: .6rem; width: 26px; height: 26px; display: grid; place-content: center; background: none; border: 0; padding: 0; color: var(--ink-mute); cursor: pointer; }
.reg-eye:hover { color: var(--ink); }
.reg-eye svg { width: 16px; height: 16px; }
.reg-note { font-size: .78rem; margin-top: -.3rem; }
.reg-submit-btn { width: 100%; justify-content: center; background: #4f3fe0; border-color: #4f3fe0; }
.reg-submit-btn:hover { box-shadow: 0 14px 30px -12px rgba(79,63,224,.55); }
.reg-foot-link { text-align: center; font-size: .88rem; margin-top: 1.1rem; color: var(--ink-soft); }
.reg-foot-link a { color: #4f3fe0; font-weight: 600; }
.reg-legal { text-align: center; font-size: .74rem; color: var(--ink-mute); margin-top: .4rem; line-height: 1.5; }
.reg-legal a { color: #4f3fe0; }
@media (max-width: 480px) { .reg-grid { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.footer { background: var(--azul-tinta); color: rgba(255,255,255,.72); padding: clamp(2.8rem,5vw,3.8rem) var(--pad) 2rem; }
.footer-grid { display: grid; grid-template-columns: 1.2fr 0.9fr 0.7fr 0.7fr 0.9fr; gap: 2rem; width: min(100% - 2rem, var(--wrap)); margin-inline: auto; }
.footer .brandmark { font-size: 1.45rem; margin-bottom: .8rem; color: #fff; }
.footer-about { color: rgba(255,255,255,.6); font-size: .88rem; max-width: 38ch; }
.footer h5 { font-family: var(--ff-mono); font-weight: 500; font-size: .66rem; letter-spacing: .2em; text-transform: uppercase; color: rgba(255,255,255,.45); margin-bottom: 1rem; }
.footer-links a { display: block; color: rgba(255,255,255,.72); font-size: .9rem; padding: .3rem 0; transition: color .2s, padding-left .2s; }
.footer-links a:hover { color: var(--gold); padding-left: .3rem; }
.socials { display: flex; gap: .5rem; margin-top: 1.2rem; }
.socials a { width: 38px; height: 38px; border-radius: var(--radius-sm); display: grid; place-content: center; border: 1px solid rgba(255,255,255,.2); color: rgba(255,255,255,.8); transition: all .22s var(--ease-out); }
.socials a:hover { background: var(--gold); color: #2b1a00; border-color: var(--gold); transform: translateY(-2px); }
.socials svg { width: 17px; height: 17px; }
.footer-base { width: min(100% - 2rem, var(--wrap)); margin: 2.4rem auto 0; padding-top: 1.4rem; border-top: 1px solid rgba(255,255,255,.14); display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1.4rem; justify-content: space-between; font-family: var(--ff-mono); font-size: .68rem; letter-spacing: .06em; color: rgba(255,255,255,.45); }
/* El grupo de la derecha se "abre" dentro de la barra: los tres iconos legales (privacidad, condiciones, cookies)
   quedan pegados al © y "Facturación electrónica en la nube" + los iconos se pegan al borde derecho. */
.footer-base-right { display: contents; }
.footer-base { justify-content: flex-start; }
.footer-base-right > span { margin-left: auto; }
.footer-base-legal { margin-top: 0; }
.footer-base-icons { margin-top: 0; }
.footer-base-icons a { width: 28px; height: 28px; }
.footer-base-icons svg { width: 14px; height: 14px; }
/* volver arriba: cierra la fila, y la flecha acompaña al cursor */
.to-top svg { transition: transform .22s var(--ease-out); }
.to-top:hover svg { transform: translateY(-2px); }

/* Libro de Reclamaciones: sello blanco al pie de la columna de contacto.
   Se oculta hasta que el panel tenga la URL — un sello que no lleva a
   ninguna parte es peor que no ponerlo. */
.libro-badge { display: none; }
.libro-badge[href]:not([href="#"]) { display: block; }
.libro-badge {
  width: 136px; margin-top: 1.5rem; padding: .45rem .6rem;
  background: #fff; border-radius: 6px;
  transition: transform .22s var(--ease-out), box-shadow .22s;
}
.libro-badge img { width: 100%; height: auto; }
.libro-badge:hover { transform: translateY(-2px); box-shadow: 0 12px 26px -12px rgba(0,0,0,.8); }

/* ==========================================================================
   PÁGINA DE PRODUCTO
   ========================================================================== */
.pd { padding: 7.5rem var(--pad) 2rem; }
.breadcrumb { width: min(100% - 2rem, var(--wrap)); margin: 0 auto 1.8rem; font-family: var(--ff-mono); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-mute); display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; }
.breadcrumb a:hover { color: var(--azul); }
.breadcrumb .sep { opacity: .5; }

.pd-grid { display: grid; grid-template-columns: 1.02fr 1fr; gap: clamp(1.8rem, 4vw, 3.4rem); width: min(100% - 2rem, var(--wrap)); margin-inline: auto; align-items: start; }
.pd-gallery { position: sticky; top: 6rem; }
.pd-main {
  position: relative; border-radius: var(--radius); overflow: hidden;
  aspect-ratio: 4/4; background: var(--photo-bg, #fff);
  box-shadow: 0 36px 64px -40px rgba(4,29,56,.5);
}
.pd-main img { width: 100%; height: 100%; object-fit: cover; }
.pd-main .card-line { height: 5px; }
.pd-thumbs { display: flex; gap: .6rem; margin-top: .7rem; flex-wrap: wrap; }
.pd-thumb { width: 80px; aspect-ratio: 1; border-radius: var(--radius-sm); overflow: hidden; border: 2px solid transparent; cursor: pointer; background: var(--photo-bg, #fff); transition: border-color .2s; padding: 0; }
.pd-thumb img { width: 100%; height: 100%; object-fit: cover; }
.pd-thumb.is-active { border-color: var(--accent-2); }

.pd-info .kicker { color: var(--accent-2); }
/* designación del modelo: se lee como código de ficha, no como firma */
.pd-script {
  font-family: var(--ff-mono); font-size: .8rem; letter-spacing: .26em;
  text-transform: uppercase; color: var(--accent-2);
  margin: 1rem 0 .3rem;
}
.pd-info h1 { font-size: clamp(1.8rem, 4vw, 2.7rem); }

/* ---------- me gusta, compartir, calificación ---------- */
.card-social { position: absolute; top: .75rem; left: .75rem; z-index: 5; display: flex; gap: .35rem; }
.like-btn, .share-btn { display: inline-flex; align-items: center; gap: .3rem; background: color-mix(in srgb, var(--paper) 90%, transparent); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); border: 1px solid var(--line-2); border-radius: 6px; padding: .34em .6em; font-family: var(--ff-mono); font-size: .7rem; font-weight: 500; color: var(--ink-soft); cursor: pointer; transition: background .2s var(--ease-out), transform .2s var(--ease-out); }
.like-btn svg, .share-btn svg { width: 14px; height: 14px; flex: none; }
.like-btn:hover, .share-btn:hover { background: var(--paper); transform: translateY(-1px); }
.like-btn.is-liked { color: #c0392b; }
.like-btn.is-liked svg { fill: #c0392b; stroke: #c0392b; }
.like-btn.like-pop svg { animation: like-pop .35s var(--ease-out); }
@keyframes like-pop { 0% { transform: scale(1); } 45% { transform: scale(1.4); } 100% { transform: scale(1); } }

.share-menu { position: absolute; top: 100%; left: 0; margin-top: .4rem; z-index: 20; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-sm); box-shadow: 0 20px 40px -20px rgba(4,29,56,.45); padding: .35rem; display: flex; flex-direction: column; gap: .1rem; min-width: 180px; }
.share-menu a, .share-menu button { display: flex; align-items: center; gap: .6rem; padding: .5em .7em; border-radius: 6px; font-size: .86rem; color: var(--ink-soft); text-align: left; width: 100%; background: none; border: 0; cursor: pointer; }
.share-menu a:hover, .share-menu button:hover { background: var(--bg-2); }
.share-menu svg { width: 17px; height: 17px; flex: none; }

.pd-social.card-social { position: relative; top: auto; left: auto; margin: .3rem 0 .1rem; }

.pd-rating { display: flex; flex-direction: column; gap: .3rem; margin: .8rem 0 1rem; }
.pd-rating .stars { display: flex; gap: .1rem; }
.pd-rating .star { font-size: 1.4rem; line-height: 1; color: var(--sand); background: none; border: 0; padding: 0; cursor: pointer; transition: transform .15s var(--ease-out), color .15s; }
.pd-rating .star.is-filled { color: var(--gold); }
.pd-rating.is-rated .star { cursor: default; }
.pd-rating:not(.is-rated) .star:hover { transform: scale(1.2); }
.pd-rating-info { font-size: .8rem; color: var(--ink-mute); }
.pd-rating-info b { color: var(--ink); font-weight: 600; }
.pd-rating-info .sep { display: inline-block; margin: 0 .5em; color: var(--sand); }

.pd-lead { font-size: 1.06rem; color: var(--ink-soft); margin: 1rem 0 1.4rem; max-width: 48ch; }

/* atributos: chapas técnicas, no sellos artesanales */
.pd-attrs { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.8rem; }
.attr-badge {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .5rem .85rem .5rem .6rem;
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: var(--paper);
}
.attr-badge img { width: 20px; height: 20px; }
.attr-badge-circle { width: 26px; height: 26px; flex: none; border-radius: 5px; display: grid; place-content: center; background: var(--azul); }
.attr-badge-circle svg { width: 15px; height: 15px; color: #fff; }
.attr-badge-caption { font-family: var(--ff-mono); font-size: .68rem; line-height: 1.25; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-soft); }

.pd-desc { color: var(--ink-soft); margin-bottom: 1.4rem; }
.pd-uses { color: var(--ink-soft); margin-bottom: 1.6rem; }
.pd-uses b { font-family: var(--ff-display); font-weight: 700; color: var(--ink); }

.pd-spec { border-top: 2px solid var(--azul); margin-bottom: 1.6rem; }
.pd-spec .row { display: grid; grid-template-columns: 160px 1fr; gap: 1rem; padding: .8rem 0; border-bottom: 1px solid var(--line-2); font-size: .93rem; }
.pd-spec .row .k { color: var(--ink-mute); font-family: var(--ff-mono); font-size: .66rem; letter-spacing: .14em; text-transform: uppercase; padding-top: .18rem; }
.pd-spec .row .v { color: var(--ink); font-weight: 500; }
.pres-pills { display: inline-flex; flex-wrap: wrap; gap: .35rem; }
.pres-pills span { font-family: var(--ff-mono); font-size: .76rem; padding: .3em .65em; border-radius: 5px; background: var(--bg-2); border: 1px solid var(--line-2); }

.related { padding: clamp(3rem,7vw,5rem) var(--pad); }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease-out), transform .8s var(--ease-out); }
.reveal.is-revealed { opacity: 1; transform: none; }
.reveal[data-split] { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .07s; } .reveal.d2 { transition-delay: .14s; }
.reveal.d3 { transition-delay: .21s; } .reveal.d4 { transition-delay: .28s; }

/* ==========================================================================
   CARRITO / PEDIDO
   ========================================================================== */
.cart-btn { position: relative; width: 42px; height: 42px; border-radius: var(--radius-sm); border: 1.5px solid var(--nav-line, var(--line)); background: transparent; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; color: var(--nav-fg, var(--ink)); transition: all .22s var(--ease-out); flex: none; }
.cart-btn:hover { background: var(--gold); color: #2b1a00; border-color: var(--gold); }
.cart-btn svg { width: 19px; height: 19px; }
.cart-badge { position: absolute; top: -6px; right: -6px; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 999px; background: var(--gold); color: #2b1a00; font-family: var(--ff-mono); font-weight: 600; font-size: .68rem; line-height: 1; display: none; align-items: center; justify-content: center; }
.cart-badge.show { display: flex; }

.card-buy { display: flex; gap: .45rem; margin-top: .75rem; }
.card-size { flex: 1 1 auto; min-width: 0; padding: .55em .7em; border: 1.5px solid var(--line); border-radius: var(--radius-sm); background: var(--porcelana); color: var(--ink-soft); font-family: var(--ff-mono); font-size: .76rem; cursor: pointer; }
.btn-add { flex: none; display: inline-flex; align-items: center; gap: .35rem; padding: .55em .95em; border-radius: var(--radius-sm); border: 1.5px solid var(--azul); background: var(--azul); color: #fff; font-family: var(--ff-display); font-weight: 600; font-size: .82rem; cursor: pointer; transition: all .2s var(--ease-out); }
.btn-add:hover { background: var(--gold); border-color: var(--gold); color: #2b1a00; transform: translateY(-2px); }
.btn-add svg { width: 1.05em; height: 1.05em; }
.btn-add.added { background: #25d366; border-color: #25d366; color: #04310f; }

.pd-buy { margin-top: 1.3rem; padding: 1.4rem; border-radius: var(--radius); background: var(--bg-2); border: 1px solid var(--line-2); }
.pd-buy-row { display: flex; flex-wrap: wrap; gap: 1.6rem; margin-bottom: 1.2rem; }
.pd-field { display: flex; flex-direction: column; gap: .5rem; }
.pd-flabel { font-family: var(--ff-mono); font-size: .66rem; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-mute); }
.size-pills { display: flex; gap: .35rem; flex-wrap: wrap; }
.size-pill { padding: .45em .9em; border-radius: var(--radius-sm); border: 1.5px solid var(--line); background: var(--porcelana); font-family: var(--ff-mono); font-size: .78rem; cursor: pointer; transition: all .2s var(--ease-out); }
.size-pill:hover { border-color: var(--azul); }
.size-pill.active { background: var(--accent-2); border-color: var(--accent-2); color: #fff; }
.pd-buy-actions { display: flex; flex-wrap: wrap; gap: .6rem; }
.pd-buy-actions .btn { flex: 1 1 auto; min-width: 180px; justify-content: center; }
.pd-back { display: inline-flex; align-items: center; gap: .4rem; margin-top: 1rem; font-family: var(--ff-mono); font-size: .74rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-mute); }
.pd-back svg { width: 1.1em; height: 1.1em; }
.pd-back:hover { color: var(--azul); }

.stepper { display: inline-flex; align-items: center; border: 1.5px solid var(--line); border-radius: var(--radius-sm); background: var(--porcelana); }
.stepper button { width: 32px; height: 32px; border: 0; background: none; cursor: pointer; font-size: 1.1rem; line-height: 1; color: var(--ink); display: grid; place-content: center; }
.stepper button:hover { color: var(--gold-deep); }
.stepper .q { min-width: 26px; text-align: center; font-family: var(--ff-mono); font-weight: 600; font-size: .9rem; }

.cart-overlay { position: fixed; inset: 0; z-index: 150; background: rgba(4,29,56,.55); opacity: 0; pointer-events: none; transition: opacity .35s var(--ease-out); backdrop-filter: blur(2px); -webkit-backdrop-filter: blur(2px); }
.cart-overlay.open { opacity: 1; pointer-events: auto; }
.cart-drawer { position: fixed; top: 0; right: 0; bottom: 0; z-index: 151; width: min(430px, 92vw); background: var(--paper); display: flex; flex-direction: column; transform: translateX(105%); transition: transform .42s var(--ease); box-shadow: -30px 0 60px -30px rgba(0,0,0,.5); }
.cart-drawer.open { transform: translateX(0); }
.cart-head { display: flex; align-items: center; justify-content: space-between; padding: 1.3rem 1.4rem; border-bottom: 1px solid var(--line-2); }
.cart-head h3 { font-size: 1.3rem; }
.cart-head .count { font-family: var(--ff-mono); color: var(--ink-mute); font-size: .76rem; margin-top: .15rem; letter-spacing: .08em; text-transform: uppercase; }
.cart-close { background: none; border: 0; cursor: pointer; width: 38px; height: 38px; border-radius: var(--radius-sm); display: grid; place-content: center; color: var(--ink); }
.cart-close:hover { background: var(--bg-2); }
.cart-close svg { width: 19px; height: 19px; }
.cart-items { flex: 1; overflow-y: auto; overflow-x: hidden; padding: 1.1rem 1.4rem; display: flex; flex-direction: column; gap: 1.1rem; }
.cart-empty { text-align: center; color: var(--ink-mute); margin: auto; padding: 2rem 1rem; }
.cart-empty svg { width: 48px; height: 48px; color: var(--sand); margin: 0 auto 1rem; }
.cart-line { display: grid; grid-template-columns: 64px 1fr; gap: .9rem; align-items: start; }
.cart-line .thumb { width: 64px; height: 64px; border-radius: var(--radius-sm); overflow: hidden; background: var(--bg-2); }
.cart-line .thumb img { width: 100%; height: 100%; object-fit: cover; }
.cart-line .thumb.seal { display: grid; place-content: center; font-family: var(--ff-mono); font-weight: 600; font-size: .95rem; }
.cart-line h4 { font-family: var(--ff-display); font-weight: 700; font-size: .98rem; line-height: 1.18; }
.cl-size { margin-top: .35rem; }
.cl-size select { font-family: var(--ff-mono); font-size: .76rem; padding: .3em .5em; border: 1px solid var(--line); border-radius: 6px; background: var(--porcelana); color: var(--ink-soft); cursor: pointer; }
.cl-controls { display: flex; align-items: center; gap: .8rem; margin-top: .5rem; }
.cl-remove { background: none; border: 0; cursor: pointer; color: var(--ink-mute); font-size: .76rem; display: inline-flex; align-items: center; gap: .28rem; }
.cl-remove svg { width: 13px; height: 13px; }
.cl-remove:hover { color: #c0392b; }
.cart-foot { padding: 1.2rem 1.4rem; border-top: 1px solid var(--line-2); background: var(--bg-2); }
.cart-note { font-size: .8rem; color: var(--ink-mute); margin-bottom: .9rem; display: flex; gap: .5rem; align-items: flex-start; }
.cart-note svg { width: 15px; height: 15px; color: var(--green); flex: none; margin-top: .18rem; }
.cart-foot .btn { width: 100%; justify-content: center; }
.cart-clear { text-align: center; margin-top: .7rem; }
.cart-clear button { background: none; border: 0; color: var(--ink-mute); font-size: .78rem; cursor: pointer; text-decoration: underline; }
.cart-clear button:hover { color: #c0392b; }

/* banner de vista previa del borrador */
.preview-bar { position: fixed; left: 18px; bottom: 20px; z-index: 96; display: inline-flex; align-items: center; gap: .7rem; background: var(--azul-tinta); color: #fff; padding: .55rem .6rem .55rem 1rem; border-radius: var(--radius-sm); font-size: .8rem; box-shadow: 0 16px 34px -16px rgba(0,0,0,.6); border: 1px solid color-mix(in srgb, var(--gold) 45%, transparent); }
.preview-bar b { color: var(--gold); font-weight: 600; }
.preview-bar button { border: 0; background: var(--gold); color: #2b1a00; font-family: var(--ff-display); font-weight: 600; font-size: .78rem; padding: .4em .85em; border-radius: 6px; cursor: pointer; transition: background .2s, transform .2s; }
.preview-bar button:hover { transform: translateY(-1px); }
.preview-bar button:not(.pv-ghost):hover { background: #fff; }
.preview-bar .pv-ghost { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.4); }
.preview-bar .pv-ghost:hover { background: rgba(255,255,255,.14); }
@media (max-width: 560px) { .preview-bar { left: 12px; bottom: 84px; font-size: .74rem; } }

/* overlay del menú móvil */
.nav-overlay { position: fixed; inset: 0; z-index: 97; background: rgba(4,29,56,.5); opacity: 0; pointer-events: none; transition: opacity .35s var(--ease-out); backdrop-filter: blur(2px); -webkit-backdrop-filter: blur(2px); }
.nav-overlay.open { opacity: 1; pointer-events: auto; }
body.menu-open { overflow: hidden; }

/* botón flotante WhatsApp */
.wa-float { position: fixed; right: 20px; bottom: 20px; z-index: 95; width: 56px; height: 56px; border-radius: 50%; background: #25d366; color: #fff; display: grid; place-content: center; box-shadow: 0 14px 30px -8px rgba(37,211,102,.6); transition: transform .25s var(--ease-out), box-shadow .25s; }
.wa-float:hover { transform: translateY(-3px) scale(1.05); box-shadow: 0 18px 38px -8px rgba(37,211,102,.75); }
.wa-float svg { width: 28px; height: 28px; position: relative; z-index: 1; }
.wa-float::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid #25d366; animation: waPulse 2.6s var(--ease-out) infinite; pointer-events: none; }
@keyframes waPulse { 0% { transform: scale(1); opacity: .7; } 70%, 100% { transform: scale(1.55); opacity: 0; } }
/* se oculta mientras el pie esta en pantalla, para no tapar su icono "Subir" (ver wireWaFloatFooter en main.js) */
.wa-float-hide { opacity: 0; transform: translateY(8px) scale(.9); pointer-events: none; transition: opacity .25s var(--ease-out), transform .25s var(--ease-out); }
@media (max-width: 560px) { .wa-float { right: 16px; bottom: 16px; width: 52px; height: 52px; } .wa-float svg { width: 26px; height: 26px; } }

/* toast */
.toast { position: fixed; left: 50%; bottom: 26px; transform: translate(-50%, 20px); z-index: 160; background: var(--azul-tinta); color: #fff; padding: .78em 1.3em; border-radius: var(--radius-sm); font-family: var(--ff-display); font-weight: 600; font-size: .88rem; display: inline-flex; align-items: center; gap: .5rem; opacity: 0; pointer-events: none; transition: opacity .3s var(--ease-out), transform .3s var(--ease-out); box-shadow: 0 20px 40px -18px rgba(0,0,0,.55); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast svg { width: 1.15em; height: 1.15em; color: #4ade80; }

/* ---------- Barra superior de utilidades (Ingresar al sistema / Buscar comprobantes) ---------- */
.utilbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 101;
  height: var(--utilbar-h);
  background: var(--azul-tinta); color: rgba(255,255,255,.82);
  font-family: var(--ff-mono); font-size: .68rem; letter-spacing: .07em;
}
.utilbar-in {
  width: min(100% - 2rem, var(--wrap)); margin-inline: auto; height: 100%;
  display: flex; align-items: center; justify-content: flex-end; gap: 1.4rem;
}
.utilbar a { display: inline-flex; align-items: center; gap: .4rem; color: inherit; text-transform: uppercase; transition: color .2s; }
.utilbar a:hover { color: var(--gold-soft); }
.utilbar svg { width: 13px; height: 13px; }
@media (max-width: 560px) {
  :root { --utilbar-h: 42px; }
  .utilbar-in { gap: 1.4rem; }
  .utilbar .lbl { display: none; }
  .utilbar svg { width: 21px; height: 21px; }
  .utilbar a { padding: .5rem; margin: -.5rem; }
}
.nav { top: var(--utilbar-h); }
.hero { padding-top: calc(6.6rem + var(--utilbar-h)); }


/* ---------- Sello firma: "Aceptado por SUNAT" ---------- */
.hero-stamp {
  position: absolute; z-index: 2; right: -14px; top: -42px;
  width: 88px; height: 88px; border-radius: 50%;
  background: #fff;
  box-shadow: 0 16px 34px -14px rgba(0,0,0,.4);
  display: flex; align-items: center; justify-content: center;
  padding: .4rem;
  pointer-events: none;
  overflow: hidden;
}
.hero-stamp img { width: 100%; height: 100%; object-fit: contain; }
@media (max-width: 940px) { .hero-stamp { display: none; } }

/* ---------- Beneficios: variante de 3 columnas de .trustbar-row ---------- */
.trustbar-row.cols-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 940px) { .trustbar-row.cols-3 { grid-template-columns: 1fr; } .trustbar-row.cols-3 .trust { border-right: 0; border-bottom: 1px solid var(--line-2); } .trustbar-row.cols-3 .trust:last-child { border-bottom: 0; } }

/* ---------- Nuestros Planes ---------- */
.planes { padding: clamp(4rem, 9vw, 6.5rem) var(--pad); background: var(--paper); }
.planes-head { margin: 0 0 clamp(1.6rem,4vw,2.4rem); }
.planes-head h2 { font-size: clamp(2rem, 4.6vw, 3.2rem); margin-top: .7rem; }
.planes-head p { color: var(--ink-mute); margin-top: 1rem; font-size: 1.02rem; }

.ciclo-switch { display: flex; justify-content: center; margin-bottom: clamp(2rem, 5vw, 3rem); }
.ciclo-switch-in {
  display: inline-flex; background: var(--bg-2); border-radius: 999px; padding: 4px; gap: 4px;
  border: 1px solid var(--line);
}
.ciclo-btn {
  font-family: var(--ff-mono); font-size: .78rem; letter-spacing: .06em; text-transform: uppercase;
  padding: .6em 1.3em; border-radius: 999px; border: 0; background: transparent; color: var(--ink-soft); cursor: pointer;
  transition: background .22s var(--ease-out), color .22s;
}
.ciclo-btn.is-active { background: var(--azul); color: #fff; }
.ciclo-btn .save { display: inline-block; margin-left: .45em; font-size: .82em; color: var(--gold); }
.ciclo-btn.is-active .save { color: var(--gold-soft); }

.planes-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; align-items: stretch; width: min(100% - 2rem, var(--wrap)); margin-inline: auto; }
@media (max-width: 900px) { .planes-grid { grid-template-columns: 1fr; max-width: 420px; } }
.plan {
  position: relative; display: flex; flex-direction: column; gap: 1.1rem;
  background: var(--porcelana); border: 1.5px solid var(--line); border-radius: var(--radius);
  padding: clamp(1.6rem, 3vw, 2.1rem);
  transition: transform .3s var(--ease-out), box-shadow .3s, border-color .3s;
}
.plan:hover { transform: translateY(-5px); box-shadow: 0 30px 54px -34px rgba(10,39,35,.45); }
.plan.is-recomendado { border-color: var(--azul); box-shadow: 0 30px 54px -32px rgba(10,39,35,.35); }
.plan-badge {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: var(--gold); color: #2b1206; font-family: var(--ff-mono); font-weight: 600;
  font-size: .64rem; letter-spacing: .12em; text-transform: uppercase; padding: .38em .9em; border-radius: 999px;
  white-space: nowrap;
}
.plan-name { font-family: var(--ff-display); font-weight: 700; font-size: 1.28rem; }
.plan-desc { font-size: .86rem; color: var(--ink-mute); margin-top: -.6rem; }
.plan-price { display: flex; align-items: baseline; gap: .35rem; font-family: var(--ff-mono); }
.plan-price .cur { font-size: 1.1rem; font-weight: 600; color: var(--accent-2, var(--azul-hondo)); }
.plan-price .num { font-size: 2.5rem; font-weight: 600; letter-spacing: -0.02em; color: var(--ink); }
.plan-price .per { font-size: .82rem; color: var(--ink-mute); }
.plan-igv-note { font-size: .72rem; color: var(--ink-mute); margin-top: -.7rem; }
.plan-igv-note b { color: var(--ink-soft); font-weight: 600; }
.plan-annual-total { font-size: .76rem; color: var(--ink-mute); margin-top: -.5rem; }
.plan-features { display: flex; flex-direction: column; gap: .55rem; flex: 1; }
.plan-features li { display: flex; gap: .55rem; align-items: flex-start; font-size: .88rem; color: var(--ink-soft); list-style: none; }
.plan-features svg { width: 17px; height: 17px; flex: none; margin-top: .15rem; color: var(--azul); }
.plan .btn { justify-content: center; width: 100%; }
.planes-foot { text-align: center; margin-top: 2rem; color: var(--ink-mute); font-size: .86rem; }
.planes-foot a { color: var(--azul); font-weight: 600; }

/* precio anual/mensual: se alternan con [hidden], no con display */
[data-ciclo="anual"] { display: none; }
[data-price-mode="anual"] [data-ciclo="mensual"] { display: none; }
[data-price-mode="anual"] [data-ciclo="anual"] { display: block; }

/* ---------- Barra de confianza (estadísticas) ---------- */
.stats-bar { padding: clamp(2.4rem, 5vw, 3.4rem) var(--pad); background: var(--porcelana); border-bottom: 1px solid var(--line-2); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem; width: min(100% - 2rem, var(--wrap)); margin-inline: auto; text-align: center; }
.stat-item { display: flex; flex-direction: column; align-items: center; gap: .6rem; }
.stat-icon { width: 48px; height: 48px; border-radius: 12px; background: var(--bg-2); color: var(--azul); display: grid; place-content: center; }
.stat-icon svg { width: 22px; height: 22px; }
.stat-number { font-family: var(--ff-display); font-weight: 800; font-size: clamp(1.5rem, 3vw, 1.9rem); color: var(--ink); letter-spacing: -0.02em; }
.stat-label { font-size: .84rem; color: var(--ink-mute); }
@media (max-width: 780px) { .stats-grid { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Problema / agitación ---------- */
.problem-section { padding: clamp(3.4rem, 7vw, 5.4rem) var(--pad); background: var(--paper); }
.problem-list { list-style: none; max-width: 960px; margin: 2rem auto 0; display: grid; grid-template-columns: 1fr; gap: .8rem; }
.problem-list li { display: flex; align-items: flex-start; gap: .9rem; padding: 1rem 1.2rem; background: var(--porcelana); border-left: 4px solid #d9695a; border-radius: var(--radius-sm); box-shadow: var(--shadow-sm, 0 1px 3px rgba(0,0,0,.06)); font-size: .96rem; color: var(--ink-soft); }
@media (min-width: 720px) {
  .problem-list { grid-template-columns: repeat(2, 1fr); }
  .problem-list li:last-child:nth-child(odd) { grid-column: 1 / -1; max-width: calc(50% - .4rem); margin-inline: auto; }
}
.problem-list .pr-x { flex: none; width: 26px; height: 26px; border-radius: 50%; background: #fbe4e0; color: #b8402f; display: grid; place-content: center; font-size: .8rem; margin-top: .1rem; }
.problem-transition { text-align: center; margin-top: 2rem; font-size: 1.08rem; color: var(--azul); font-weight: 600; max-width: 640px; margin-inline: auto; }

/* ---------- Puente a la solución ---------- */
.solution-bridge { padding: clamp(3rem, 7vw, 5.5rem) var(--pad); background: var(--paper); overflow: hidden; }
.solution-grid { display: grid; grid-template-columns: 0.95fr 1.05fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; width: min(100% - 2rem, var(--wrap)); margin-inline: auto; }
.solution-copy h2 { margin-top: .6rem; }
.solution-copy > p { color: var(--ink-mute); margin-top: 1rem; line-height: 1.6; }
.solution-list { list-style: none; margin: 1.4rem 0; display: flex; flex-direction: column; gap: .7rem; }
.solution-list li { display: flex; align-items: center; gap: .6rem; font-size: .98rem; font-weight: 500; color: var(--ink-soft); }
.solution-list svg { width: 20px; height: 20px; color: var(--green); flex: none; }
.solution-copy .btn { margin-top: .6rem; }
.solution-visual { position: relative; }
.solution-visual::before {
  content: ""; position: absolute; inset: -8% -6%; z-index: 0;
  background: radial-gradient(60% 60% at 50% 45%, color-mix(in srgb, var(--azul) 20%, transparent), transparent 72%);
}
.solution-visual img { position: relative; z-index: 1; display: block; width: 100%; height: auto; border-radius: var(--radius); box-shadow: 0 30px 60px -20px rgba(10,39,35,.28); border: 1px solid var(--line); }
@media (max-width: 900px) {
  .solution-grid { grid-template-columns: 1fr; }
  .solution-visual { order: -1; }
}

/* ---------- Beneficios en detalle ---------- */
.benefits-rich { padding: clamp(3.4rem, 7vw, 5.4rem) var(--pad); background: var(--porcelana); }
.benefits-rich-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.2rem; width: min(100% - 2rem, var(--wrap)); margin-inline: auto; }
.benefit-rich-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.8rem; transition: transform .3s var(--ease-out), box-shadow .3s; }
.benefit-rich-card:hover { transform: translateY(-4px); box-shadow: 0 26px 46px -30px rgba(10,39,35,.35); }
.benefit-rich-icon { width: 48px; height: 48px; border-radius: 12px; background: var(--bg-2); color: var(--azul); display: grid; place-content: center; margin-bottom: 1rem; }
.benefit-rich-icon svg { width: 22px; height: 22px; }
.benefit-rich-card h3 { font-family: var(--ff-display); font-size: 1.15rem; font-weight: 700; margin-bottom: .6rem; line-height: 1.3; }
.benefit-rich-card p { font-size: .92rem; color: var(--ink-mute); }
@media (max-width: 780px) { .benefits-rich-grid { grid-template-columns: 1fr; } }

/* ---------- App móvil ---------- */
.app-block-section { padding: clamp(3.4rem, 7vw, 5.4rem) var(--pad); background: var(--paper); }
.app-block { background: linear-gradient(135deg, var(--azul-hondo) 0%, var(--azul-tinta) 100%); border-radius: var(--radius-xl, 24px); padding: clamp(2.2rem, 5vw, 3.6rem); color: #fff; width: min(100% - 2rem, var(--wrap)); margin-inline: auto; display: grid; grid-template-columns: 1.2fr .8fr; gap: 2.4rem; align-items: center; position: relative; overflow: hidden; }
.app-block::before { content: ""; position: absolute; top: -120px; right: -100px; width: 360px; height: 360px; border-radius: 50%; background: rgba(255,255,255,.05); pointer-events: none; }
.app-block h3 { font-size: clamp(1.5rem, 3vw, 2rem); margin-bottom: 1rem; position: relative; }
.app-block p { color: rgba(255,255,255,.78); font-size: .98rem; margin-bottom: .9rem; position: relative; max-width: 52ch; }
.app-block-icon { width: 108px; height: 108px; border-radius: 26px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.15); display: grid; place-content: center; margin-inline: auto; position: relative; }
.app-block-icon svg { width: 48px; height: 48px; color: #fff; }
@media (max-width: 780px) { .app-block { grid-template-columns: 1fr; text-align: center; } .app-block p { margin-inline: auto; } }

/* ---------- Rubros que atendemos ---------- */
.rubros { padding: clamp(3.4rem, 7vw, 5.4rem) var(--pad); background: var(--paper); }
.rubro-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; width: min(100% - 2rem, var(--wrap)); margin-inline: auto; }
.rubro-card { background: var(--porcelana); border: 1.5px solid var(--line); border-radius: var(--radius); padding: 1.6rem 1.4rem; text-align: center; transition: transform .3s var(--ease-out), box-shadow .3s, border-color .3s; }
.rubro-card:hover { transform: translateY(-4px); box-shadow: 0 26px 46px -30px rgba(10,39,35,.35); border-color: var(--azul); }
.rubro-icon { width: 52px; height: 52px; border-radius: 14px; background: var(--bg-2); color: var(--azul); display: grid; place-content: center; margin: 0 auto .9rem; transition: background .25s, color .25s; }
.rubro-icon svg { width: 24px; height: 24px; }
.rubro-card:hover .rubro-icon { background: var(--azul); color: #fff; }
.rubro-card h4 { font-family: var(--ff-display); font-weight: 700; font-size: 1rem; margin-bottom: .4rem; }
.rubro-card p { font-size: .85rem; color: var(--ink-mute); }
@media (max-width: 780px) { .rubro-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .rubro-grid { grid-template-columns: 1fr; } }

/* ---------- Funcionalidades: agrupadas por módulo, en tarjetas ---------- */
.feat-controls { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 1.4rem; margin-bottom: 2.6rem; }
.feat-list { width: min(100% - 2rem, var(--wrap)); margin: 0 auto; display: flex; flex-direction: column; gap: 2.8rem; }

.feat-group-head { display: flex; align-items: flex-start; gap: .9rem; margin-bottom: 1.2rem; padding-bottom: 1rem; border-bottom: 1.5px solid var(--line); }
.feat-group-icon { flex: none; width: 42px; height: 42px; border-radius: 10px; display: grid; place-content: center; background: var(--azul); color: #fff; }
.feat-group-icon svg { width: 21px; height: 21px; }
.feat-group-head h3 { font-family: var(--ff-display); font-size: 1.1rem; font-weight: 700; }
.feat-group-head p { color: var(--ink-mute); font-size: .88rem; margin-top: .25rem; }

.feat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1rem; }
.feat-card {
  border: 1.5px solid var(--line); border-radius: var(--radius-sm); background: var(--paper);
  padding: 1.2rem 1.3rem 1.3rem; display: flex; flex-direction: column; gap: .55rem;
}
.feat-card.is-pop { border-color: var(--gold); }
.feat-card-top { display: flex; align-items: center; justify-content: space-between; gap: .6rem; }
.feat-card-icon { flex: none; width: 38px; height: 38px; border-radius: 10px; display: grid; place-content: center; background: var(--bg-2); color: var(--azul); }
.feat-card-icon svg { width: 19px; height: 19px; }
.feat-card h3 { font-size: 1rem; font-family: var(--ff-display); font-weight: 600; }
.feat-card p { color: var(--ink-mute); font-size: .89rem; }
.feat-pop { flex: none; font-family: var(--ff-mono); font-size: .6rem; letter-spacing: .1em; text-transform: uppercase; color: var(--gold-deep); background: var(--gold-soft); padding: .3em .7em; border-radius: 999px; }
.feat-tags { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: auto; padding-top: .3rem; }
.feat-tag { font-family: var(--ff-mono); font-size: .68rem; letter-spacing: .04em; padding: .35em .7em; border-radius: 999px; background: var(--bg-2); color: var(--ink-soft); }
.feat-empty { text-align: center; color: var(--ink-mute); padding: 2.4rem 1rem; }

/* ---------- Preguntas frecuentes ---------- */
.faq { padding: clamp(3.4rem, 7vw, 5.5rem) var(--pad); }
.faq-list { width: min(100% - 2rem, var(--wrap)); margin: 0 auto; max-width: 840px; display: flex; flex-direction: column; gap: .7rem; }
.faq-item { border: 1.5px solid var(--line); border-radius: var(--radius-sm); background: var(--paper); overflow: hidden; }
.faq-item summary {
  cursor: pointer; list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.1rem 1.3rem; font-family: var(--ff-display); font-weight: 600; font-size: 1rem; color: var(--ink);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-size: 1.3rem; color: var(--azul); flex: none; transition: transform .25s var(--ease-out); }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { padding: 0 1.3rem 1.2rem; color: var(--ink-mute); font-size: .92rem; max-width: 68ch; }

/* ---------- Responsive ---------- */
@media (max-width: 1040px) {
  .rooms-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 940px) {
  .nav-links { position: fixed; inset: 0 0 0 auto; width: min(87vw, 390px); height: 100vh; height: 100dvh; flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 0; background: var(--paper); padding: 5.4rem 1.9rem 2rem; transform: translateX(105%); transition: transform .42s var(--ease); box-shadow: -26px 0 66px -30px rgba(0,0,0,.55); overflow-y: auto; }
  body.menu-open .nav-links { transform: translateX(0); }
  .nav-links a.link { display: flex; align-items: center; justify-content: space-between; width: 100%; font-family: var(--ff-display); font-weight: 700; font-size: 1.4rem; color: var(--ink); padding: 1rem .1rem; border-bottom: 1px solid var(--line-2); }
  .nav-links a.link:first-of-type { border-top: 1px solid var(--line-2); }
  .nav-links a.link::after { content: "→"; position: static; width: auto; height: auto; background: none; margin-left: auto; font-size: 1rem; font-weight: 400; color: var(--gold-deep); opacity: .55; transition: transform .2s var(--ease-out), opacity .2s; }
  .nav-links a.link:hover::after, .nav-links a.link:active::after { transform: translateX(5px); opacity: 1; }
  .nav-links a.nav-cta { width: 100%; justify-content: center; margin-top: 1.2rem; padding: .95em 1.4em; font-size: 1rem; }

  body.menu-open .cart-btn { opacity: 0; visibility: hidden; pointer-events: none; }

  .menu-extra { display: block; }
  .menu-eyebrow { font-family: var(--ff-mono); font-size: .66rem; letter-spacing: .24em; text-transform: uppercase; color: var(--ink-mute); margin-bottom: 1.1rem; display: flex; align-items: center; gap: .6rem; }
  .menu-eyebrow::before { content: ""; width: 22px; height: 1px; background: var(--gold); }
  .menu-foot { margin-top: 1.8rem; }
  .menu-foot .btn { width: 100%; justify-content: center; font-size: 1rem; padding: .95em 1.4em; }
  .menu-contact { margin-top: 1.5rem; display: flex; flex-direction: column; gap: .5rem; font-size: .9rem; color: var(--ink-mute); }
  .menu-contact a { color: var(--ink-soft); font-weight: 500; }
  .menu-contact a:hover { color: var(--azul); }
  .menu-social { display: flex; gap: .5rem; margin-top: .8rem; }
  .menu-social a { width: 40px; height: 40px; border-radius: var(--radius-sm); border: 1px solid var(--line); display: grid; place-content: center; color: var(--ink-soft); transition: all .22s var(--ease-out); }
  .menu-social a svg { width: 17px; height: 17px; }
  .menu-social a:hover { background: var(--azul); color: #fff; border-color: var(--azul); transform: translateY(-2px); }

  .nav-burger { display: inline-flex; z-index: 101; }
  .nav .nav-cta.desktop { display: none; }

  .hero { padding-top: 7rem; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-copy { max-width: none; }
  .scroll-cue { display: none; }

  .historia-grid { grid-template-columns: 1fr; }
  .historia-figure { max-width: 440px; }
  .contacto-card { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .trustbar-row { grid-template-columns: repeat(2,1fr); }
  .trust:nth-child(2) { border-right: 0; }
  .trust:nth-child(-n+2) { border-bottom: 1px solid var(--line-2); }
  .cotiza-grid { grid-template-columns: 1fr; }
  .pd-grid { grid-template-columns: 1fr; }
  .pd-gallery { position: static; }
}
@media (max-width: 620px) {
  /* en pantalla chica el texto del plano quedaria ilegible (5 px reales):
     se retiran las anotaciones y queda el dibujo limpio */

  .rooms-grid { grid-template-columns: 1fr; }
  .pillars { grid-template-columns: 1fr; gap: 1rem; }
  .trustbar-row { grid-template-columns: 1fr; }
  .trust { border-right: 0; border-bottom: 1px solid var(--line-2); padding: 1.15rem 0; }
  .trust:last-child { border-bottom: 0; }
  .footer-grid { grid-template-columns: 1fr; }
  .cat-top { align-items: flex-start; }
  .pd-spec .row { grid-template-columns: 1fr; gap: .2rem; }
}

/* ---------- Motion gating ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .marquee-track, .splash-bar::after, .scroll-cue .ln, .wa-float::after { animation: none; }
}

/* ==========================================================================
   RUWAY — capa de marca
   Dirección: la etiqueta colgante del BrandBook (rojo mate, ojal, isotipo en sombra)
   es la firma; el resto calla. Fondo de tela cruda, titulares en serif condensada,
   códigos de pieza en mono como en una etiqueta. Hilos de urdimbre (awasqa) solo
   en la portada.
   ========================================================================== */
body { font-weight: 400; letter-spacing: .002em; }
h1, h2, h3 { font-family: var(--ff-display); font-weight: 400; font-variation-settings: normal; letter-spacing: -0.012em; line-height: .98; }
.script { font-family: var(--ff-display); font-style: italic; font-weight: 400; font-variation-settings: normal; letter-spacing: -0.01em; color: var(--azul); line-height: .95; }
.kicker { color: var(--azul); font-weight: 400; letter-spacing: .2em; }
.section-head h2 { font-size: clamp(2.3rem, 5vw, 3.6rem); }
.section-head p { max-width: 58ch; }

/* botones: DM Sans, esquinas apenas suavizadas como una etiqueta cortada */
.btn { font-family: var(--ff-body); font-weight: 500; letter-spacing: .01em; border-radius: var(--radius-sm); }
.btn-gold { --bg-btn: var(--gold); --fg-btn: #1a1a1a; }
.btn-gold:hover { box-shadow: 0 14px 30px -14px rgba(231,174,35,.7); }
.btn-ghost:hover { background: var(--ink); color: var(--porcelana); border-color: var(--ink); }
:where(a, button, input, select, textarea):focus-visible { outline-color: var(--gold); }

/* la cuenta de cliente (login con Google) no se usa en Ruway */
.utilbar { display: none; }
:root { --utilbar-h: 0px; }

/* ---------- splash ---------- */
.splash { background: #1a1a1a; }
.splash-iso { display: block; width: 46px; height: 59px; margin: 0 auto 1rem; background: var(--bg-2); -webkit-mask: url("assets/img/ruway-isotipo.png") center / contain no-repeat; mask: url("assets/img/ruway-isotipo.png") center / contain no-repeat; }
.splash-mark .m { font-family: var(--ff-display); font-weight: 400; font-variation-settings: normal; font-size: clamp(2.6rem, 8vw, 3.8rem); color: var(--bg-2); letter-spacing: -.01em; }
.splash-mark .s { color: var(--gold); letter-spacing: .38em; font-size: .66rem; }

/* ---------- nav: siempre sobre negro, el logo marfil no cambia ---------- */
.nav, .nav.is-solid { --nav-fg: #efe8de; --nav-fg-mute: rgba(239,232,222,.72); --nav-line: rgba(239,232,222,.22); }
.nav.is-solid { background: rgba(26,26,26,.94); box-shadow: 0 1px 0 rgba(239,232,222,.08); }
.brand-logo-img { height: 42px; max-width: 170px; }
.nav.is-solid .brand-logo-img { height: 36px; }
.nav-links a.link { font-size: .9rem; letter-spacing: .02em; }

/* ==========================================================================
   PORTADA
   ========================================================================== */
.hero { background: #1a1a1a; color: var(--bg); min-height: min(100svh, 860px); padding-top: 7rem; }
.hero::before { display: none; }
/* urdimbre: hilos verticales en la paleta del Colca, del lado de la etiqueta */
.hero-warp {
  position: absolute; inset: 0 0 0 46%; pointer-events: none;
  background: repeating-linear-gradient(90deg,
    rgba(119,26,21,.55) 0 2px, transparent 2px 13px,
    rgba(231,174,35,.30) 13px 14px, transparent 14px 25px,
    rgba(106,89,43,.55) 25px 27px, transparent 27px 38px,
    rgba(226,216,204,.16) 38px 39px, transparent 39px 52px);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 38%, #000 100%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 38%, #000 100%);
  transform-origin: top; animation: warpIn 1.4s var(--ease-out) .35s both;
  opacity: .9;
}
@keyframes warpIn { from { transform: scaleY(0); } to { transform: scaleY(1); } }
.hero-grid { grid-template-columns: 1fr; }
@media (min-width: 941px) { .hero-grid, .hero-grid:has(.hero-inset img[src]) { grid-template-columns: 1.08fr .92fr; } }
.hero .kicker { color: var(--gold); }
.hero-title { font-size: clamp(3rem, 7.4vw, 6.1rem); max-width: 11ch; color: var(--bg); margin: 1.1rem 0 .6rem; line-height: .92; }
.hero-title .lg { font-weight: 400; font-variation-settings: normal; }
.hero-title .script { color: var(--gold); font-size: 1.08em; margin: 0; }
.hero-sub { color: rgba(239,232,222,.74); font-weight: 300; font-size: 1.08rem; max-width: 44ch; }
.hero-actions { margin-top: 1.8rem; gap: .75rem; }
.hero .btn-ghost { --fg-btn: var(--bg); border-color: rgba(239,232,222,.34); }
.hero .btn-ghost:hover { background: var(--bg); color: #1a1a1a; border-color: var(--bg); }
.hero-slogan { color: rgba(239,232,222,.5); letter-spacing: .32em; font-size: .66rem; margin-top: 2.2rem; }
.hero-slogan::before { content: ""; width: 34px; height: 1px; background: var(--gold); }

/* la etiqueta colgante (firma del sitio) */
.hero-art { position: relative; min-height: 540px; display: grid; place-items: center; margin: 0; }
.hero-photo { display: none; }
.hero-photo:has(img[src]) { display: block; position: absolute; inset: 2% 0 6% 16%; border-radius: var(--radius); overflow: hidden; box-shadow: 0 40px 80px -40px rgba(0,0,0,.8); }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }
.tag-wrap { position: relative; width: min(290px, 68vw); padding-top: 118px; transform-origin: 50% 128px; animation: tagSwing 2.6s var(--ease-out) .9s both; }
.hero-art:has(.hero-photo img[src]) .tag-wrap { justify-self: start; width: min(220px, 52vw); }
@keyframes tagSwing {
  0%   { transform: rotate(-14deg) translateY(-24px); opacity: 0; }
  18%  { opacity: 1; }
  38%  { transform: rotate(7deg); }
  58%  { transform: rotate(-3.5deg); }
  78%  { transform: rotate(1.4deg); }
  100% { transform: rotate(0deg); }
}
.tag-cord { position: absolute; top: 0; left: 50%; width: 120px; height: 150px; transform: translateX(-50%); z-index: 3; overflow: visible; }
.tag {
  position: relative; aspect-ratio: 290 / 450; background-color: #771a15;
  background-image:
    radial-gradient(120% 80% at 20% 10%, rgba(255,255,255,.07), transparent 60%),
    repeating-linear-gradient(0deg, rgba(0,0,0,.05) 0 1px, transparent 1px 3px),
    repeating-linear-gradient(90deg, rgba(255,255,255,.025) 0 1px, transparent 1px 4px);
  clip-path: polygon(17% 0, 83% 0, 100% 11%, 100% 100%, 0 100%, 0 11%);
  overflow: hidden;
}
.tag-wrap::after { content: ""; position: absolute; left: 8%; right: 8%; bottom: -26px; height: 40px; background: radial-gradient(closest-side, rgba(0,0,0,.6), transparent); z-index: -1; }
.tag-hole { position: absolute; top: 5.4%; left: 50%; width: 30px; height: 30px; transform: translateX(-50%); border-radius: 50%; z-index: 2;
  background: radial-gradient(circle, #1a1a1a 0 7px, #9aa0a2 7.5px 10px, #d9dcdc 10.5px 12px, #6f7476 12.5px 15px); box-shadow: 0 2px 3px rgba(0,0,0,.4); }
.tag-iso { position: absolute; left: 6%; right: -22%; top: 9%; bottom: 14%; background: #1a1a1a; opacity: .55;
  -webkit-mask: url("assets/img/ruway-isotipo.png") center / contain no-repeat; mask: url("assets/img/ruway-isotipo.png") center / contain no-repeat; }
.tag-label { position: absolute; left: 13%; width: 49%; top: 41%; background: #e2d8cc; color: #1a1a1a; padding: .75rem .7rem .7rem; display: flex; flex-direction: column; gap: .15rem;
  border-radius: 0 0 14px 14px; box-shadow: inset 0 0 0 1px rgba(26,26,26,.06); }
.tl-k { font-family: var(--ff-mono); font-size: .52rem; letter-spacing: .24em; text-transform: uppercase; color: #6e655b; }
.tl-big { font-family: var(--ff-display); font-size: clamp(1.35rem, 4.2vw, 1.7rem); line-height: 1; letter-spacing: .01em; }
.tl-rows { display: flex; flex-direction: column; gap: .12rem; margin-top: .45rem; padding-top: .45rem; border-top: 1px solid rgba(26,26,26,.18); }
.tl-rows span { font-family: var(--ff-mono); font-size: .5rem; letter-spacing: .08em; text-transform: uppercase; color: #3b3632; }
.tag-logo { position: absolute; left: 50%; bottom: 5.5%; width: 62%; height: auto; transform: translateX(-50%); opacity: .82; }
@media (max-width: 940px) {
  .hero { min-height: 0; }
  .hero-warp { inset: 50% 0 0 0; -webkit-mask-image: linear-gradient(#000, transparent); mask-image: linear-gradient(#000 0%, transparent 100%); }
  .hero-art { min-height: 0; padding: .5rem 0 1.5rem; }
}

/* ---------- cinta ---------- */
.marquee { background: var(--gold); color: #1a1a1a; }
.marquee-track span { font-size: .74rem; letter-spacing: .24em; }
.marquee-track .dot { width: 6px; height: 6px; border-radius: 0; transform: rotate(45deg); background: #771a15; }

/* ---------- la colección (accesos por línea) ---------- */
.rooms { background: var(--bg); padding-bottom: clamp(1rem, 3vw, 2rem); }
.rooms-head h2 { font-size: clamp(2.2rem, 4.6vw, 3.3rem); }
.room { background: var(--paper); border: 1px solid var(--line-2); border-radius: var(--radius); min-height: 210px; }
.room svg { width: 40px; height: 40px; color: var(--azul); }
.room .rn { font-family: var(--ff-display); font-weight: 400; font-size: 2rem; line-height: 1; }
.room .rk { color: var(--azul); }
.room:hover { background: #771a15; border-color: #771a15; color: var(--bg); box-shadow: 0 24px 44px -26px rgba(78,16,13,.7); }
.room:hover svg { color: var(--gold); }
.room:hover .rd { color: rgba(239,232,222,.75); }
.room:hover .rk { color: var(--gold-soft); }
@media (max-width: 940px) { .rooms-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 420px) { .room { min-height: 170px; } .room .rn { font-size: 1.6rem; } }

/* ---------- catálogo: tarjetas con ojal de etiqueta ---------- */
.destacados, .catalogo { background: var(--bg); }
.catalogo { padding-top: clamp(2.6rem, 6vw, 4.5rem); }
.card { background: var(--porcelana); border-radius: var(--radius); border-color: var(--line-2); }
.card:hover { box-shadow: 0 30px 50px -32px rgba(78,16,13,.5); }
.card-line { height: 3px; }
.card-media { background: var(--photo-bg, #e2d8cc); }
.card-media::after { content: ""; position: absolute; top: 14px; right: 14px; width: 14px; height: 14px; border-radius: 50%; z-index: 4;
  background: radial-gradient(circle, #efe8de 0 3px, #a9aeb0 3.5px 5px, #e3e5e5 5.5px 6px, #7c8183 6.5px 7px); opacity: .9; }
.card:has(.card-fav) .card-media::after { display: none; }
.card-fav { background: #771a15; color: #efe8de; border-radius: 2px; font-weight: 400; letter-spacing: .16em; }
.card-kicker { color: var(--olive); letter-spacing: .14em; }
.card h3 { font-size: 1.55rem; font-variation-settings: normal; line-height: 1.02; }
.card-desc { font-weight: 300; color: var(--ink-soft); }
.card-seal {
  background:
    repeating-linear-gradient(90deg, color-mix(in srgb, var(--accent) 9%, transparent) 0 1px, transparent 1px 7px),
    repeating-linear-gradient(0deg, rgba(26,26,26,.035) 0 1px, transparent 1px 7px),
    linear-gradient(170deg, #ece4d8, #e2d8cc);
  gap: .35rem;
}
.card-seal .cs-mark { width: 62px; height: 62px; color: var(--accent); opacity: 1; }
.card-seal .cs-name { font-family: var(--ff-display); font-size: 1.55rem; letter-spacing: 0; text-transform: none; color: var(--accent-2); line-height: 1; margin-top: .3rem; max-width: 12ch; }
.card-seal .cs-sub { color: #8a7f72; letter-spacing: .26em; }
.btn-add { font-family: var(--ff-body); font-weight: 500; background: #1a1a1a; border-color: #1a1a1a; color: var(--bg); }
.btn-add:hover { background: var(--gold); border-color: var(--gold); color: #1a1a1a; }
.card-size { font-family: var(--ff-body); }
.filter { font-family: var(--ff-body); border-radius: 999px; }
.filter:hover { border-color: var(--azul); color: var(--azul); }
.filter.is-active { background: #1a1a1a; border-color: #1a1a1a; color: var(--bg); }
.search input { border-radius: 999px; background: var(--porcelana); }
.search input:focus { border-color: var(--azul); box-shadow: 0 0 0 3px rgba(119,26,21,.14); }

/* ---------- cotizador: el bloque rojo ---------- */
.cotiza { background: #771a15; color: var(--bg); }
.cotiza h2 { color: var(--bg); font-size: clamp(2.1rem, 4.6vw, 3.2rem); }
.cotiza p { color: rgba(239,232,222,.78); font-weight: 300; }
.cotiza-panel { background: var(--porcelana); border-radius: var(--radius); box-shadow: 0 34px 60px -34px rgba(0,0,0,.6); }
.cotiza-panel textarea:focus { border-color: var(--azul); box-shadow: 0 0 0 3px rgba(119,26,21,.14); }
.cotiza .btn-wa { --bg-btn: var(--gold); --fg-btn: #1a1a1a; }

/* ---------- nosotras: bloque oscuro, como las láminas «Concepto» ---------- */
.historia { background: #1a1a1a; color: var(--bg); overflow: hidden; }
.historia::after { content: ""; position: absolute; right: -4%; bottom: -8%; width: min(420px, 50vw); aspect-ratio: 630/805; background: #771a15; opacity: .35; pointer-events: none;
  -webkit-mask: url("assets/img/ruway-isotipo.png") center / contain no-repeat; mask: url("assets/img/ruway-isotipo.png") center / contain no-repeat; }
.historia-grid { position: relative; z-index: 1; }
.historia-copy { max-width: 760px; }
.historia .kicker { color: var(--gold); }
.historia h2 { color: var(--bg); font-size: clamp(2.4rem, 5.4vw, 4rem); }
.historia h2 .script { color: var(--gold); }
.historia p { color: rgba(239,232,222,.74); font-weight: 300; font-size: 1.04rem; max-width: 60ch; }
.historia-figure img { border-radius: var(--radius); }
.historia-figure .tagchip { background: #771a15; color: var(--bg); }
.pillars { gap: 1.8rem; margin-top: 2.8rem; }
.pillar { border-top: 1px solid rgba(239,232,222,.22); padding-top: 1.1rem; }
.pillar .n { display: none; }
.pillar h4 { font-family: var(--ff-display); font-weight: 400; font-style: italic; font-size: 1.6rem; color: var(--bg); line-height: 1.05; margin-bottom: .45rem; }
.pillar p { color: rgba(239,232,222,.62); font-size: .9rem; }
@media (max-width: 760px) { .pillars { grid-template-columns: 1fr; } }

/* ---------- cifras ---------- */
.stats-bar { background: var(--bg-2); }
.stats-bar .stat-number { font-family: var(--ff-display); font-weight: 400; color: #771a15; font-size: clamp(2.4rem, 5vw, 3.4rem); line-height: 1; }
.stats-bar .stat-label { color: var(--ink-soft); }
.stats-bar .stat-icon { color: var(--olive); }

/* ---------- confianza ---------- */
.trustbar { background: var(--paper); }
.trust svg { color: var(--azul); }
.trust h4 { font-family: var(--ff-display); font-weight: 400; font-size: 1.35rem; }

/* ---------- respaldo: oliva (Business Gold) ---------- */
.awards { background: var(--olive); }
.awards .kicker { color: var(--gold); }
.award { background: rgba(26,26,26,.18); border-color: rgba(239,232,222,.14); border-radius: var(--radius); }
.award:hover { background: rgba(26,26,26,.3); }
.award .cat { font-family: var(--ff-display); font-weight: 400; font-size: 1.5rem; color: var(--bg); line-height: 1.05; }
.award .ev { color: rgba(239,232,222,.75); }
.award .tp { color: rgba(239,232,222,.55); }
.medal.oro { color: var(--gold); }
.medal.plata { color: var(--bg-2); }

/* ---------- preguntas ---------- */
.faq { background: var(--bg); }
@media (min-width: 941px) {
  .faq-wrap { display: grid; grid-template-columns: .8fr 1.2fr; gap: 3rem; align-items: start; }
  .faq-wrap .section-head { position: sticky; top: 6rem; margin-inline: 0 !important; }
}

/* ---------- contacto: tarjeta roja ---------- */
.contacto { background: var(--bg); }
.contacto-card { background: #771a15; border-radius: var(--radius); }
.contacto-card::before { background: repeating-linear-gradient(90deg, rgba(0,0,0,.09) 0 1px, transparent 1px 9px); opacity: 1; }
.contacto-card .kicker { color: var(--gold); }
.contacto-card h2 { color: var(--bg); }
.contacto-card h2 .script { color: var(--gold); }
.contacto-card p { color: rgba(239,232,222,.8); font-weight: 300; }
.contacto-card .btn-ghost { --fg-btn: var(--bg); border-color: rgba(239,232,222,.4); }
.contacto-card .btn-ghost:hover { background: var(--bg); color: #771a15; border-color: var(--bg); }
.contact-item svg { color: var(--gold); }
.contact-item .lbl { color: rgba(239,232,222,.6); }
.contact-item .val { color: var(--bg); }

/* ---------- pie ---------- */
.footer { background: #1a1a1a; }
.footer .brand-logo-img { height: 46px; max-width: 190px; }
.footer-links a:hover { color: var(--gold); }
.socials a:hover { background: var(--gold); color: #1a1a1a; border-color: var(--gold); }

/* ---------- ficha de producto ---------- */
.pd { background: var(--bg); }
.pd-main { background: var(--photo-bg, #e2d8cc); border-radius: var(--radius); }
.pd-script { font-family: var(--ff-mono); font-style: normal; font-size: .8rem; letter-spacing: .26em; color: var(--azul); }
.pd-info h1 { font-size: clamp(2.3rem, 5vw, 3.6rem); line-height: .98; }
.pd-lead { font-weight: 300; }
.attr-badge-circle { background: #771a15; border-radius: 50%; }
.pd-spec { border-top-color: #1a1a1a; }
.pd-uses b { font-family: var(--ff-body); font-weight: 600; }
.pd-buy { background: var(--bg-2); border-radius: var(--radius); }
.size-pill { font-family: var(--ff-body); }
.pd-rating .star.is-filled { color: var(--gold-deep); }
.related { background: var(--bg); }

@media (prefers-reduced-motion: reduce) {
  .hero-warp, .tag-wrap { animation: none; }
}

.card-seal .cs-name.is-code { font-size: 2.1rem; }
.awards-grid { justify-content: flex-start; }
/* páginas internas (ficha, legales): el menú va siempre sólido sobre negro */
body:not(.is-home) .nav { background: rgba(26,26,26,.96); }
@media (max-width: 940px) { body:not(.menu-open) .nav-links { box-shadow: none; } }

/* ---------- misión, visión y valores (brief de marca) ---------- */
.esencia { background: var(--bg-2); padding: clamp(3.4rem, 7vw, 5.4rem) var(--pad); }
.esencia-title { font-size: clamp(2.2rem, 4.8vw, 3.4rem); margin-bottom: clamp(1.6rem, 3vw, 2.4rem); }
.esencia-grid { display: grid; grid-template-columns: 1fr 1fr 1.1fr; gap: clamp(1.2rem, 3vw, 2.6rem); }
.esencia-item { border-top: 2px solid #771a15; padding-top: 1.1rem; }
.esencia-item p { margin-top: .8rem; color: var(--ink-soft); font-weight: 300; font-size: 1.02rem; line-height: 1.65; }
.esencia-valores p { font-family: var(--ff-display); font-style: italic; font-weight: 400; font-size: 1.45rem; line-height: 1.35; color: #4e100d; }
@media (max-width: 860px) { .esencia-grid { grid-template-columns: 1fr; } }
.esencia { background: var(--paper); }

@media (min-width: 941px) { .rooms-grid { grid-template-columns: repeat(3, 1fr); } }

/* botón del carrito en el menú (el perfil de catálogo no lo traía) */
.nav-links { margin-left: auto; }
.nav .cart-btn { margin-left: .9rem; }
.nav .cart-badge { background: var(--gold); color: #1a1a1a; }
@media (max-width: 940px) { .nav .cart-btn { margin-left: auto; margin-right: .5rem; } }

/* Iniciar sesión (cuenta de cliente) en el lugar del botón del menú */
.nav-acc .acc-link, .nav-acc .acc > summary { display: inline-flex; align-items: center; gap: .5rem; padding: .55em 1.05em; border-radius: var(--radius-sm); background: var(--gold); color: #1a1a1a; font-family: var(--ff-body); font-weight: 500; font-size: .88rem; letter-spacing: .01em; text-transform: none; border: 0; cursor: pointer; }
.nav-acc .acc-link:hover, .nav-acc .acc > summary:hover { background: #f0bf3f; }
.nav-acc .acc-ico { width: 15px; height: 15px; }
.nav-acc .acc-avatar { background: #771a15; color: #efe8de; }
.nav-acc .acc-menu a:hover, .nav-acc .acc-menu button:hover { background: #efe8de; color: #771a15; }
.nav-acc .acc { position: relative; }

/* ---------- menú al estilo «controles con contorno» (pedido del cliente, ref. Olibella) ---------- */
@media (min-width: 941px) {
  .nav-links { margin-left: 2.6rem; flex: 1; gap: 1.5rem; }
  .nav-pill { margin-left: auto; }
}
.nav-pill { display: inline-flex; align-items: center; gap: .4rem; padding: .5em 1em; border: 1px solid rgba(239,232,222,.28); border-radius: 999px; font-size: .8rem; color: rgba(239,232,222,.82); white-space: nowrap; }
.nav-pill b { color: #efe8de; font-weight: 600; }
.nav-pill svg { width: 14px; height: 14px; color: var(--gold); }
@media (max-width: 1180px) { .nav-pill { display: none; } }
.nav-acc .acc-link, .nav-acc .acc > summary {
  background: transparent; color: #efe8de; border: 1px solid rgba(239,232,222,.38); border-radius: 999px;
  font-family: var(--ff-mono); font-weight: 400; font-size: .68rem; letter-spacing: .16em; text-transform: uppercase; padding: .78em 1.25em;
}
.nav-acc .acc-link:hover, .nav-acc .acc > summary:hover { background: transparent; border-color: var(--gold); color: var(--gold); }
.nav-acc .acc-ico { display: none; }
.nav .cart-btn { width: 40px; height: 40px; border: 1px solid rgba(239,232,222,.38); border-radius: 8px; color: #efe8de; margin-left: .7rem; }
.nav .cart-btn:hover { background: transparent; border-color: var(--gold); color: var(--gold); }
.nav .cart-btn svg { width: 18px; height: 18px; }
@media (max-width: 940px) {
  .nav .cart-btn { margin-left: auto; margin-right: .5rem; }
  .nav-acc .acc-link, .nav-acc .acc > summary { color: var(--ink); border-color: var(--line); }
}

/* ---------- sello de Patrimonio (portada) ---------- */
.hero-seal { display: inline-flex; align-items: center; gap: .8rem; margin-top: 2rem; padding: .7rem 1rem .7rem .8rem; border: 1px solid rgba(231,174,35,.45); border-radius: 6px; background: rgba(231,174,35,.06); }
.hero-seal svg { width: 26px; height: 26px; color: var(--gold); flex: none; }
.hero-seal b { display: block; font-weight: 500; color: #efe8de; font-size: .92rem; }
.hero-seal small { display: block; font-family: var(--ff-mono); font-size: .62rem; letter-spacing: .14em; color: rgba(239,232,222,.55); margin-top: .15rem; }
/* ---------- Ayni · nuestras manos ---------- */
.ayni { background: var(--bg); padding: clamp(3.4rem, 7vw, 5.4rem) var(--pad); }
.ayni-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(1.6rem, 4vw, 3.2rem); align-items: center; }
.ayni-copy h2 { font-size: clamp(2.2rem, 4.8vw, 3.4rem); margin: .8rem 0 1rem; }
.ayni-copy p { color: var(--ink-soft); font-weight: 300; font-size: 1.04rem; max-width: 52ch; margin-bottom: 1.4rem; }
.ayni-fotos { display: grid; grid-template-columns: 1.2fr 1fr; grid-template-rows: 1fr 1fr; gap: .8rem; min-height: 360px; }
.ayni-fotos figure { margin: 0; border-radius: 6px; overflow: hidden; position: relative; background:
  repeating-linear-gradient(90deg, rgba(119,26,21,.08) 0 1px, transparent 1px 7px), linear-gradient(170deg, #ece4d8, #e2d8cc); }
.ayni-fotos figure:first-child { grid-row: 1 / 3; }
.ayni-fotos figure:not(:has(img[src]))::after { content: "Foto de las socias"; position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--ff-mono); font-size: .62rem; letter-spacing: .2em; text-transform: uppercase; color: #8a7f72; }
.ayni-fotos img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ayni-fotos img:not([src]) { display: none; }
@media (max-width: 860px) { .ayni-grid { grid-template-columns: 1fr; } .ayni-fotos { min-height: 280px; } }
/* ---------- ficha: historia de la pieza ---------- */
.pd-story { margin: 0 0 1.6rem; padding: 1rem 1.1rem; border-left: 3px solid #771a15; background: var(--paper); }
.pd-story p { margin-top: .5rem; font-family: var(--ff-display); font-style: italic; font-size: 1.25rem; line-height: 1.35; color: #4e100d; }
.cart-impact svg { color: #771a15; }

/* ---------- Dónde encontrarnos (tiendas y ferias) ---------- */
.donde { background: var(--bg); padding: clamp(2.6rem, 6vw, 4rem) var(--pad) 0; }
.donde-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1rem; }
.donde-item { display: flex; gap: .9rem; align-items: flex-start; background: var(--paper); border: 1px solid var(--line-2); border-left: 3px solid #771a15; border-radius: 6px; padding: 1.1rem 1.2rem; }
.donde-item svg { width: 22px; height: 22px; color: #771a15; flex: none; margin-top: .2rem; }
.donde-item h3 { font-size: 1.45rem; line-height: 1.05; }
.donde-item p { color: var(--ink-soft); font-size: .92rem; margin-top: .35rem; }
.donde-item small { display: block; font-family: var(--ff-mono); font-size: .66rem; letter-spacing: .1em; text-transform: uppercase; color: #771a15; margin-top: .45rem; }

/* ---------- El proceso: del vellón a la pieza ---------- */
.proceso { background: #1a1a1a; color: var(--bg); padding: clamp(3.4rem, 7vw, 5.4rem) var(--pad); }
.proceso .kicker { color: var(--gold); }
.proceso h2 { color: var(--bg); }
.proc-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.proc-step { position: relative; padding: 1.4rem 1.2rem 1.3rem; border-top: 2px solid #771a15; background: rgba(239,232,222,.04); }
.proc-n { position: absolute; top: .9rem; right: 1rem; font-family: var(--ff-display); font-size: 2.6rem; line-height: 1; color: rgba(231,174,35,.35); }
.proc-step svg { width: 34px; height: 34px; color: var(--gold); }
.proc-step h3 { font-size: 1.5rem; margin: .9rem 0 .4rem; color: var(--bg); }
.proc-step p { color: rgba(239,232,222,.7); font-weight: 300; font-size: .92rem; }
@media (max-width: 940px) { .proc-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .proc-grid { grid-template-columns: 1fr; } }

/* ---------- precio de la pieza ---------- */
.card-price { font-family: var(--ff-display); font-size: 1.45rem; line-height: 1; color: #771a15; margin: .1rem 0 .2rem; }
.pd-price { font-family: var(--ff-display); font-size: 1.6rem; color: #771a15; font-weight: 400 !important; }

@media (min-width: 1100px) { .rooms-grid { grid-template-columns: repeat(5, 1fr); } }

/* ---------- selección tipo Saga: colores (texto), tallas (círculos), cantidad ---------- */
.pd-buy-col { flex-direction: column; gap: 1.1rem; }
.pd-opt .pd-flabel b { font-family: var(--ff-body); font-weight: 600; color: var(--ink); text-transform: none; letter-spacing: 0; }
.size-pills .size-pill { border-radius: 999px; padding: .5em 1.05em; font-family: var(--ff-body); font-size: .85rem; }
.size-pill.active { background: #1a1a1a; border-color: #1a1a1a; color: #efe8de; }
.talla-pills { display: flex; flex-wrap: wrap; gap: .5rem; }
.talla-pill { min-width: 46px; height: 46px; padding: 0 .7rem; border-radius: 999px; border: 1.5px solid var(--line); background: var(--porcelana); font-family: var(--ff-body); font-weight: 500; font-size: .88rem; cursor: pointer; transition: all .2s var(--ease-out); }
.talla-pill:hover { border-color: #1a1a1a; }
.talla-pill.active { background: #1a1a1a; border-color: #1a1a1a; color: #efe8de; }
.pd-otra { display: inline-block; font-size: .8rem; color: #771a15; text-decoration: underline; }
.stepper { border-radius: 999px; overflow: hidden; }
.stepper button { width: 38px; height: 38px; }
.stepper .q { min-width: 34px; text-align: center; font-weight: 600; }
[data-add-detail].is-pending { background: #1a1a1a; border-color: #1a1a1a; color: #efe8de; }
.btn-opciones { text-decoration: none; justify-content: center; flex: 1; }
.cl-var { font-size: .8rem; color: var(--ink-soft); }

/* ---------- descuento ---------- */
.price-old { font-family: var(--ff-body, inherit); font-size: .8em; color: #8a8178; margin-right: .45rem; font-weight: 400; }
.price-off { display: inline-block; vertical-align: middle; margin-left: .5rem; padding: .18rem .5rem; border-radius: 999px; background: #771a15; color: #fff; font-family: var(--ff-mono, monospace); font-size: .72rem; letter-spacing: .04em; line-height: 1.2; }

/* contador compacto (no estirado a todo el ancho) */
.pd-field .stepper { align-self: flex-start; width: auto; border-radius: 10px; background: #fff; }
.pd-field .stepper button { width: 44px; height: 44px; font-size: 1.2rem; }
.pd-field .stepper .q { min-width: 40px; font-size: 1rem; }

/* ---------- ficha estilo Leonisa ---------- */
.pd-info .pd-title { font-size: clamp(1.9rem, 3.6vw, 2.8rem); line-height: 1.02; margin: .35rem 0 .3rem; }
.pd-code { font-family: var(--ff-mono); font-size: .8rem; letter-spacing: .06em; color: var(--ink-soft, #6b635b); }
.pd-top-price { display: flex; align-items: center; flex-wrap: wrap; gap: .2rem; margin: .9rem 0 .2rem; }
.pd-top-price .pd-price { font-size: 2.1rem; line-height: 1; }
.pd-info .pd-buy { margin: 1rem 0 1.6rem; padding: 1.5rem; border-radius: 18px; }
.swatches { display: flex; flex-wrap: wrap; gap: .55rem; align-items: center; }
.swatch { width: 40px; height: 40px; border-radius: 50%; padding: 3px; border: 1.5px solid transparent; background: transparent; cursor: pointer; transition: border-color .2s; }
.swatch span { display: block; width: 100%; height: 100%; border-radius: 50%; background: var(--sw); box-shadow: inset 0 0 0 1px rgba(0,0,0,.15); position: relative; }
.swatch:hover { border-color: #9c948a; }
.swatch.active { border-color: #1a1a1a; }
.swatch.active span::after { content: ""; position: absolute; left: 50%; top: 46%; width: 7px; height: 13px; border: solid #fff; border-width: 0 2.5px 2.5px 0; transform: translate(-50%, -50%) rotate(45deg); filter: drop-shadow(0 0 1px rgba(0,0,0,.6)); }
.talla-pill { min-width: 54px; height: 40px; border-radius: 8px; background: #fff; border: 1px solid #ddd5ca; font-weight: 600; }
.talla-pill.active { background: #1a1a1a; border-color: #1a1a1a; color: #fff; }
.pd-cta { display: flex; gap: .8rem; align-items: stretch; margin-top: 1.3rem; }
.pd-cta .stepper { flex: 0 0 auto; border-radius: 999px; background: #fff; border: 1px solid #ddd5ca; }
.pd-cta .stepper button { width: 42px; height: 48px; }
.pd-cta .stepper .q { min-width: 26px; }
.btn-add { flex: 1; justify-content: center; border-radius: 999px; background: #1a1a1a; color: #fff; border: 0; min-height: 48px; text-transform: uppercase; letter-spacing: .06em; font-weight: 700; font-size: .85rem; }
.btn-add:hover { background: #771a15; }
.btn-add.is-pending { background: #6f6862; }
.pd-wa { display: flex; justify-content: center; width: 100%; margin-top: .7rem; border-radius: 999px; }
.pd-buy .pd-otra { margin-top: .2rem; }
@media (max-width: 480px) { .btn-add { font-size: .78rem; letter-spacing: .03em; } }
