/* ============================================================
   Exclusivas Vikari — hoja de estilos única
   Dirección de arte 2026: corporativo premium.
   Paleta: dorado corporativo sobre marfil/champagne con carbón.
   Tipografía: Fraunces (display editorial) + Jost (texto/UI).
   Design system: ver CLAUDE.md
   ============================================================ */

:root {
  /* Paleta institucional */
  --gold: #b39955;        /* decorativo: filetes, ornamentos, texto grande sobre carbón */
  --gold-dark: #8e7541;   /* bordes, iconos, titulares grandes sobre claro */
  --gold-text: #7a6336;   /* único dorado aprobado para texto pequeño sobre claro (AA 5.4:1) */
  --champagne: #e7d9c4;
  --champagne-soft: #f1e8d9;
  --ivory: #faf8f4;
  --carbon: #242424;
  --white: #ffffff;

  /* Texto */
  --ink: #242424;
  --ink-2: #5c5347;       /* texto secundario cálido (6.5:1 sobre marfil) */
  --on-dark: #e7d9c4;
  --on-dark-2: #c9bda6;

  /* Líneas y superficies */
  --line: rgba(36, 36, 36, 0.14);
  --line-soft: rgba(36, 36, 36, 0.08);
  --line-gold: rgba(142, 117, 65, 0.4);
  --line-light: rgba(231, 217, 196, 0.25);
  --header-bg: rgba(250, 248, 244, 0.92);

  --radius: 4px;

  --font-display: "Fraunces", "Times New Roman", serif;
  --font-body: "Jost", "Helvetica Neue", -apple-system, sans-serif;

  /* ---- Control del hero (ver CLAUDE.md · un solo lugar para ajustar) ---- */
  --hero-min-h: min(86vh, 820px);   /* altura mínima del hero en escritorio */
  --hero-img-ar: 3 / 4;             /* proporción de la foto del hero (escritorio) */
  --hero-img-ar-m: 4 / 5;           /* proporción en móvil */
  --hero-img-pos: 50% 18%;          /* posición focal de la foto */
  --hero-overlay: 0;                /* opacidad del velo carbón sobre la foto (0–1) */
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--ivory);
  line-height: 1.65;
  font-size: 1.02rem;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* height:auto evita que los atributos width/height (anti-CLS) deformen al escalar */
img { max-width: 100%; height: auto; display: block; }
picture { display: block; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 420;
  line-height: 1.08;
  letter-spacing: -0.012em;
}
h1 { font-size: clamp(2.5rem, 5.4vw, 4.4rem); }
h2 { font-size: clamp(1.9rem, 3.5vw, 2.9rem); }
h3 { font-size: clamp(1.15rem, 1.8vw, 1.45rem); }

p { color: var(--ink-2); }
a { color: var(--gold-text); }

strong { font-weight: 600; }

.container { width: min(1180px, 92%); margin: 0 auto; }

section { padding: clamp(4.5rem, 10vw, 8rem) 0; }

:focus-visible { outline: 2px solid var(--gold-dark); outline-offset: 3px; }

::selection { background: var(--champagne); color: var(--carbon); }

/* Kicker editorial (la clase .eyebrow se conserva por los artículos) */
.kicker, .eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.74rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--gold-text);
  margin-bottom: 1.1rem;
}
.on-dark .kicker { color: var(--gold); }

.lead { font-size: clamp(1.05rem, 1.6vw, 1.25rem); line-height: 1.7; }

