/* ==========================================================================
   YRVIMAR — Sistema de diseño (LIGHT / claro, estilo industrial pro)
   Base: blanco/gris claro + texto navy + dorado de marca (acento/CTA)
   Tipos: Space Grotesk (display) · Inter (texto) · JetBrains Mono (técnico)
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  --bg: #ffffff;
  --bg-2: #f4f6f9;      /* secciones alternas */
  --bg-3: #eceff3;
  --surface: #ffffff;   /* tarjetas */
  --ink: #131a24;       /* texto principal (navy-carbón) */
  --ink-2: #26313f;
  --mute: #586472;
  --mute-2: #8a94a1;
  --line: #e4e8 ec;
  --line: #e5e9ee;
  --line-2: #d5dbe2;
  --line-3: #c3cbd4;

  --navy: #0f1722;      /* barra superior / footer */
  --navy-2: #17212e;

  --gold: #f5b301;
  --gold-lite: #ffcb3d;
  --gold-deep: #d99200;
  --gold-grad: linear-gradient(135deg, #ffcb3d 0%, #f5b301 48%, #e0a000 100%);
  --gold-soft: #fff6e0;

  --white: #ffffff;

  --radius: 6px;
  --radius-lg: 12px;
  --radius-xl: 20px;

  --container: 1280px;
  --gutter: clamp(20px, 5vw, 44px);
  --section-y: clamp(56px, 8vw, 108px);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  --shadow-sm: 0 2px 8px -2px rgba(20, 30, 50, 0.10);
  --shadow: 0 14px 40px -18px rgba(20, 30, 50, 0.28);
  --shadow-lg: 0 28px 60px -24px rgba(20, 30, 50, 0.32);
  --shadow-gold: 0 14px 34px -14px rgba(245, 179, 1, 0.5);

  --ff-display: "Space Grotesk", system-ui, sans-serif;
  --ff-body: "Inter", system-ui, sans-serif;
  --ff-mono: "JetBrains Mono", ui-monospace, monospace;

  --header-h: 92px;
  --header-h-sm: 66px;
  --topbar-h: 40px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  font-family: var(--ff-body);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.7;
  font-size: 1.0625rem;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
:where(svg) { width: 1.2em; height: 1.2em; flex-shrink: 0; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: none; }
ul, ol { list-style: none; padding: 0; }
input, textarea, select { font: inherit; }
::selection { background: var(--gold); color: #1a1300; }

* { scrollbar-width: thin; scrollbar-color: #c3cbd4 #eceff3; }
::-webkit-scrollbar { width: 11px; height: 11px; }
::-webkit-scrollbar-track { background: #eceff3; }
::-webkit-scrollbar-thumb { background: #c3cbd4; border-radius: 20px; border: 3px solid #eceff3; }
::-webkit-scrollbar-thumb:hover { background: #a9b3bf; }

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

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 300;
  background: var(--gold); color: #1a1300; padding: 10px 18px; border-radius: 4px;
  font-weight: 600; transition: top .2s var(--ease);
}
.skip-link:focus { top: 12px; }

/* ---------- Typography ---------- */
h1, h2, h3, h4 { font-family: var(--ff-display); font-weight: 600; line-height: 1.08; color: var(--ink); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.85rem, 3.8vw, 2.9rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.5rem); letter-spacing: -0.01em; }
p { text-wrap: pretty; }
strong { color: var(--ink); font-weight: 600; }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section-y); position: relative; }
.section--tight { padding-block: clamp(44px, 6vw, 76px); }
.bg-soft { background: var(--bg-2); }
.bg-navy { background: var(--navy); color: #d7dde5; }

/* Eyebrow */
.eyebrow {
  font-family: var(--ff-mono); font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold-deep);
  display: inline-flex; align-items: center; gap: 12px;
}
.eyebrow::before { content: attr(data-num); color: var(--mute-2); letter-spacing: 0.1em; }
.eyebrow--plain::before { content: none; }
.eyebrow .tick { width: 26px; height: 2px; background: var(--gold); display: inline-block; border-radius: 2px; }

.section-head { max-width: 720px; margin-bottom: clamp(32px, 4.5vw, 54px); }
.section-head h2 { margin-top: 16px; }
.section-head .lead { color: var(--mute); margin-top: 14px; font-size: 1.06rem; }
.section-head--split { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; max-width: none; flex-wrap: wrap; }
.lead { font-size: 1.1rem; color: var(--mute); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 24px; border-radius: var(--radius);
  font-family: var(--ff-mono); font-size: 0.8rem; font-weight: 600;
  letter-spacing: 0.05em; text-transform: uppercase;
  position: relative; overflow: hidden; isolation: isolate;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), background .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease);
  will-change: transform;
}
.btn svg { width: 18px; height: 18px; }
.btn--primary { background: var(--gold-grad); color: #1a1300; box-shadow: var(--shadow-gold); }
.btn--primary::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(120deg, transparent 20%, rgba(255,255,255,0.6) 50%, transparent 80%);
  transform: translateX(-120%); transition: transform .6s var(--ease);
}
.btn--primary:hover::after { transform: translateX(120%); }
.btn--primary:hover { transform: translateY(-2px); }
.btn--ghost { background: transparent; color: var(--ink); border: 1px solid var(--line-2); }
.btn--ghost:hover { border-color: var(--gold); color: var(--gold-deep); transform: translateY(-2px); }
.btn--ghost-light { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.4); }
.btn--ghost-light:hover { border-color: #fff; background: rgba(255,255,255,.1); transform: translateY(-2px); }
/* Sobre fondos oscuros el botón fantasma debe ir en claro (si no, texto oscuro sobre oscuro) */
.cta-band .btn--ghost,
.hero .btn--ghost,
.bg-carbon .btn--ghost,
.section--dark .btn--ghost { color: #fff; border-color: rgba(255,255,255,.4); background: transparent; }
.cta-band .btn--ghost:hover,
.hero .btn--ghost:hover,
.bg-carbon .btn--ghost:hover,
.section--dark .btn--ghost:hover { color: #fff; border-color: #fff; background: rgba(255,255,255,.1); }
.btn--dark { background: var(--navy); color: #fff; border: 1px solid var(--navy); }
.btn--dark:hover { background: var(--navy-2); transform: translateY(-2px); }
.btn--wa { background: #25d366; color: #04160a; }
.btn--wa:hover { background: #2ce775; transform: translateY(-2px); box-shadow: 0 16px 40px -16px rgba(37,211,102,.55); }
.btn--lg { padding: 17px 32px; font-size: 0.84rem; }
.btn--block { display: flex; width: 100%; }

.textlink { display: inline-flex; align-items: center; gap: 9px; font-family: var(--ff-mono);
  font-size: 0.78rem; letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink); font-weight: 600; }
.textlink .arw { transition: transform .3s var(--ease); color: var(--gold-deep); }
.textlink:hover .arw { transform: translateX(6px); }

/* ---------- Top bar ---------- */
.topbar { background: var(--navy); color: #aeb8c4; font-size: 0.8rem; }
.topbar .container { display: flex; align-items: center; justify-content: space-between; height: var(--topbar-h); gap: 20px; }
.topbar a { color: #c3ccd6; transition: color .2s; display: inline-flex; align-items: center; gap: 7px; }
.topbar a:hover { color: var(--gold); }
.topbar svg { width: 15px; height: 15px; color: var(--gold); }
.topbar-left { display: flex; gap: 22px; align-items: center; }
.topbar-right { display: flex; gap: 18px; align-items: center; }
.topbar .sep { width: 1px; height: 16px; background: rgba(255,255,255,.14); }
.topbar-social { display: flex; gap: 12px; }
.topbar-social a svg { width: 16px; height: 16px; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 100; background: #fff; border-bottom: 1px solid var(--line); transition: box-shadow .3s var(--ease); }
.site-header.scrolled { box-shadow: var(--shadow); }
.nav { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); gap: 24px; transition: height .35s var(--ease); }
.site-header.scrolled .nav { height: var(--header-h-sm); }
.brand { display: inline-flex; align-items: center; flex-shrink: 0; }
.brand img { height: 62px; width: auto; transition: height .35s var(--ease); }
.site-header.scrolled .brand img { height: 44px; }
.nav-links { display: flex; align-items: center; gap: 2px; }
.nav-links > a, .nav-item > button, .nav-item > a {
  font-size: 0.94rem; font-weight: 500; color: var(--ink-2);
  padding: 10px 15px; border-radius: 6px; position: relative; transition: color .2s var(--ease); display: inline-flex; align-items: center; gap: 6px;
}
.nav-links > a::after, .nav-item > a::after {
  content: ""; position: absolute; left: 15px; right: 15px; bottom: 8px; height: 2px;
  background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .28s var(--ease); border-radius: 2px;
}
.nav-links > a:hover, .nav-links > a[aria-current="page"] { color: var(--ink); }
.nav-links > a:hover::after, .nav-links > a[aria-current="page"]::after { transform: scaleX(1); }
.nav-item { position: relative; }
.nav-item > button { cursor: pointer; }
.nav-item > button .chev { width: 15px; height: 15px; color: var(--mute-2); transition: transform .25s var(--ease); }
.nav-item:hover > button .chev { transform: rotate(180deg); }
.nav-item:hover > button { color: var(--ink); }

/* Mega menu (categorías) */
.mega {
  position: absolute; top: 100%; left: 50%; transform: translateX(-50%) translateY(12px);
  width: min(720px, 92vw); background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg); padding: 14px; opacity: 0; visibility: hidden; transition: opacity .22s var(--ease), transform .22s var(--ease); z-index: 120;
}
/* Puente invisible para que el hover no se corte al bajar del botón al panel */
.mega::before { content: ""; position: absolute; left: 0; right: 0; top: -16px; height: 18px; }
.nav-item:hover .mega, .nav-item:focus-within .mega { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(8px); }
.mega-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.mega-link { display: flex; gap: 13px; align-items: center; padding: 12px; border-radius: 8px; transition: background .2s; }
.mega-link:hover { background: var(--bg-2); }
.mega-link .mi { width: 42px; height: 42px; border-radius: 9px; background: var(--gold-soft); color: var(--gold-deep); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.mega-link .mi svg { width: 21px; height: 21px; }
.mega-link h4 { font-family: var(--ff-body); font-size: 0.95rem; font-weight: 600; color: var(--ink); margin: 0; }
.mega-link p { font-size: 0.8rem; color: var(--mute); margin: 2px 0 0; }
.mega-foot { margin-top: 8px; padding: 12px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; }
.mega-foot a { font-family: var(--ff-mono); font-size: 0.76rem; text-transform: uppercase; letter-spacing: .05em; color: var(--gold-deep); font-weight: 600; display: inline-flex; gap: 8px; align-items: center; }

.nav-actions { display: flex; align-items: center; gap: 12px; }
.lang-switch { font-family: var(--ff-mono); font-size: 0.75rem; letter-spacing: 0.06em; font-weight: 600; color: var(--mute); border: 1px solid var(--line-2); padding: 8px 12px; border-radius: 6px; display: inline-flex; align-items: center; gap: 7px; transition: all .25s var(--ease); }
.lang-switch:hover { color: var(--ink); border-color: var(--gold); }
.lang-switch svg { width: 14px; height: 14px; opacity: .8; }
.nav-toggle { display: none; width: 44px; height: 44px; border: 1px solid var(--line-2); border-radius: 8px; align-items: center; justify-content: center; }
.nav-toggle span { position: relative; width: 20px; height: 2px; background: var(--ink); transition: .3s var(--ease); }
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; width: 20px; height: 2px; background: var(--ink); transition: .3s var(--ease); }
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }
body.nav-open .nav-toggle span { background: transparent; }
body.nav-open .nav-toggle span::before { top: 0; transform: rotate(45deg); }
body.nav-open .nav-toggle span::after { top: 0; transform: rotate(-45deg); }

/* Mobile info bar (arriba del header, se va con el scroll) */
.m-topinfo { display: none; }
/* Barra de teléfono (debajo del header en móvil, se va con el scroll) */
.m-phonebar { display: none; }

/* Mobile nav */
.nav-mobile { display: none; }

/* ---------- HERO carousel ---------- */
.hero { position: relative; }
.hero-carousel { position: relative; height: clamp(460px, 72vh, 660px); overflow: hidden; background: var(--navy); }
.slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1s var(--ease); }
.slide.active { opacity: 1; }
.slide__img { position: absolute; inset: 0; }
.slide__img img { width: 100%; height: 100%; object-fit: cover; object-position: center right; transform: scale(1.06); }
.slide.active .slide__img img { animation: kenburns 7s ease-out forwards; }
@keyframes kenburns { from { transform: scale(1.02); } to { transform: scale(1.12); } }
@media (prefers-reduced-motion: reduce) { .slide.active .slide__img img { animation: none; transform: scale(1.04); } }
.slide::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(12,18,27,.90) 0%, rgba(12,18,27,.72) 38%, rgba(12,18,27,.30) 62%, rgba(12,18,27,.08) 100%); }
.slide__content { position: relative; z-index: 2; height: 100%; display: flex; flex-direction: column; justify-content: center; max-width: 620px; }
.slide__content .eyebrow { color: var(--gold-lite); }
.slide__content .eyebrow .tick { background: var(--gold); }
.slide h1, .slide__content h1, .slide__content .slide-title { color: #fff; font-size: clamp(2.1rem, 5vw, 3.7rem); line-height: 1.03; margin-top: 18px; letter-spacing: -0.03em; font-weight: 700; }
.slide h1 .gold { color: var(--gold-lite); }
.slide__content p { color: #d7dde5; margin-top: 18px; font-size: clamp(1rem, 1.6vw, 1.18rem); max-width: 44ch; }
.slide__cta { margin-top: 30px; display: flex; gap: 13px; flex-wrap: wrap; }
.hero-slides-inner { position: relative; z-index: 2; height: 100%; }
.hero .container { height: 100%; }

.carousel-arrow { position: absolute; top: 50%; transform: translateY(-50%); z-index: 5; width: 50px; height: 50px; border-radius: 50%; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.28); color: #fff; display: flex; align-items: center; justify-content: center; backdrop-filter: blur(6px); transition: all .25s var(--ease); }
.carousel-arrow:hover { background: var(--gold); color: #1a1300; border-color: var(--gold); }
.carousel-arrow svg { width: 22px; height: 22px; }
.carousel-arrow.prev { left: clamp(12px, 3vw, 28px); }
.carousel-arrow.next { right: clamp(12px, 3vw, 28px); }
.carousel-dots { position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%); z-index: 5; display: flex; gap: 10px; }
.carousel-dots button { width: 30px; height: 4px; border-radius: 3px; background: rgba(255,255,255,.35); transition: background .25s, width .25s; }
.carousel-dots button.active { background: var(--gold); width: 44px; }
@media (max-width: 620px) { .carousel-arrow { display: none; } }

/* ---------- Category strip (iconos) ---------- */
.cat-strip { background: #fff; border-bottom: 1px solid var(--line); }
.cat-strip .inner { display: grid; grid-template-columns: repeat(7, 1fr); }
.cat-strip .lb { text-align: center; }
.cat-strip a { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; padding: 22px 12px; border-right: 1px solid var(--line); transition: background .2s var(--ease); position: relative; }
.cat-strip a:last-child { border-right: 0; }
.cat-strip a:hover { background: var(--gold-soft); }
.cat-strip .ic { width: 44px; height: 44px; color: var(--gold-deep); display: flex; align-items: center; justify-content: center; transition: transform .3s var(--ease); }
.cat-strip a:hover .ic { transform: translateY(-3px); }
.cat-strip .ic svg { width: 30px; height: 30px; }
.cat-strip .lb { font-size: 0.82rem; font-weight: 600; color: var(--ink-2); line-height: 1.25; }

/* ---------- Category cards (claras) ---------- */
.cat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.cat-card { position: relative; overflow: hidden; border-radius: var(--radius-lg); border: 1px solid var(--line); background: #fff; display: flex; flex-direction: column; transition: box-shadow .4s var(--ease), transform .4s var(--ease); box-shadow: var(--shadow-sm); }
.cat-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-5px); }
.cat-card__media { position: relative; aspect-ratio: 5 / 4; background: #f2f4f7; overflow: hidden; }
.cat-card__media img { width: 100%; height: 100%; object-fit: cover; object-position: center; transition: transform .7s var(--ease); }
.cat-card:hover .cat-card__media img { transform: scale(1.06); }
.cat-card .idx { position: absolute; top: 12px; left: 12px; font-family: var(--ff-mono); font-size: 0.66rem; color: var(--gold-deep); background: rgba(255,255,255,.92); border: 1px solid var(--line); padding: 4px 8px; border-radius: 4px; letter-spacing: 0.08em; backdrop-filter: blur(4px); }
.cat-card__body { padding: 22px; display: flex; flex-direction: column; flex: 1; }
.cat-card .ic { width: 38px; height: 38px; color: var(--gold-deep); margin-bottom: 12px; }
.cat-card .ic svg { width: 100%; height: 100%; }
.cat-card h3 { color: var(--ink); }
.cat-card .tl { color: var(--mute); font-size: 0.9rem; margin-top: 6px; font-family: var(--ff-mono); }
.cat-card .go { margin-top: 18px; display: inline-flex; align-items: center; gap: 8px; font-family: var(--ff-mono); font-size: 0.76rem; text-transform: uppercase; letter-spacing: .06em; color: var(--ink); font-weight: 600; }
.cat-card .go .arw { color: var(--gold-deep); transition: transform .3s var(--ease); }
.cat-card:hover .go .arw { transform: translateX(6px); }
.cat-card--wide { grid-column: span 1; }

/* ---------- Categorías Principales (mosaico + emblema, estilo genpar) ---------- */
.maincat-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 16px; }
.mc-tile { position: relative; overflow: hidden; border-radius: var(--radius-lg); min-height: 246px; display: block; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm); transition: box-shadow .4s var(--ease), transform .4s var(--ease); }
.mc-tile:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.mc-tile--big { grid-row: 1 / span 2; min-height: 508px; }
.mc-bg { position: absolute; inset: 0; z-index: 0; }
.mc-bg img { width: 100%; height: 100%; object-fit: cover; object-position: center; transition: transform .8s var(--ease); }
.mc-tile:hover .mc-bg img { transform: scale(1.07); }
.mc-tile::after { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(255,255,255,.96) 0%, rgba(255,255,255,.80) 22%, rgba(255,255,255,0) 46%); }
.mc-top { position: absolute; top: 20px; left: 22px; right: 22px; z-index: 3; }
.mc-idx { font-family: var(--ff-mono); font-size: 0.68rem; color: var(--gold-deep); letter-spacing: 0.1em; }
.mc-name { display: block; font-family: var(--ff-display); font-size: 1.18rem; font-weight: 700; color: var(--ink); margin-top: 4px; letter-spacing: -0.01em; }
.mc-tile--big .mc-name { font-size: 1.6rem; }
.mc-more { display: inline-flex; align-items: center; gap: 7px; margin-top: 8px; font-family: var(--ff-mono); font-size: 0.72rem; letter-spacing: 0.06em; color: var(--mute); text-transform: uppercase; }
.mc-more .arw { color: var(--gold-deep); transition: transform .3s var(--ease); }
.mc-tile:hover .mc-more .arw { transform: translateX(5px); }
.mc-emblem { position: absolute; right: 16px; bottom: 16px; width: 92px; height: 92px; z-index: 2; transition: transform .5s var(--ease); }
.mc-tile--big .mc-emblem { width: 124px; height: 124px; right: 22px; bottom: 22px; }
.mc-tile:hover .mc-emblem { transform: scale(1.06); }
.mc-ring { width: 100%; height: 100%; overflow: visible; }
.mc-ring circle { fill: rgba(255,255,255,.62); stroke: rgba(19,32,49,.55); stroke-width: 1.3; }
.mc-arc-text { fill: var(--ink); font-family: var(--ff-mono); font-size: 10px; letter-spacing: 1.6px; font-weight: 600; }
.mc-tile--big .mc-arc-text { font-size: 11.5px; letter-spacing: 2.4px; }
.mc-ic { position: absolute; top: 43%; left: 50%; transform: translate(-50%, -50%); width: 38px; height: 38px; color: var(--gold-deep); }
.mc-ic svg { width: 100%; height: 100%; }
.mc-tile--big .mc-ic { width: 54px; height: 54px; }
@media (max-width: 860px) {
  .maincat-grid { grid-template-columns: 1fr 1fr; grid-template-rows: auto; }
  .mc-tile--big { grid-column: span 2; grid-row: auto; min-height: 280px; }
  .mc-tile--big .mc-emblem { width: 128px; height: 128px; bottom: 22px; }
  .mc-tile--big .mc-name { font-size: 1.25rem; }
  .mc-tile--big .mc-ic { width: 40px; height: 40px; }
  .mc-tile--big .mc-arc-text { font-size: 10px; letter-spacing: 1.6px; }
}
@media (max-width: 560px) {
  .maincat-grid { grid-template-columns: 1fr; }
  .mc-tile--big { grid-column: span 1; grid-row: auto; min-height: 240px; }
  .mc-tile { min-height: 230px; }
}

/* ---------- Marcas ---------- */
.brands-head { display: flex; align-items: baseline; gap: 16px; margin-bottom: 24px; flex-wrap: wrap; }
.brands-head p { color: var(--mute); font-size: 0.98rem; }
.brands-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.brand-logo { flex: 1 1 110px; max-width: 175px; display: flex; align-items: center; justify-content: center; padding: 8px 10px; }
.brand-logo img { max-height: 44px; width: auto; max-width: 100%; object-fit: contain; filter: grayscale(1); opacity: .58; transition: filter .3s var(--ease), opacity .3s var(--ease); }
.brand-logo img:hover { filter: none; opacity: 1; }

/* ---------- Proyectos ---------- */
.proj-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; grid-auto-rows: 200px; }
.proj-grid--preview { grid-auto-rows: 215px; }
.proj-item { position: relative; overflow: hidden; border-radius: var(--radius-lg); border: 1px solid var(--line); box-shadow: var(--shadow-sm); display: block; }
.proj-item img { width: 100%; height: 100%; object-fit: cover; object-position: center; transition: transform .6s var(--ease); }
.proj-item:hover img { transform: scale(1.06); }
.proj-item::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(10,15,22,.4)); opacity: 0; transition: opacity .3s; }
.proj-item:hover::after { opacity: 1; }
.proj-item--big { grid-column: span 2; grid-row: span 2; }
@media (max-width: 860px) { .proj-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 180px; } .proj-item--big { grid-column: span 2; grid-row: span 1; } }
@media (max-width: 560px) { .proj-grid { grid-template-columns: 1fr 1fr; grid-auto-rows: 130px; } .proj-item--big { grid-column: span 2; } }