.section-head { max-width: 680px; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section-head.centered { margin-left: auto; margin-right: auto; text-align: center; }
.section-head p { margin-top: 1.1rem; }

/* Filete dorado decorativo */
.rule {
  width: 56px; height: 1px;
  background: var(--gold-dark);
  border: 0;
  margin: 1.4rem 0;
}
.centered .rule { margin-left: auto; margin-right: auto; }

/* ---------- Botones ---------- */
.btn {
  display: inline-block;
  padding: 0.95rem 2.1rem;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  text-align: center;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}
.btn-primary { background: var(--carbon); color: var(--ivory); }
.btn-primary:hover { background: var(--gold-text); color: var(--white); } /* AA 5.7:1 */
.btn-ghost { border-color: var(--carbon); color: var(--carbon); background: transparent; }
.btn-ghost:hover { background: var(--carbon); color: var(--ivory); }
.on-dark .btn-primary { background: var(--champagne); color: var(--carbon); }
.on-dark .btn-primary:hover { background: var(--white); color: var(--carbon); }
.on-dark .btn-ghost { border-color: var(--on-dark); color: var(--on-dark); }
.on-dark .btn-ghost:hover { background: var(--on-dark); color: var(--carbon); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: transparent;
  transition: background 0.3s ease, box-shadow 0.3s ease;
}
.site-header.scrolled,
.site-header.solid {
  background: var(--header-bg);
  backdrop-filter: saturate(160%) blur(16px);
  -webkit-backdrop-filter: saturate(160%) blur(16px);
  box-shadow: 0 1px 0 var(--line-soft);
}

.topbar {
  position: relative;
  background: var(--carbon);
  color: var(--on-dark);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-align: center;
  padding: 0.5rem 3rem;
}
.topbar a { color: var(--champagne); font-weight: 500; text-decoration: none; }
.topbar a:hover { color: var(--white); text-decoration: underline; }
.topbar .bsd {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--champagne);
  font-size: 0.78rem;
  opacity: 0.9;
}

.nav-wrap {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  padding: 0.7rem 0;
}
@media (min-width: 901px) {
  .nav-wrap { width: min(1240px, 96%); }
}
.logo { margin-right: auto; flex-shrink: 0; }
.logo img { height: 48px; width: auto; max-width: none; }

.main-nav { display: flex; align-items: center; gap: 1.1rem; list-style: none; }
.nav-mobile-extra { display: none; }
.main-nav a {
  text-decoration: none;
  white-space: nowrap;
  color: var(--ink);
  font-weight: 500;
  font-size: 0.72rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  padding: 0.35rem 0;
  border-bottom: 1px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.main-nav a:hover { color: var(--gold-text); border-bottom-color: var(--gold-dark); }
.main-nav a[aria-current="page"] { color: var(--gold-text); border-bottom-color: var(--gold-dark); }

.nav-extra { display: flex; align-items: center; gap: 1rem; flex-shrink: 0; }
.store-link {
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--ink-2);
  text-decoration: none;
}
.store-link:hover { color: var(--gold-text); }

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.lang-switch a, .lang-switch span[aria-current] {
  text-decoration: none;
  color: var(--ink-2);
  font-weight: 500;
}
.lang-switch span[aria-current] { color: var(--gold-text); border-bottom: 1px solid var(--gold-dark); }
.lang-switch a:hover { color: var(--gold-text); }
.lang-switch .sep { color: var(--line); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 44px; height: 44px;
  position: relative;
  z-index: 102;
}
.nav-toggle span {
  display: block;
  width: 24px; height: 1.5px;
  background: var(--ink);
  margin: 7px auto;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8.5px) rotate(-45deg); }

/* ---------- Hero institucional ---------- */
.hero {
  position: relative;
  padding: clamp(2.5rem, 6vw, 5rem) 0 0;
  min-height: var(--hero-min-h);
  display: flex;
  align-items: center;
  overflow: hidden;
}
/* bloque champagne asimétrico detrás de la foto */
.hero::before {
  content: "";
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: 44%;
  background: var(--champagne);
  z-index: 0;
}
.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2.5rem, 6vw, 5.5rem);
  align-items: center;
  padding-bottom: clamp(2.5rem, 6vw, 5rem);
}
.hero h1 {
  font-size: clamp(2.7rem, 5.2vw, 4.6rem);
  font-weight: 380;
}
.hero h1 .l2 { display: block; font-style: italic; color: var(--gold-text); }
.hero .lead { margin: 1.6rem 0 2.4rem; max-width: 520px; }
.hero-cta { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero-since {
  margin-top: clamp(2rem, 4vw, 3.2rem);
  padding-top: 1.4rem;
  border-top: 1px solid var(--line);
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-2);
  max-width: 420px;
}
.hero-figure { position: relative; margin: 0; }
.hero-figure picture { position: relative; }
.hero-figure img {
  width: 100%;
  aspect-ratio: var(--hero-img-ar);
  object-fit: cover;
  object-position: var(--hero-img-pos);
}
.hero-figure::after {   /* velo opcional para contraste, controlado por --hero-overlay */
  content: "";
  position: absolute; inset: 0;
  background: var(--carbon);
  opacity: var(--hero-overlay);
  pointer-events: none;
}
.hero-figure .frame-caption {
  position: absolute;
  left: -1px; bottom: clamp(1rem, 3vw, 2rem);
  background: var(--ivory);
  padding: 0.7rem 1.2rem;
  font-size: 0.74rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-text);
}

/* entrada escalonada del hero */
.hero .rise, .article-hero .rise {
  opacity: 0;
  transform: translateY(18px);
  animation: rise 0.9s cubic-bezier(0.25, 0.6, 0.2, 1) forwards;
  animation-delay: var(--d, 0s);
}
@keyframes rise { to { opacity: 1; transform: none; } }

/* ---------- Scroll reveal ---------- */
/* Solo se oculta bajo html.js (la agrega main.js): si el JS no corre, todo queda visible */
.js .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.25, 0.6, 0.2, 1);
  transition-delay: var(--d, 0s);
}
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- Vikari en cifras ---------- */
.figures-band { background: var(--carbon); color: var(--on-dark); }
.figures {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 0;
}
.figure {
  padding: 0.6rem 2rem;
  border-left: 1px solid var(--line-light);
}
.figure:first-child { border-left: 0; padding-left: 0; }
.figure strong {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 4.5vw, 3.8rem);
  font-weight: 350;
  line-height: 1.05;
  color: var(--champagne);
}
.figure strong sup { font-size: 55%; color: var(--gold); }
.figure strong span { font: inherit; color: inherit; display: inline; }
.figure > span {
  display: block;
  margin-top: 0.55rem;
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--on-dark-2);
}

/* ---------- Nuestras marcas (filas editoriales) ---------- */
.brand-list { border-top: 1px solid var(--line); }
.brand-row {
  display: grid;
  grid-template-columns: 240px 1fr auto;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: center;
  padding: clamp(1.6rem, 3vw, 2.4rem) 0;
  border-bottom: 1px solid var(--line);
}
.brand-logo {
  /* logos con fondo transparente, directo sobre el marfil (sin caja blanca) */
  padding: 0.6rem 0;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  min-height: 104px;
}
/* caja uniforme: todos los logos ocupan el mismo marco visual */
.brand-logo img {
  width: 100%;
  max-width: 190px;
  height: 76px;
  object-fit: contain;
  object-position: left center;
}
/* marcas sin archivo de logotipo: wordmark tipográfico (no es un logo inventado) */
.brand-wordmark {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.4vw, 1.9rem);
  font-weight: 450;
  letter-spacing: 0.06em;
  color: var(--carbon);
}
.brand-info .brand-cat {
  display: block;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-text);
  font-weight: 500;
  margin-bottom: 0.35rem;
}
.brand-info h3 { margin-bottom: 0.4rem; }
.brand-info p { font-size: 0.95rem; max-width: 56ch; }
.brand-links { display: flex; flex-direction: column; gap: 0.6rem; align-items: flex-end; }
.brand-links a {
  font-size: 0.76rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--gold-text);
  text-decoration: none;
  border-bottom: 1px solid var(--line-gold);
  padding-bottom: 0.15rem;
}
.brand-links a:hover { color: var(--carbon); border-bottom-color: var(--carbon); }

/* ---------- Diseño y fabricación (sección oscura) ---------- */
.on-dark { background: var(--carbon); color: var(--on-dark); }
.on-dark h2, .on-dark h3 { color: var(--ivory); }
.on-dark p { color: var(--on-dark-2); }
.on-dark a { color: var(--champagne); }