/* ---------- Ficha técnica ---------- */
.ficha-card { position: relative; display: block; border: 1px solid var(--line-2); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); background: #fff; margin-top: 10px; }
.ficha-card img { width: 100%; height: auto; display: block; }
.ficha-overlay { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; background: rgba(19,26,36,.5); color: #fff; opacity: 0; transition: opacity .3s var(--ease); font-family: var(--ff-mono); font-size: .78rem; letter-spacing: .05em; text-transform: uppercase; }
.ficha-overlay .fi { width: 46px; height: 46px; border: 1px solid rgba(255,255,255,.75); border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.ficha-overlay .fi svg { width: 22px; height: 22px; }
.ficha-card:hover .ficha-overlay { opacity: 1; }

/* ---------- Marcas: carrusel automático ---------- */
.brands-head.center, .container.center { text-align: center; }
.brands-marquee { overflow: hidden; margin-top: 30px; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.brands-track { display: flex; align-items: center; gap: 68px; width: max-content; animation: brandscroll 30s linear infinite; padding: 6px 34px; }
.brands-marquee:hover .brands-track { animation-play-state: paused; }
.brands-track .brand-logo { flex: 0 0 auto; padding: 0; max-width: none; }
.brands-track .brand-logo img { max-height: 58px; width: auto; filter: grayscale(1); opacity: .62; transition: filter .3s var(--ease), opacity .3s var(--ease); }
.brands-track .brand-logo img:hover { filter: none; opacity: 1; }
@keyframes brandscroll { from { transform: translateX(0); } to { transform: translateX(-33.333%); } }
@media (prefers-reduced-motion: reduce) { .brands-track { animation: none; } }
@media (max-width: 620px) { .brands-track { gap: 44px; } .brands-track .brand-logo img { max-height: 46px; } }

/* ---------- Placeholder producto sin imagen ---------- */
.noimg { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; background: repeating-linear-gradient(45deg, #f3f5f8, #f3f5f8 14px, #eef1f4 14px, #eef1f4 28px); color: var(--mute-2); }
.noimg-ic { width: 46px; height: 46px; color: var(--line-3); }
.noimg-ic svg { width: 100%; height: 100%; }
.noimg-t { font-family: var(--ff-mono); font-size: 0.72rem; letter-spacing: .06em; text-transform: uppercase; }
.pd-media.is-noimg { display: block; }

/* ---------- Modal ficha técnica ---------- */
.ficha-modal { position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center; padding: 20px; background: rgba(10,15,22,.78); backdrop-filter: blur(4px); animation: fadeIn .2s var(--ease); }
.ficha-modal[hidden] { display: none; }
.ficha-modal__box { position: relative; background: #fff; border-radius: 12px; max-width: 760px; width: 100%; max-height: 92vh; display: flex; flex-direction: column; overflow: hidden; box-shadow: var(--shadow-lg); }
.ficha-modal__scroll { overflow: auto; padding: 10px; }
.ficha-modal__scroll img { width: 100%; height: auto; display: block; border-radius: 6px; }
.ficha-modal__close { position: absolute; top: 12px; right: 12px; z-index: 2; width: 42px; height: 42px; border-radius: 50%; background: rgba(255,255,255,.92); border: 1px solid var(--line-2); display: flex; align-items: center; justify-content: center; color: var(--ink); box-shadow: var(--shadow-sm); }
.ficha-modal__close:hover { background: #fff; color: var(--gold-deep); }
.ficha-modal__close svg { width: 20px; height: 20px; }
.ficha-modal__dl { margin: 0 12px 12px; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* ---------- Product cards ---------- */
.prod-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.prod-grid--3 { grid-template-columns: repeat(3, 1fr); }
.prod-card { border: 1px solid var(--line); border-radius: var(--radius-lg); background: #fff; overflow: hidden; display: flex; flex-direction: column; position: relative; transition: border-color .3s var(--ease), transform .3s var(--ease), box-shadow .3s var(--ease); box-shadow: var(--shadow-sm); }
.prod-card:hover { border-color: var(--line-2); transform: translateY(-5px); box-shadow: var(--shadow); }
.prod-card__media { position: relative; aspect-ratio: 1 / 1; background: #f2f4f7; overflow: hidden; }
.prod-card__media img { width: 100%; height: 100%; object-fit: cover; object-position: center; transition: transform .6s var(--ease); }
.prod-card:hover .prod-card__media img { transform: scale(1.05); }
.prod-card__tag { position: absolute; top: 12px; left: 12px; z-index: 2; font-family: var(--ff-mono); font-size: 0.6rem; letter-spacing: 0.09em; text-transform: uppercase; color: var(--gold-deep); background: rgba(255,255,255,.92); border: 1px solid var(--line); padding: 5px 9px; border-radius: 4px; backdrop-filter: blur(6px); font-weight: 600; }
.prod-card__star { position: absolute; top: 11px; right: 11px; z-index: 2; width: 26px; height: 26px; color: var(--gold); background: rgba(255,255,255,.9); border-radius: 50%; padding: 4px; }
.prod-card__body { padding: 18px; display: flex; flex-direction: column; flex: 1; }
.prod-card__body h3 { font-size: 1.02rem; color: var(--ink); line-height: 1.22; }
.prod-card__body p { font-size: 0.86rem; color: var(--mute); margin-top: 8px; flex: 1; }
.prod-card__foot { margin-top: 15px; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-top: 14px; border-top: 1px solid var(--line); }
.prod-card__foot .view { font-family: var(--ff-mono); font-size: 0.72rem; text-transform: uppercase; letter-spacing: .05em; color: var(--ink); font-weight: 600; display: inline-flex; align-items: center; gap: 7px; }
.prod-card__foot .view .arw { color: var(--gold-deep); transition: transform .3s var(--ease); }
.prod-card:hover .prod-card__foot .view .arw { transform: translateX(5px); }
.prod-card__wa { width: 38px; height: 38px; border-radius: 50%; background: #eafaf0; border: 1px solid #b6e6c8; display: inline-flex; align-items: center; justify-content: center; color: #1faa53; transition: all .25s var(--ease); flex-shrink: 0; }
.prod-card__wa:hover { background: #25d366; color: #fff; }
.prod-card__wa svg { width: 19px; height: 19px; }
.prod-card__link { position: absolute; inset: 0; z-index: 1; }

/* ---------- Split feature ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 5vw, 66px); align-items: center; }
.split__media { position: relative; border-radius: var(--radius-xl); overflow: hidden; border: 1px solid var(--line); aspect-ratio: 16 / 11; box-shadow: var(--shadow); }
.split__media img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.split ul.feat { margin-top: 24px; display: grid; gap: 13px; }
.split ul.feat li { display: flex; gap: 13px; align-items: flex-start; color: var(--ink-2); }
.split ul.feat li svg { width: 22px; height: 22px; color: #fff; background: var(--gold); border-radius: 50%; padding: 4px; flex-shrink: 0; margin-top: 2px; }

/* ---------- Stats band ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.stats .stat { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 30px 26px; box-shadow: var(--shadow-sm); }
.stats .stat .n { font-family: var(--ff-display); font-size: clamp(2rem, 3.6vw, 2.9rem); color: var(--ink); letter-spacing: -0.03em; line-height: 1; }
.stats .stat .n .u { color: var(--gold-deep); }
.stats .stat .l { color: var(--mute); font-size: 0.88rem; margin-top: 10px; }

/* ---------- CTA band ---------- */
.cta-band { position: relative; overflow: hidden; border-radius: var(--radius-xl); background: linear-gradient(135deg, var(--navy), var(--navy-2)); padding: clamp(40px, 6vw, 74px); text-align: center; box-shadow: var(--shadow-lg); }
.cta-band h2 { color: #fff; max-width: 18ch; margin-inline: auto; }
.cta-band .eyebrow { color: var(--gold-lite); }
.cta-band p { color: #c3ccd6; margin-top: 15px; max-width: 52ch; margin-inline: auto; }
.cta-band .hero-cta { justify-content: center; margin-top: 30px; display: flex; gap: 13px; flex-wrap: wrap; }
.cta-band .glow { position: absolute; width: 420px; height: 420px; background: radial-gradient(circle, rgba(245,179,1,.22), transparent 65%); top: -160px; left: 50%; transform: translateX(-50%); filter: blur(20px); }

.hero-cta { display: flex; gap: 13px; flex-wrap: wrap; }

/* ---------- Breadcrumb ---------- */
.crumbs { display: flex; flex-wrap: wrap; gap: 9px; align-items: center; font-family: var(--ff-mono); font-size: 0.74rem; color: var(--mute-2); letter-spacing: .03em; }
.crumbs a { color: var(--mute); transition: color .2s; }
.crumbs a:hover { color: var(--gold-deep); }
.crumbs .sep { color: var(--line-3); }

/* ---------- Page hero (interior) ---------- */
.page-hero { padding-top: 44px; padding-bottom: 40px; position: relative; background: var(--bg-2); border-bottom: 1px solid var(--line); }
.page-hero h1 { font-size: clamp(2rem, 4.4vw, 3.4rem); margin-top: 18px; }
.page-hero .lead { margin-top: 16px; max-width: 62ch; }

/* ---------- Catalog / filters ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 30px; }
.filter-btn { font-family: var(--ff-mono); font-size: 0.78rem; letter-spacing: 0.03em; text-transform: uppercase; padding: 10px 18px; border-radius: 40px; border: 1px solid var(--line-2); color: var(--mute); background: #fff; transition: all .25s var(--ease); }
.filter-btn:hover { color: var(--ink); border-color: var(--line-3); }
.filter-btn.active { background: var(--gold); color: #1a1300; border-color: var(--gold); font-weight: 600; }
.catalog-count { font-family: var(--ff-mono); font-size: 0.78rem; color: var(--mute-2); margin-bottom: 20px; letter-spacing: .03em; }

/* ---------- Product detail ---------- */
.pd-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 4vw, 56px); align-items: start; }
.pd-media { position: relative; border-radius: var(--radius-xl); overflow: hidden; border: 1px solid var(--line); background: #f2f4f7; aspect-ratio: 1/1; position: sticky; top: calc(var(--header-h) + 20px); box-shadow: var(--shadow); }
.pd-media img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.pd-cat { font-family: var(--ff-mono); font-size: 0.74rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gold-deep); font-weight: 600; }
.pd-info h1 { font-size: clamp(1.8rem, 3.5vw, 2.7rem); margin-top: 12px; }
.pd-info .pd-short { font-size: 1.1rem; color: var(--ink-2); margin-top: 16px; }
.pd-info .pd-long { color: var(--mute); margin-top: 14px; }
.pd-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.spec-table { margin-top: 32px; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.spec-table .row { display: grid; grid-template-columns: 40% 60%; border-bottom: 1px solid var(--line); }
.spec-table .row:last-child { border-bottom: 0; }
.spec-table .row:nth-child(odd) { background: var(--bg-2); }
.spec-table .k { padding: 14px 18px; font-family: var(--ff-mono); font-size: 0.76rem; letter-spacing: .02em; color: var(--mute); text-transform: uppercase; }
.spec-table .v { padding: 14px 18px; color: var(--ink); font-weight: 600; border-left: 1px solid var(--line); }
.apps-list { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 18px; }
.apps-list li { font-family: var(--ff-mono); font-size: 0.76rem; color: var(--ink-2); background: var(--bg-2); border: 1px solid var(--line); padding: 7px 13px; border-radius: 40px; }
.apps-list li::before { content: "▸ "; color: var(--gold-deep); }
.pd-note { margin-top: 20px; font-size: 0.85rem; color: var(--mute); display: flex; gap: 9px; align-items: center; background: var(--gold-soft); border: 1px solid #f0dca0; padding: 12px 14px; border-radius: 8px; }
.pd-note svg { width: 17px; height: 17px; color: var(--gold-deep); flex-shrink: 0; }
.block-title { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.block-title h2, .block-title h3 { font-size: 1.1rem; }
.block-title .bar { width: 22px; height: 3px; background: var(--gold); border-radius: 2px; }

/* ---------- Blog ---------- */
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.post-card { border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; background: #fff; display: flex; flex-direction: column; position: relative; transition: border-color .3s var(--ease), transform .3s var(--ease), box-shadow .3s var(--ease); box-shadow: var(--shadow-sm); }
.post-card:hover { border-color: var(--line-2); transform: translateY(-5px); box-shadow: var(--shadow); }
.post-card__media { aspect-ratio: 16/10; overflow: hidden; background: #f2f4f7; }
.post-card__media img { width: 100%; height: 100%; object-fit: cover; object-position: center; transition: transform .6s var(--ease); }
.post-card:hover .post-card__media img { transform: scale(1.05); }
.post-card__body { padding: 22px; display: flex; flex-direction: column; flex: 1; }
.post-meta { font-family: var(--ff-mono); font-size: 0.68rem; letter-spacing: .05em; text-transform: uppercase; color: var(--mute-2); display: flex; gap: 12px; flex-wrap: wrap; }
.post-meta .cat { color: var(--gold-deep); }
.post-card__body h3 { margin-top: 11px; font-size: 1.12rem; line-height: 1.25; }
.post-card__body p { color: var(--mute); font-size: 0.89rem; margin-top: 10px; flex: 1; }
.post-card__foot { margin-top: 15px; }
.post-card__link { position: absolute; inset: 0; z-index: 1; }
.post-card--feat { grid-column: span 3; display: grid; grid-template-columns: 1.1fr 1fr; }
.post-card--feat .post-card__media { aspect-ratio: auto; }
@media (max-width: 860px) { .post-card--feat { grid-template-columns: 1fr; } .post-card--feat .post-card__media { aspect-ratio: 16/10; } }

/* ---------- Article ---------- */
.article { max-width: 760px; margin-inline: auto; }
.article-hero { max-width: 820px; margin-inline: auto; text-align: center; }
.article-hero h1 { font-size: clamp(2rem, 4.4vw, 3.2rem); margin-top: 16px; }
.article-hero .post-meta { justify-content: center; margin-top: 18px; }
.article-cover { max-width: 980px; margin: clamp(28px,5vw,48px) auto; border-radius: var(--radius-xl); overflow: hidden; border: 1px solid var(--line); aspect-ratio: 16/8; box-shadow: var(--shadow); }
.article-cover img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.article-body { font-size: 1.11rem; color: var(--ink-2); }
.article-body > * + * { margin-top: 1.3em; }
.article-body h2 { font-size: clamp(1.4rem, 2.6vw, 1.85rem); margin-top: 1.7em; color: var(--ink); }
.article-body h3 { font-size: 1.22rem; margin-top: 1.4em; color: var(--ink); }
.article-body a { color: var(--gold-deep); text-decoration: underline; text-underline-offset: 3px; }
.article-body ul, .article-body ol { padding-left: 1.3em; display: grid; gap: 0.55em; }
.article-body ul li { list-style: none; position: relative; padding-left: 1.4em; }
.article-body ul li::before { content: "▸"; position: absolute; left: 0; color: var(--gold-deep); }
.article-body ol { list-style: decimal; }
.article-body ol li::marker { color: var(--gold-deep); font-family: var(--ff-mono); }
.article-cta { margin-top: 38px; padding: 28px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--bg-2); display: flex; gap: 20px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.article-cta p { font-family: var(--ff-display); font-size: 1.14rem; color: var(--ink); }

/* ---------- About ---------- */
.value-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.value-card { border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 30px; background: #fff; box-shadow: var(--shadow-sm); transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.value-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.value-card .ic { width: 46px; height: 46px; border-radius: 11px; background: var(--gold-soft); border: 1px solid #f0dca0; display: flex; align-items: center; justify-content: center; color: var(--gold-deep); margin-bottom: 18px; }
.value-card .ic svg { width: 23px; height: 23px; }
.value-card h3 { font-size: 1.12rem; }
.value-card p { color: var(--mute); margin-top: 10px; font-size: 0.95rem; }
.mv-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.mv-card { border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(28px,4vw,42px); background: #fff; position: relative; overflow: hidden; box-shadow: var(--shadow-sm); }
.mv-card .big { font-family: var(--ff-display); font-size: 4.5rem; color: var(--bg-3); position: absolute; top: -6px; right: 18px; }
.mv-card .big svg { width: 60px; height: 60px; color: var(--bg-3); }
.mv-card h3 { font-size: 1.35rem; }
.mv-card p { color: var(--mute); margin-top: 12px; }
.team-gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.team-gallery figure { margin: 0; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); aspect-ratio: 3 / 4; box-shadow: var(--shadow-sm); }
.team-gallery img { width: 100%; height: 100%; object-fit: cover; object-position: center top; transition: transform .6s var(--ease); }
.team-gallery figure:hover img { transform: scale(1.05); }
@media (max-width: 620px) { .team-gallery { grid-template-columns: 1fr; max-width: 360px; margin-inline: auto; } }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px,4vw,54px); align-items: start; }
.contact-info .ci-row { display: flex; gap: 16px; padding: 20px 0; border-bottom: 1px solid var(--line); align-items: flex-start; }
.contact-info .ci-row:first-child { padding-top: 0; }
.contact-info .ic { width: 44px; height: 44px; border-radius: 11px; background: var(--gold-soft); border: 1px solid #f0dca0; display: flex; align-items: center; justify-content: center; color: var(--gold-deep); flex-shrink: 0; }
.contact-info .ic svg { width: 20px; height: 20px; }
.contact-info .lbl { font-family: var(--ff-mono); font-size: 0.7rem; text-transform: uppercase; letter-spacing: .09em; color: var(--mute-2); }
.contact-info .val { color: var(--ink); margin-top: 4px; font-size: 1rem; }
.contact-info .val a:hover { color: var(--gold-deep); }
.contact-card { border: 1px solid var(--line); border-radius: var(--radius-xl); padding: clamp(28px,4vw,40px); background: #fff; box-shadow: var(--shadow); }
.form-row { margin-bottom: 18px; }
.form-row label { display: block; font-family: var(--ff-mono); font-size: 0.72rem; text-transform: uppercase; letter-spacing: .07em; color: var(--mute); margin-bottom: 8px; }
.form-row input, .form-row textarea, .form-row select { width: 100%; background: #fff; border: 1px solid var(--line-2); border-radius: 8px; padding: 13px 15px; color: var(--ink); transition: border-color .25s var(--ease); }
.form-row input:focus, .form-row textarea:focus, .form-row select:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(245,179,1,.15); }
.form-row textarea { resize: vertical; min-height: 130px; }
.map-embed { border-radius: var(--radius-xl); overflow: hidden; border: 1px solid var(--line); margin-top: 38px; box-shadow: var(--shadow-sm); }
.map-embed iframe { width: 100%; height: 380px; border: 0; display: block; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: #aeb8c4; padding-top: clamp(50px, 7vw, 82px); }
.footer-top { display: grid; grid-template-columns: 1.7fr 1.1fr 1fr 1.25fr; gap: 30px 44px; padding-bottom: 46px; border-bottom: 1px solid rgba(255,255,255,.09); align-items: start; }
.footer-brand { display: flex; flex-direction: column; align-items: flex-start; }
.footer-brand img { height: 72px; width: auto; margin-bottom: 20px; }
.footer-brand p { color: #97a2af; max-width: 32ch; font-size: 0.95rem; line-height: 1.55; }
.footer-info { display: grid; gap: 12px; margin-top: 22px; }
.footer-info li { display: flex; align-items: flex-start; gap: 10px; color: #9aa5b2; font-size: 0.9rem; line-height: 1.5; }
.footer-info a { color: #9aa5b2; transition: color .2s; }
.footer-info a:hover { color: var(--gold); }
.fi-ic { flex: 0 0 auto; margin-top: 1px; color: var(--gold); display: inline-flex; }
.fi-ic svg { width: 16px; height: 16px; }
.footer-social { display: flex; gap: 10px; margin-top: 24px; }
.footer-social a { width: 42px; height: 42px; border: 1px solid rgba(255,255,255,.16); border-radius: 10px; display: flex; align-items: center; justify-content: center; color: #aeb8c4; transition: all .25s var(--ease); }
.footer-social a:hover { color: #1a1300; background: var(--gold); border-color: var(--gold); transform: translateY(-2px); }
.footer-social a svg { width: 19px; height: 19px; }
.footer-col h4 { font-family: var(--ff-mono); font-size: 0.74rem; text-transform: uppercase; letter-spacing: .1em; color: #6f7b89; font-weight: 600; margin-bottom: 18px; }
.footer-col ul { display: grid; gap: 12px; }
.footer-col a { color: #b6bfca; font-size: 0.94rem; transition: color .2s; }
.footer-col a:hover { color: var(--gold); }
.footer-col .muted { color: #8a94a1; font-size: 0.9rem; }
.footer-contact li { display: flex; align-items: center; gap: 10px; }
.footer-col .footer-cta { display: inline-flex; align-items: center; gap: 9px; margin-top: 22px; padding: 11px 18px; border-radius: 10px; background: var(--gold); color: #1a1300; font-weight: 700; font-size: 0.9rem; transition: all .22s var(--ease); }
.footer-col .footer-cta span { color: #1a1300; }
.footer-col .footer-cta:hover { color: #1a1300; background: var(--gold-lite); transform: translateY(-2px); box-shadow: 0 8px 22px rgba(245,179,1,.28); }
.footer-col .footer-cta svg { width: 18px; height: 18px; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding-block: 26px; flex-wrap: wrap; }
.footer-bottom p { font-size: 0.82rem; color: #6f7b89; }
.footer-bottom .disc { max-width: 60ch; }
.footer-bottom .disc a { color: var(--gold); font-weight: 600; transition: color .2s; }
.footer-bottom .disc a:hover { color: var(--gold-lite); text-decoration: underline; }
.footer-legal { color: #8a94a1; margin-left: 8px; transition: color .2s; }
.footer-legal:hover { color: var(--gold); }
.legal-doc { max-width: 780px; }
.legal-doc h2 { font-size: 1.18rem; margin-top: 34px; margin-bottom: 10px; color: var(--ink); }
.legal-doc h2:first-child { margin-top: 0; }
.legal-doc p, .legal-doc li { color: var(--mute); line-height: 1.7; }
.legal-doc ul { margin: 10px 0 0; padding-left: 20px; display: grid; gap: 8px; list-style: disc; }
.legal-doc a { color: var(--gold-deep); text-decoration: underline; }
.byline { text-align: center; margin-top: 12px; font-size: 0.9rem; color: var(--mute); }
.byline a { color: var(--gold-deep); font-weight: 600; }
.byline a:hover { text-decoration: underline; }
.article-related-cat { margin-top: 34px; padding: 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--soft); }
.arc-eye { font-family: var(--ff-mono); font-size: 0.7rem; text-transform: uppercase; letter-spacing: .1em; color: var(--mute); }
.arc-link { display: flex; align-items: center; gap: 14px; margin-top: 10px; color: var(--ink); transition: color .2s; }
.arc-link:hover { color: var(--gold-deep); }
.arc-link > svg:first-child { width: 30px; height: 30px; color: var(--gold-deep); flex: 0 0 auto; }
.arc-link span { display: grid; gap: 2px; flex: 1; }
.arc-link strong { font-size: 1.02rem; }
.arc-link em { font-style: normal; font-size: 0.86rem; color: var(--mute); }
.arc-link > svg:last-child { width: 18px; height: 18px; flex: 0 0 auto; }

/* ---------- Floating widgets ---------- */
.fab-wa { position: fixed; right: 22px; bottom: 22px; z-index: 90; width: 58px; height: 58px; border-radius: 50%; background: #25d366; color: #fff; display: flex; align-items: center; justify-content: center; box-shadow: 0 12px 30px -8px rgba(37,211,102,.55); transition: transform .3s var(--ease); }
.fab-wa::before { content: ""; position: absolute; inset: 0; border-radius: 50%; background: #25d366; z-index: -1; animation: fabpulse 2.6s infinite; }
@keyframes fabpulse { 0% { transform: scale(1); opacity: .5; } 70% { transform: scale(1.5); opacity: 0; } 100% { opacity: 0; } }
.fab-wa:hover { transform: scale(1.08); }
.fab-wa svg { width: 30px; height: 30px; }
.fab-wa .tip { position: absolute; right: 70px; background: #fff; color: var(--ink); border: 1px solid var(--line); padding: 9px 14px; border-radius: 8px; font-size: 0.82rem; white-space: nowrap; opacity: 0; transform: translateX(8px); pointer-events: none; transition: all .25s var(--ease); font-family: var(--ff-body); box-shadow: var(--shadow); }
.fab-wa:hover .tip { opacity: 1; transform: translateX(0); }
@media (prefers-reduced-motion: reduce) { .fab-wa::before { animation: none; } }

.back-top { position: fixed; left: 22px; bottom: 22px; z-index: 90; width: 50px; height: 50px; border-radius: 50%; background: #fff; border: 1px solid var(--line-2); color: var(--ink); display: flex; align-items: center; justify-content: center; opacity: 0; visibility: hidden; transform: translateY(12px); transition: all .35s var(--ease); box-shadow: var(--shadow); }
.back-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.back-top:hover { border-color: var(--gold); color: var(--gold-deep); }
.back-top svg { width: 20px; height: 20px; }

/* ---------- Marquee ---------- */
.marquee { border-block: 1px solid var(--line); background: #fff; overflow: hidden; padding-block: 16px; }
.marquee-track { display: flex; gap: 40px; width: max-content; animation: marquee 34s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-item { font-family: var(--ff-display); font-size: 1.05rem; color: var(--mute); display: inline-flex; align-items: center; gap: 40px; white-space: nowrap; font-weight: 500; }
.marquee-item span { color: var(--ink); }
.marquee-item::after { content: "✦"; color: var(--gold); font-size: .8rem; }
@keyframes marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee-track { animation: none; } }

/* ---------- Reveal ---------- */
[data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease-out), transform .7s var(--ease-out); will-change: opacity, transform; }
[data-reveal].in { opacity: 1; transform: none; }
[data-reveal-stagger] > * { opacity: 0; transform: translateY(22px); transition: opacity .6s var(--ease-out), transform .6s var(--ease-out); }
[data-reveal-stagger].in > * { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { [data-reveal], [data-reveal-stagger] > * { opacity: 1 !important; transform: none !important; transition: none !important; } }

/* ---------- Utilities ---------- */
.center { text-align: center; }
.mx-auto { margin-inline: auto; }
.ticked { position: relative; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1080px) {
  .prod-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 34px; }
  .footer-brand { grid-column: span 2; }
}
@media (max-width: 940px) {
  .topbar { display: none; }
  .nav-links, .nav-actions .lang-desktop { display: none; }
  .nav-toggle { display: flex; }
  .topbar-left .hide-sm { display: none; }
  /* Logo más grande en móvil; el header no encoge (lo hace la barra de info al desplazarse) */
  .nav { height: 68px; }
  .site-header.scrolled .nav { height: 68px; }
  .brand img { height: 50px; }
  .site-header.scrolled .brand img { height: 50px; }
  /* Barra de info superior (móvil) */
  .m-topinfo { display: block; background: var(--navy); color: #b6bfca; padding: 9px var(--gutter) 10px; font-size: 0.8rem; }
  .m-topinfo .mti-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
  .m-topinfo .mti-loc { display: inline-flex; align-items: center; gap: 7px; color: #c3ccd6; min-width: 0; }
  .m-topinfo .mti-loc span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .m-topinfo .mti-loc svg { color: var(--gold); width: 15px; height: 15px; flex-shrink: 0; }
  .m-topinfo .mti-social { display: flex; gap: 15px; flex-shrink: 0; }
  .m-topinfo .mti-social a { color: #c3ccd6; transition: color .2s; }
  .m-topinfo .mti-social a:hover { color: var(--gold); }
  .m-topinfo .mti-social a svg { width: 17px; height: 17px; }
  .m-phonebar { display: flex; align-items: center; gap: 8px; background: var(--gold-soft); border-bottom: 1px solid #f0dca0; color: var(--ink); padding: 10px var(--gutter); font-size: 0.9rem; }
  .m-phonebar svg { width: 16px; height: 16px; color: var(--gold-deep); }
  .m-phonebar b { font-weight: 700; }
  .nav-mobile { display: flex; position: fixed; inset: 68px 0 0 0; z-index: 99; background: #fff; flex-direction: column; padding: 24px var(--gutter) 40px; gap: 2px; transform: translateX(100%); transition: transform .4s var(--ease); overflow-y: auto; }
  body.nav-open .nav-mobile { transform: translateX(0); }
  body.nav-open { overflow: hidden; }
  .nav-mobile > a, .nav-mobile .m-cat-toggle { font-family: var(--ff-display); font-size: 1.4rem; color: var(--ink); padding: 16px 0; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; width: 100%; }
  .nav-mobile > a .arw, .m-cat-toggle .chev { color: var(--gold-deep); }
  .m-cat-panel { max-height: 0; overflow: hidden; transition: max-height .35s var(--ease); }
  .m-cat-panel.open { max-height: 500px; }
  .m-cat-panel a { display: flex; align-items: center; gap: 12px; padding: 13px 0 13px 12px; color: var(--ink-2); font-size: 1.02rem; border-bottom: 1px solid var(--line); }
  .m-cat-panel a svg { width: 20px; height: 20px; color: var(--gold-deep); }
  .nav-mobile-cta { margin-top: 22px; display: grid; gap: 12px; }
  .split, .pd-grid, .contact-grid { grid-template-columns: 1fr; }
  .pd-media { position: relative; top: 0; max-width: 520px; }
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .cat-card--wide { grid-column: span 2; }
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .value-grid { grid-template-columns: 1fr 1fr; }
  .cat-strip .inner { display: flex; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .cat-strip .inner::-webkit-scrollbar { display: none; }
  .cat-strip a { flex: 0 0 33%; }
}
@media (max-width: 620px) { .cat-strip a { flex: 0 0 46%; } }
@media (max-width: 620px) {
  :root { --gutter: 18px; }
  .prod-grid, .prod-grid--3 { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .cat-grid { grid-template-columns: 1fr; }
  .cat-card--wide { grid-column: span 1; }
  .blog-grid { grid-template-columns: 1fr; }
  .value-grid, .mv-grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .cat-strip a { border-bottom: 0; }
  .footer-top { grid-template-columns: 1fr; }
  .footer-brand { grid-column: span 1; }
  .article-body { font-size: 1.04rem; }
  .prod-card__body { padding: 14px; }
  .prod-card__body h3 { font-size: 0.94rem; }
  .prod-card__foot .view span:not(.arw) { display: none; }
  .topbar-left .hide-xs { display: none; }
  .section-head--split { align-items: flex-start; }
  .fab-wa { width: 54px; height: 54px; right: 16px; bottom: 16px; }
  .back-top { width: 46px; height: 46px; left: 16px; bottom: 16px; }
  .btn { padding: 13px 20px; }
  .slide__content { max-width: 100%; }
}
@media (max-width: 400px) {
  .prod-grid, .prod-grid--3 { grid-template-columns: 1fr; }
}