.process-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(2rem, 4vw, 3.5rem) clamp(1.8rem, 4vw, 3rem);
  counter-reset: step;
}
.step { border-top: 1px solid var(--line-light); padding-top: 1.3rem; }
.step .num {
  display: block;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-style: italic;
  color: var(--gold);
  margin-bottom: 0.6rem;
}
.step h3 { font-size: 1.12rem; margin-bottom: 0.45rem; }
.step p { font-size: 0.92rem; line-height: 1.6; }

/* ---------- Tecnología e innovación ---------- */
.tech-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: clamp(2rem, 4vw, 3rem) clamp(2rem, 5vw, 4rem);
}
.tech-item { display: grid; grid-template-columns: 44px 1fr; gap: 1.1rem; align-items: start; }
.tech-item .ico {
  color: var(--gold-dark);
  border: 1px solid var(--line-gold);
  width: 44px; height: 44px;
  display: grid; place-items: center;
}
.tech-item .ico svg { width: 22px; height: 22px; }
.tech-item h3 { font-size: 1.1rem; margin-bottom: 0.3rem; }
.tech-item p { font-size: 0.92rem; }

/* ---------- Presencia comercial ---------- */
.band-champagne { background: var(--champagne-soft); }
.channels {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  margin-top: clamp(2rem, 4vw, 3rem);
}
.channel {
  background: var(--ivory);
  padding: 1.8rem 1.2rem;
  text-align: center;
}
.channel .ico { color: var(--gold-dark); display: flex; justify-content: center; margin-bottom: 0.9rem; }
.channel .ico svg { width: 30px; height: 30px; }
.channel span { font-size: 0.82rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-2); font-weight: 500; }

/* ---------- Historia y propósito ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2.5rem, 6vw, 5.5rem);
  align-items: center;
}
.split-figure { margin: 0; position: relative; }
.split-figure img { width: 100%; object-fit: cover; }
.split-figure.framed { padding: 0 1.4rem 1.4rem 0; }
.split-figure.framed::after {
  content: "";
  position: absolute;
  top: 1.4rem; right: 0; bottom: 0; left: 1.4rem;
  border: 1px solid var(--line-gold);
  z-index: -1;
}
.split .stats-inline { margin-top: 2rem; display: flex; gap: 2.5rem; flex-wrap: wrap; }
.split .stats-inline div strong {
  display: block;
  font-family: var(--font-display);
  font-size: 2.1rem;
  font-weight: 400;
  color: var(--carbon);
}
.split .stats-inline div span { font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-2); }

.quote {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.6vw, 2rem);
  font-weight: 380;
  font-style: italic;
  line-height: 1.4;
  color: var(--carbon);
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
}
.quote footer {
  margin-top: 1.4rem;
  font-family: var(--font-body);
  font-style: normal;
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-text);
}

.values {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.2rem 2.5rem;
  margin-top: 2rem;
}
.values li {
  border-top: 1px solid var(--line);
  padding-top: 0.8rem;
  font-size: 0.95rem;
  color: var(--ink-2);
}
.values li strong { display: block; color: var(--carbon); font-weight: 500; margin-bottom: 0.15rem; }

/* ---------- Soluciones comerciales B2B ---------- */
.b2b-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: start;
}
.b2b-aud { list-style: none; margin-top: 1.6rem; }
.b2b-aud li {
  padding: 0.75rem 0 0.75rem 1.6rem;
  border-bottom: 1px solid var(--line-light);
  color: var(--on-dark-2);
  position: relative;
  font-size: 0.97rem;
}
.b2b-aud li::before {
  content: "";
  position: absolute;
  left: 0; top: 1.35rem;
  width: 14px; height: 1px;
  background: var(--gold);
}
.b2b-contact { margin-top: 2.2rem; display: flex; gap: 1rem; flex-wrap: wrap; }

.b2b-form {
  background: var(--white);
  border: 1px solid var(--line-soft);
  padding: clamp(1.8rem, 4vw, 2.8rem);
}
.b2b-form .form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem 1.2rem; }
.field { display: flex; flex-direction: column; gap: 0.35rem; }
.field.wide { grid-column: 1 / -1; }
.field label {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--ink-2);
}
.field input, .field select, .field textarea {
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--ink);
  background: var(--ivory);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.7rem 0.85rem;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: 2px solid var(--gold-dark);
  outline-offset: 0;
  border-color: var(--gold-dark);
}
.field textarea { min-height: 110px; resize: vertical; }
.consent { display: flex; flex-direction: row; gap: 0.6rem; align-items: flex-start; font-size: 0.85rem; color: var(--ink-2); }
.consent input { margin-top: 0.3rem; accent-color: var(--gold-dark); }
.form-msg { font-size: 0.9rem; margin-top: 1rem; color: var(--gold-text); }
.form-msg.error { color: #a03232; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; } /* honeypot antispam */

/* ---------- Pendientes (ocultos en producción) ---------- */
.pending { display: none !important; }
html.preview .pending {
  display: block !important;
  position: relative;
  outline: 2px dashed var(--gold-dark);
  outline-offset: 4px;
}
html.preview .pending::before {
  content: "PENDIENTE DE CONFIRMAR — oculto en producción";
  display: block;
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--white);
  background: var(--gold-dark);
  padding: 0.25rem 0.6rem;
  margin-bottom: 0.8rem;
  width: max-content;
  max-width: 100%;
}

/* ---------- Blog (tarjetas editoriales) ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: clamp(1.8rem, 4vw, 3rem);
  margin-top: clamp(2.5rem, 5vw, 4rem);
}
.card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  text-align: left;
  background: transparent;
}
.card .card-img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  margin-bottom: 1.4rem;
  transition: opacity 0.3s ease;
}
.card:hover .card-img { opacity: 0.88; }
.card h3 { color: var(--carbon); margin-bottom: 0.6rem; }
.card p { flex: 1; font-size: 0.95rem; }
.card .more {
  margin-top: 1.2rem;
  font-size: 0.76rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--gold-text);
}
.card:hover .more { color: var(--carbon); }
.card .tag, .cat-card .tag {
  display: inline-block;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-text);
  font-weight: 500;
  margin-bottom: 0.5rem;
}

/* ---------- Banda tienda ---------- */
.store-band { background: var(--champagne); }
.store-band .kicker { color: #6e5930; } /* AA 4.8:1 sobre champagne */
.store-band .split { align-items: center; }
.store-band .logo-store {
  background: var(--white);
  padding: clamp(1.5rem, 4vw, 2.5rem);
  display: flex;
  align-items: center;
  justify-content: center;
}
.store-band .logo-store img { max-height: 300px; width: auto; }
.store-band .trust {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.4rem;
  font-size: 0.85rem;
  color: var(--ink-2);
}
.store-band .trust svg { width: 18px; height: 18px; flex-shrink: 0; color: var(--gold-dark); }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; margin: clamp(2.5rem, 5vw, 4rem) auto 0; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 1.35rem 3rem 1.35rem 0;
  font-weight: 500;
  color: var(--ink);
  position: relative;
  font-size: 1.02rem;
  text-align: left;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute;
  right: 0.4rem; top: 50%;
  transform: translateY(-50%);
  font-size: 1.4rem;
  font-weight: 300;
  color: var(--gold-dark);
  transition: transform 0.3s ease;
}
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details > div { padding: 0 2.5rem 1.4rem 0; text-align: left; }
.faq details > div p { margin-bottom: 0.6rem; font-size: 0.97rem; }

/* ---------- CTA box en artículos ---------- */
.cta-box {
  background: var(--champagne-soft);
  border: 1px solid var(--line-gold);
  padding: clamp(2rem, 5vw, 3rem);
  text-align: center;
  margin-top: 3rem;
}
.cta-box h2 { margin: 0 0 0.6rem !important; font-size: clamp(1.4rem, 2.8vw, 1.9rem); }
.cta-box p { margin-bottom: 1.6rem; }

/* ---------- Barra fija de compra (móvil) ---------- */
.sticky-cta {
  display: none;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 99;
  background: var(--header-bg);
  backdrop-filter: saturate(160%) blur(16px);
  -webkit-backdrop-filter: saturate(160%) blur(16px);
  box-shadow: 0 -1px 0 var(--line-soft);
  padding: 0.6rem 0.8rem;
  gap: 0.7rem;
}
.sticky-cta { gap: 0.5rem; }
.sticky-cta .btn {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.72rem 0.4rem;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  white-space: nowrap;
}
.sticky-cta .btn svg { width: 16px; height: 16px; }

/* ---------- Artículos del blog ---------- */
.article-hero {
  background: var(--champagne-soft);
  padding: clamp(3.5rem, 7vw, 6rem) 0 clamp(2.5rem, 5vw, 4rem);
  text-align: center;
}
.article-hero h1 { max-width: 880px; margin: 0.4rem auto 0; font-size: clamp(2rem, 4.4vw, 3.4rem); }
.article-hero .hero-img {
  max-width: 480px;
  width: 88%;
  margin: 2.6rem auto 0;
}
.breadcrumb { padding-top: 1.2rem; font-size: 0.85rem; color: var(--ink-2); }
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 0; padding: 0; list-style: none; }
.breadcrumb li + li::before { content: "—"; margin-right: 0.4rem; color: var(--line-gold); }
.breadcrumb a { color: var(--gold-text); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.article-meta {
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line);
  color: var(--ink-2);
  font-size: 0.88rem !important;
  letter-spacing: 0.03em;
}
.article-body { max-width: 720px; margin: 0 auto; }
.article-body h2 {
  margin: 2.8rem 0 1rem;
  font-size: clamp(1.4rem, 2.4vw, 1.8rem);
}
.article-body p { margin-bottom: 1.15rem; font-size: 1.05rem; line-height: 1.75; }
.article-body ul { margin: 0 0 1.2rem 1.2rem; color: var(--ink-2); }
.article-body li { margin-bottom: 0.55rem; line-height: 1.65; }
.article-body .article-nav { display: flex; justify-content: space-between; gap: 1rem; margin-top: 3.5rem; flex-wrap: wrap; }

/* ---------- Lista de asesoría ---------- */
.checklist { list-style: none; margin: 1.6rem 0 2rem; }
.checklist li { padding-left: 1.8rem; position: relative; margin-bottom: 0.7rem; color: var(--ink-2); }
.checklist li::before { content: "—"; position: absolute; left: 0; color: var(--gold-dark); }

/* ---------- Footer corporativo (claro) ---------- */
.site-footer {
  background: var(--ivory);
  border-top: 1px solid var(--line);
  color: var(--ink-2);
  padding: clamp(3.5rem, 7vw, 5.5rem) 0 2rem;
  margin-top: clamp(3rem, 7vw, 5rem);
  font-size: 0.9rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--line-soft);
}
.site-footer h3 {
  font-family: var(--font-body);
  color: var(--carbon);
  font-size: 0.76rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 1.1rem;
}
.site-footer p, .site-footer li { font-size: 0.88rem; color: var(--ink-2); }
.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: 0.55rem; }
.site-footer a { color: var(--ink-2); text-decoration: none; transition: color 0.2s ease; }
.site-footer a:hover { color: var(--gold-text); text-decoration: underline; }
.footer-logo { height: 54px; width: auto; margin-bottom: 1.1rem; }
.footer-desc { max-width: 34ch; }

.socials { display: flex; gap: 0.7rem; margin-top: 1.3rem; }
.socials a {
  width: 38px; height: 38px;
  border: 1px solid var(--line);
  display: grid; place-items: center;
  transition: border-color 0.25s ease, background 0.25s ease;
}
.socials a:hover { border-color: var(--gold-dark); background: var(--white); }
.socials svg { width: 17px; height: 17px; fill: var(--ink-2); transition: fill 0.25s ease; }
.socials a:hover svg { fill: var(--gold-text); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  padding-top: 1.6rem;
  font-size: 0.78rem;
  color: var(--ink-2);
}
.footer-bottom .legal { display: flex; gap: 1.4rem; flex-wrap: wrap; }
.footer-bottom a { font-size: 0.78rem; }
.copyright { font-size: 0.78rem; color: var(--ink-2); }

/* ---------- Skip link (accesibilidad) ---------- */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  background: var(--carbon);
  color: var(--ivory);
  padding: 0.7rem 1.2rem;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-decoration: none;
}
.skip-link:focus { left: 0; }

/* ---------- Aviso de cookies / analytics (lo genera main.js) ---------- */
.cookie-banner[hidden] { display: none !important; } /* [hidden] debe ganar al display:flex */
.cookie-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 120;
  background: var(--carbon);
  color: var(--on-dark);
  padding: 1rem clamp(1rem, 4vw, 2rem);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.2rem;
  flex-wrap: wrap;
  font-size: 0.88rem;
  box-shadow: 0 -1px 0 var(--line-light);
}
.cookie-banner p { color: var(--on-dark); margin: 0; max-width: 60ch; }
.cookie-banner a { color: var(--champagne); }
.cookie-banner .cookie-actions { display: flex; gap: 0.7rem; flex-shrink: 0; }
.cookie-banner .btn { padding: 0.55rem 1.2rem; font-size: 0.72rem; }
.cookie-banner .cookie-gpc { font-size: 0.8rem; color: var(--on-dark-2); }
@media (max-width: 900px) {
  .cookie-banner { bottom: 64px; } /* deja visible la barra fija móvil */
}

/* ---------- Responsive ---------- */
@media (max-width: 1340px) {
  .nav-extra .store-link { display: none; } /* la tienda sigue en topbar y footer */
}
@media (max-width: 1150px) and (min-width: 901px) {
  .main-nav { gap: 1rem; }
  .main-nav a { font-size: 0.7rem; letter-spacing: 0.08em; }
  }
@media (max-width: 1024px) {
  .process-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  .sticky-cta { display: flex; }
  body { padding-bottom: 64px; }

  .hero { min-height: 0; }
  .hero::before { display: none; }
  .hero-grid { grid-template-columns: 1fr; gap: 2.2rem; }
  .hero-figure { order: -1; margin: 0 calc(50% - 50vw); } /* foto a sangre completa */
  .hero-figure img { aspect-ratio: var(--hero-img-ar-m); }

  .split, .b2b-grid { grid-template-columns: 1fr; }
  .split-figure { order: -1; }

  .brand-row { grid-template-columns: 1fr; gap: 1.1rem; }
  .brand-logo { max-width: 260px; min-height: 90px; }
  .brand-links { flex-direction: row; align-items: center; gap: 1.6rem; }

  .figures { grid-template-columns: 1fr 1fr; gap: 2rem 0; }
  .figure { padding: 0 1.4rem; }
  .figure:nth-child(odd) { border-left: 0; padding-left: 0; }

  /* Navegación móvil */
  .site-header { background: var(--ivory); }
  .site-header.scrolled, .site-header.solid { backdrop-filter: none; -webkit-backdrop-filter: none; }
  .nav-toggle { display: block; }
  .nav-wrap { gap: 0.8rem; }
  .logo img { height: 42px; }
  .main-nav {
    position: fixed;
    inset: 0;
    background: var(--ivory);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 1.6rem;
    transform: translateX(100%);
    visibility: hidden; /* cerrado: sin foco de teclado ni lectores */
    transition: transform 0.35s cubic-bezier(0.25, 0.6, 0.2, 1), visibility 0s 0.35s;
    z-index: 101;
  }
  .main-nav a { font-size: 1.05rem; letter-spacing: 0.16em; }
  .main-nav.open {
    transform: translateX(0);
    visibility: visible;
    transition: transform 0.35s cubic-bezier(0.25, 0.6, 0.2, 1);
  }
  .nav-extra .store-link { display: none; }
    /* dentro del menú móvil */
  .main-nav .nav-mobile-extra { display: flex; flex-direction: column; align-items: center; gap: 1.2rem; margin-top: 1rem; }
  .nav-extra .lang-switch { display: none; } /* en móvil el idioma vive en el menú */
}

@media (max-width: 640px) {
  .process-grid { grid-template-columns: 1fr; }
  .b2b-form .form-grid { grid-template-columns: 1fr; }
  .figures { grid-template-columns: 1fr 1fr; }
  .card .card-img { height: 240px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero .rise, .article-hero .rise { animation: none; opacity: 1; transform: none; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .card .card-img, .socials a, .main-nav { transition: none; }
}
