/* ============================================================================
   REYCORSA — Sistema de diseño
   Paleta de marca: verde bosque + dorado (tomados del logotipo)
   ========================================================================== */

/* ---------------------------------------------------------------- 1. TOKENS */
/* Paleta derivada del logotipo: verde bosque + dorado.
   Reparto de papeles:
     · VERDE  → estructura, superficies oscuras, estados activos sólidos.
     · DORADO → acentos, antetítulos, iconografía y llamada a la acción principal. */
:root {
  /* Marca */
  --green-900: #0A2E20;
  --green-800: #0E3A2A;
  --green-700: #14523A;   /* verde exacto del logo */
  --green-500: #1E6B4C;
  --brand-500: #9A6F24;   /* dorado profundo: acentos y texto sobre fondo claro */
  --brand-400: #D2AC6B;   /* dorado exacto del logo: acentos sobre fondo oscuro */
  --brand-600: #7C5718;
  --brand-glow: rgba(210, 172, 107, .38);
  --blueprint: #5FA98A;   /* verde salvia para los esquemas técnicos */
  --steel:     #8FA39A;

  /* Colores del logotipo en línea (se invierten en superficies oscuras) */
  --logo-main:   #14523A;
  --logo-accent: #D2AC6B;

  /* Superficies (modo claro por defecto) */
  --bg:        #FFFFFF;
  --bg-alt:    #F4F7F5;
  --bg-deep:   #0A2E20;
  --surface:   #FFFFFF;
  --surface-2: #F7FAF8;
  --line:      #E1E8E4;
  --line-soft: #EDF2EF;

  /* Texto */
  --ink:       #0C1A14;
  --ink-2:     #3A4A42;
  --ink-3:     #66776E;
  --ink-on-dark:   #F1F6F2;
  --ink-on-dark-2: #A9BCB1;

  /* Tipografía */
  --font-display: 'Space Grotesk', 'Segoe UI', system-ui, sans-serif;
  --font-body:    'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;

  /* Escala fluida */
  --step--1: clamp(.8rem, .77rem + .13vw, .875rem);
  --step-0:  clamp(.95rem, .91rem + .2vw, 1.05rem);
  --step-1:  clamp(1.1rem, 1.02rem + .4vw, 1.35rem);
  --step-2:  clamp(1.35rem, 1.16rem + .9vw, 1.9rem);
  --step-3:  clamp(1.7rem, 1.3rem + 1.9vw, 2.7rem);
  --step-4:  clamp(2.1rem, 1.4rem + 3.3vw, 4rem);
  --step-5:  clamp(2.5rem, 1.4rem + 5vw, 5.2rem);

  /* Espacio y forma */
  --gutter: clamp(1.1rem, 4vw, 2.5rem);
  --maxw: 1240px;
  --r-sm: 8px;
  --r:    14px;
  --r-lg: 22px;
  --r-xl: 30px;

  /* Sombras */
  --sh-1: 0 1px 2px rgba(10,46,32,.05), 0 2px 8px rgba(10,46,32,.05);
  --sh-2: 0 4px 12px rgba(10,46,32,.07), 0 14px 36px rgba(10,46,32,.08);
  --sh-3: 0 10px 24px rgba(10,46,32,.10), 0 30px 70px rgba(10,46,32,.14);
  --sh-brand: 0 10px 30px rgba(210,172,107,.32);

  --ease: cubic-bezier(.22,.61,.36,1);
  --ease-out: cubic-bezier(.16,1,.3,1);
}

/* Sobre fondo oscuro el verde del logotipo se sustituye por blanco */
.hero, .phero, .section--dark, .site-footer, .cta-band, .topbar {
  --logo-main: #FFFFFF;
}

/* Modo oscuro: por preferencia del sistema… */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg:        #08120E;
    --bg-alt:    #0B1712;
    --surface:   #101E18;
    --surface-2: #14251E;
    --line:      #1F332A;
    --line-soft: #182A22;
    --ink:       #F1F6F2;
    --ink-2:     #BFCFC5;
    --ink-3:     #86988D;
    --logo-main: #FFFFFF;
    --sh-1: 0 1px 2px rgba(0,0,0,.4);
    --sh-2: 0 4px 14px rgba(0,0,0,.45);
    --sh-3: 0 20px 60px rgba(0,0,0,.6);
  }
}
/* …y por elección explícita del usuario */
:root[data-theme="dark"] {
  --bg:        #08120E;
  --bg-alt:    #0B1712;
  --surface:   #101E18;
  --surface-2: #14251E;
  --line:      #1F332A;
  --line-soft: #182A22;
  --ink:       #F1F6F2;
  --ink-2:     #BFCFC5;
  --ink-3:     #86988D;
  --logo-main: #FFFFFF;
  --sh-1: 0 1px 2px rgba(0,0,0,.4);
  --sh-2: 0 4px 14px rgba(0,0,0,.45);
  --sh-3: 0 20px 60px rgba(0,0,0,.6);
}

/* ------------------------------------------------------------- 2. RESET/BASE */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
h1,h2,h3,h4 { font-family: var(--font-display); line-height: 1.1; letter-spacing: -.02em; margin: 0 0 .5em; font-weight: 700; }
h1 { font-size: var(--step-4); }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-1); }
p  { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
::selection { background: var(--brand-500); color: #fff; }
:focus-visible { outline: 2px solid var(--brand-500); outline-offset: 3px; border-radius: 4px; }

/* ------------------------------------------------------------- 3. UTILIDADES */
.wrap { width: min(100% - var(--gutter)*2, var(--maxw)); margin-inline: auto; }
.wrap-wide { width: min(100% - var(--gutter)*2, 1440px); margin-inline: auto; }
.section { padding: clamp(3.5rem, 8vw, 7rem) 0; position: relative; }
.section--alt { background: var(--bg-alt); }
.section--dark { background: var(--bg-deep); color: var(--ink-on-dark); }
.section--dark h2, .section--dark h3 { color: #fff; }
.center { text-align: center; }
.stack > * + * { margin-top: 1rem; }
.muted { color: var(--ink-3); }
.nowrap { white-space: nowrap; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* Eyebrow / kicker */
.eyebrow {
  display: inline-flex; align-items: center; gap: .55rem;
  font-family: var(--font-display); font-size: var(--step--1); font-weight: 600;
  letter-spacing: .16em; text-transform: uppercase; color: var(--brand-500);
  margin-bottom: 1rem;
}
.eyebrow::before {
  content: ''; width: 26px; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, var(--brand-500), transparent);
}
.section--dark .eyebrow { color: var(--brand-400); }

.lead { font-size: var(--step-1); color: var(--ink-2); line-height: 1.55; max-width: 62ch; }
.section--dark .lead { color: var(--ink-on-dark-2); }

.head { max-width: 70ch; margin-bottom: clamp(2rem, 4vw, 3.5rem); }
.head--center { margin-inline: auto; text-align: center; }
.head--center .eyebrow { justify-content: center; }
.head--center .lead { margin-inline: auto; }

/* Texto con degradado de marca */
.grad {
  background: linear-gradient(100deg, #EBD3A2 0%, var(--brand-400) 45%, #F5E3BE 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ---------------------------------------------------------------- 4. BOTONES */
.btn {
  --btn-bg: var(--brand-500);
  --btn-fg: #fff;
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  padding: .85rem 1.5rem; border-radius: 100px; border: 1px solid transparent;
  background: var(--btn-bg); color: var(--btn-fg); cursor: pointer;
  font-family: var(--font-display); font-weight: 600; font-size: var(--step-0);
  letter-spacing: -.01em; line-height: 1;
  transition: transform .35s var(--ease-out), box-shadow .35s var(--ease-out), background .25s, border-color .25s, color .25s;
  position: relative; overflow: hidden; white-space: nowrap;
}
.btn svg { width: 1.15em; height: 1.15em; flex: none; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--primary {
  background: linear-gradient(120deg, #DFBB80, var(--brand-400));
  color: var(--green-900); box-shadow: var(--sh-brand);
}
.btn--primary:hover { box-shadow: 0 14px 40px rgba(210,172,107,.45); }

.btn--wa { background: #22C55E; box-shadow: 0 10px 30px rgba(34,197,94,.3); }
.btn--wa:hover { background: #1BAF52; box-shadow: 0 14px 40px rgba(34,197,94,.42); }

.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--brand-500); color: var(--brand-500); }
.section--dark .btn--ghost, .hero .btn--ghost,
.phero .btn--ghost, .cta-band .btn--ghost { color: #fff; border-color: rgba(255,255,255,.24); }
.section--dark .btn--ghost:hover, .hero .btn--ghost:hover,
.phero .btn--ghost:hover, .cta-band .btn--ghost:hover { border-color: #fff; background: rgba(255,255,255,.08); color: #fff; }

.btn--sm { padding: .6rem 1.05rem; font-size: var(--step--1); }
.btn--lg { padding: 1.05rem 1.9rem; font-size: var(--step-1); }
.btn--block { width: 100%; }

.link-arrow {
  display: inline-flex; align-items: center; gap: .45rem;
  font-family: var(--font-display); font-weight: 600; color: var(--brand-500);
}
.link-arrow svg { width: 1em; height: 1em; transition: transform .3s var(--ease-out); }
.link-arrow:hover svg { transform: translateX(4px); }

/* ------------------------------------------------------- 5. FONDOS TÉCNICOS */
.grid-bg::before {
  content: ''; position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background-image:
    linear-gradient(to right, currentColor 1px, transparent 1px),
    linear-gradient(to bottom, currentColor 1px, transparent 1px);
  background-size: 64px 64px;
  color: var(--line);
  opacity: .55;
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 30%, transparent 75%);
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 30%, transparent 75%);
}
.section > .wrap, .section > .wrap-wide { position: relative; z-index: 1; }

.glow {
  position: absolute; border-radius: 50%; pointer-events: none;
  filter: blur(90px); opacity: .5; z-index: 0;
}

/* ---------------------------------------------------------------- 6. HEADER */
.topbar {
  background: var(--bg-deep); color: var(--ink-on-dark-2);
  font-size: var(--step--1); border-bottom: 1px solid rgba(255,255,255,.07);
}
.topbar__in { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 40px; }
.topbar__list { display: flex; gap: 1.4rem; align-items: center; flex-wrap: wrap; }
.topbar__list > span { display: inline-flex; align-items: center; gap: .45rem; white-space: nowrap; }
.topbar a { white-space: nowrap; display: inline-flex; align-items: center; gap: .45rem; transition: color .2s; }
.topbar a:hover { color: var(--brand-400); }
.topbar svg { width: 14px; height: 14px; opacity: .75; }
@media (max-width: 900px) { .topbar__hide-sm { display: none; } }

.site-header {
  position: sticky; top: 0; z-index: 90;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, box-shadow .3s, background .3s;
}
.site-header.is-stuck { border-bottom-color: var(--line); box-shadow: var(--sh-1); }
.nav { display: flex; align-items: center; gap: 1.25rem; min-height: 74px; }

/* Logo */
.logo { display: inline-flex; align-items: center; gap: .7rem; margin-right: auto; }
.logo__mark { width: 38px; height: auto; flex: none; color: var(--logo-main); }
.logo__txt { display: flex; flex-direction: column; line-height: 1; }
.logo__name {
  font-family: var(--font-display); font-weight: 700; font-size: 1.42rem;
  letter-spacing: -.035em; color: var(--ink);
}
.logo__name { letter-spacing: .06em; font-weight: 500; color: var(--logo-main); }
.logo__name b { color: inherit; font-weight: 500; }
.logo__sub {
  font-size: .6rem; letter-spacing: .42em; text-transform: uppercase;
  color: var(--brand-400); margin-top: 4px; font-weight: 600;
}
.logo__mark { color: var(--logo-main); }

/* Menú */
.menu { display: flex; align-items: center; gap: .2rem; }
.menu__link {
  display: inline-flex; align-items: center; gap: .35rem;
  background: transparent; border: 0; cursor: pointer;
  padding: .6rem .85rem; border-radius: 100px;
  font-family: var(--font-display); font-weight: 500; font-size: .96rem;
  color: var(--ink-2); transition: color .2s, background .2s;
}
.menu__link:hover, .menu__link[aria-expanded="true"] { color: var(--ink); background: var(--surface-2); }
.menu__link.is-active { color: var(--brand-500); }
.menu__link .chev { width: 14px; height: 14px; transition: transform .3s var(--ease); }
.menu__link[aria-expanded="true"] .chev { transform: rotate(180deg); }

/* Mega menú */
.mega {
  position: absolute; left: 50%; transform: translateX(-50%) translateY(8px);
  top: calc(100% + 8px);
  width: min(100vw - 2rem, 1120px);
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-lg); box-shadow: var(--sh-3);
  padding: 1.5rem; z-index: 95;
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .28s var(--ease), transform .28s var(--ease), visibility .28s;
}
.mega.is-open { opacity: 1; visibility: visible; pointer-events: auto; transform: translateX(-50%) translateY(0); }
.mega__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(215px, 1fr)); gap: .4rem 1.6rem; }
.mega__col > h4 {
  font-size: .68rem; letter-spacing: .16em; text-transform: uppercase;
  color: var(--brand-500); margin-bottom: .55rem; padding-left: .55rem;
}
.mega__item {
  display: block; padding: .45rem .55rem; border-radius: 8px;
  font-size: .9rem; color: var(--ink-2); line-height: 1.35;
  transition: background .18s, color .18s, padding-left .18s;
}
.mega__item:hover { background: var(--surface-2); color: var(--brand-500); padding-left: .85rem; }
.mega__foot {
  margin-top: 1.2rem; padding-top: 1.1rem; border-top: 1px solid var(--line-soft);
  display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; justify-content: space-between;
}
.mega__foot p { font-size: var(--step--1); color: var(--ink-3); margin: 0; max-width: 46ch; }

/* Acciones del header */
.nav__actions { display: flex; align-items: center; gap: .5rem; }
.icon-btn {
  width: 40px; height: 40px; display: grid; place-items: center;
  border-radius: 50%; border: 1px solid var(--line); background: transparent;
  cursor: pointer; color: var(--ink-2); transition: all .25s var(--ease);
}
.icon-btn:hover { color: var(--brand-500); border-color: var(--brand-500); transform: rotate(-12deg); }
.icon-btn svg { width: 18px; height: 18px; }
.theme-toggle .moon { display: none; }
:root[data-theme="dark"] .theme-toggle .sun { display: none; }
:root[data-theme="dark"] .theme-toggle .moon { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .sun { display: none; }
  :root:not([data-theme="light"]) .theme-toggle .moon { display: block; }
}

.burger { display: none; }
@media (max-width: 1080px) {
  .menu, .nav__actions .btn { display: none; }
  .burger { display: grid; }
}

/* Menú móvil */
.drawer {
  position: fixed; inset: 0 0 0 auto; width: min(94vw, 420px); z-index: 120;
  background: var(--surface); border-left: 1px solid var(--line);
  transform: translateX(102%); transition: transform .42s var(--ease-out);
  display: flex; flex-direction: column; overflow-y: auto; overscroll-behavior: contain;
}
.drawer.is-open { transform: translateX(0); }
.drawer__head { display: flex; align-items: center; justify-content: space-between; padding: 1.1rem var(--gutter); border-bottom: 1px solid var(--line); position: sticky; top: 0; background: var(--surface); z-index: 2; }
.drawer__body { padding: 1.2rem var(--gutter) 2rem; }
.drawer__link {
  display: block; padding: .85rem 0; border-bottom: 1px solid var(--line-soft);
  font-family: var(--font-display); font-weight: 600; font-size: 1.05rem;
}
.drawer details > summary {
  display: flex; align-items: center; justify-content: space-between;
  padding: .85rem 0; border-bottom: 1px solid var(--line-soft); cursor: pointer;
  font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; list-style: none;
}
.drawer details > summary::-webkit-details-marker { display: none; }
.drawer details > summary::after { content: '+'; font-size: 1.3rem; color: var(--brand-500); }
.drawer details[open] > summary::after { content: '–'; }
.drawer details .sub { padding: .5rem 0 .8rem .9rem; border-left: 2px solid var(--line); margin: .5rem 0 .5rem .2rem; }
.drawer details .sub a { display: block; padding: .38rem 0; font-size: .92rem; color: var(--ink-2); }
.drawer details .sub a:hover { color: var(--brand-500); }
.scrim {
  position: fixed; inset: 0; background: rgba(6,8,12,.55); backdrop-filter: blur(3px);
  z-index: 110; opacity: 0; visibility: hidden; transition: opacity .35s, visibility .35s;
}
.scrim.is-open { opacity: 1; visibility: visible; }

/* ------------------------------------------------------------------ 7. HERO */
.hero {
  position: relative; overflow: hidden;
  background: var(--bg-deep); color: var(--ink-on-dark);
  padding: clamp(3.5rem, 9vw, 7.5rem) 0 clamp(3rem, 7vw, 6rem);
  isolation: isolate;
}
.hero::before {
  content: ''; position: absolute; inset: 0; z-index: -2;
  background-image:
    linear-gradient(to right, rgba(255,255,255,.045) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 70px 70px;
  -webkit-mask-image: radial-gradient(ellipse 90% 80% at 30% 25%, #000, transparent 72%);
  mask-image: radial-gradient(ellipse 90% 80% at 30% 25%, #000, transparent 72%);
}
.hero::after {
  content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(900px 520px at 78% 18%, rgba(210,172,107,.16), transparent 62%),
    radial-gradient(760px 460px at 8% 78%, rgba(30,107,76,.20), transparent 66%);
}
.hero__grid {
  display: grid; gap: clamp(2rem, 5vw, 4rem);
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  align-items: center;
}
@media (max-width: 980px) { .hero__grid { grid-template-columns: 1fr; } }

.hero__badge {
  display: inline-flex; align-items: center; gap: .6rem;
  padding: .45rem .5rem .45rem .5rem; border-radius: 100px;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12);
  font-size: var(--step--1); color: var(--ink-on-dark-2); margin-bottom: 1.5rem;
  backdrop-filter: blur(10px);
}
.hero__badge b {
  background: var(--brand-500); color: #fff; padding: .22rem .6rem;
  border-radius: 100px; font-size: .7rem; letter-spacing: .08em; text-transform: uppercase;
  font-family: var(--font-display);
}
.hero h1 { font-size: var(--step-5); color: #fff; margin-bottom: 1.1rem; letter-spacing: -.035em; }
.hero__sub { font-size: var(--step-1); color: var(--ink-on-dark-2); max-width: 54ch; margin-bottom: 2rem; }
.hero__cta { display: flex; flex-wrap: wrap; gap: .8rem; margin-bottom: 2.5rem; }
.hero__trust { display: flex; flex-wrap: wrap; gap: 1.6rem 2.2rem; padding-top: 1.8rem; border-top: 1px solid rgba(255,255,255,.1); }
.hero__trust div { min-width: 90px; }
.hero__trust b {
  display: block; font-family: var(--font-display); font-size: var(--step-2);
  color: #fff; line-height: 1; letter-spacing: -.03em;
}
.hero__trust span { font-size: var(--step--1); color: var(--ink-on-dark-2); }

/* Panel técnico del hero */
.hero__panel { position: relative; }
.hero__art {
  position: relative; border-radius: var(--r-xl); overflow: hidden;
  background: linear-gradient(160deg, rgba(255,255,255,.09), rgba(255,255,255,.02));
  border: 1px solid rgba(255,255,255,.12);
  box-shadow: 0 40px 90px rgba(0,0,0,.5);
  padding: 1.6rem;
  backdrop-filter: blur(6px);
}
.hero__art svg { width: 100%; height: auto; }
.hero__chip {
  position: absolute; z-index: 3;
  display: flex; align-items: center; gap: .6rem;
  padding: .7rem .95rem; border-radius: 100px;
  background: color-mix(in srgb, var(--bg-deep) 88%, transparent);
  border: 1px solid rgba(255,255,255,.16);
  box-shadow: 0 14px 40px rgba(0,0,0,.45);
  font-size: .82rem; color: #fff; backdrop-filter: blur(14px);
  animation: floaty 7s var(--ease) infinite;
}
.hero__chip svg { width: 18px; height: 18px; color: var(--brand-400); flex: none; }
.hero__chip--a { top: 6%; left: -4%; }
.hero__chip--b { bottom: 10%; right: -3%; animation-delay: -3.5s; }
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }

/* Marquesina */
.marquee {
  --speed: 42s;
  overflow: hidden; padding: 1.15rem 0;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  background: var(--bg-alt);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee__track { display: flex; width: max-content; animation: slide var(--speed) linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__item {
  display: inline-flex; align-items: center; gap: .6rem; padding: 0 2rem;
  font-family: var(--font-display); font-weight: 600; font-size: .95rem;
  color: var(--ink-3); letter-spacing: .04em; white-space: nowrap;
}
.marquee__item svg { width: 17px; height: 17px; color: var(--brand-500); }
.marquee__item::after { content: ''; }
@keyframes slide { to { transform: translateX(-50%); } }

/* ------------------------------------------------------------- 8. TARJETAS */
.grid { display: grid; gap: clamp(1rem, 2.2vw, 1.6rem); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.grid--5 { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
@media (min-width: 1120px) { .grid--5 { grid-template-columns: repeat(5, 1fr); } }

.card {
  position: relative; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: 1.6rem; overflow: hidden;
  transition: transform .45s var(--ease-out), box-shadow .45s var(--ease-out), border-color .3s;
}
.card::after {
  content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: radial-gradient(420px 240px at var(--mx,50%) var(--my,0%), var(--brand-glow), transparent 70%);
  opacity: 0; transition: opacity .45s;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--sh-3); border-color: color-mix(in srgb, var(--brand-500) 35%, var(--line)); }
.card:hover::after { opacity: .13; }
.card > * { position: relative; z-index: 1; }

.card__icon {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center;
  background: linear-gradient(140deg, color-mix(in srgb, var(--brand-500) 16%, transparent), transparent);
  border: 1px solid color-mix(in srgb, var(--brand-500) 24%, transparent);
  color: var(--brand-500); margin-bottom: 1.1rem;
  transition: transform .45s var(--ease-out);
}
.card:hover .card__icon { transform: scale(1.06) rotate(-4deg); }
.card__icon svg { width: 26px; height: 26px; }
.card h3 { font-size: var(--step-1); margin-bottom: .5rem; }
.card p { color: var(--ink-3); font-size: var(--step--1); line-height: 1.6; }
.card__meta { display: flex; align-items: center; gap: .4rem; margin-top: 1.1rem; font-size: var(--step--1); color: var(--brand-500); font-family: var(--font-display); font-weight: 600; }
.card__meta svg { width: 15px; height: 15px; transition: transform .3s var(--ease-out); }
.card:hover .card__meta svg { transform: translateX(4px); }

/* Tarjeta de producto */
.pcard {
  display: flex; flex-direction: column; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden;
  transition: transform .45s var(--ease-out), box-shadow .45s var(--ease-out), border-color .3s;
}
.pcard:hover { transform: translateY(-6px); box-shadow: var(--sh-3); border-color: color-mix(in srgb, var(--brand-500) 40%, var(--line)); }
.pcard__media {
  position: relative; aspect-ratio: 16/10; display: grid; place-items: center;
  background:
    radial-gradient(circle at 30% 25%, color-mix(in srgb, var(--brand-500) 13%, transparent), transparent 62%),
    var(--surface-2);
  border-bottom: 1px solid var(--line); overflow: hidden;
}
.pcard__media::before {
  content: ''; position: absolute; inset: 0; opacity: .5;
  background-image:
    linear-gradient(to right, var(--line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--line) 1px, transparent 1px);
  background-size: 26px 26px;
  -webkit-mask-image: radial-gradient(circle at 50% 50%, #000, transparent 78%);
  mask-image: radial-gradient(circle at 50% 50%, #000, transparent 78%);
}
.pcard__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pcard__media svg { position: relative; width: 46%; max-width: 150px; height: auto; color: var(--brand-500); transition: transform .55s var(--ease-out); }
.pcard:hover .pcard__media svg { transform: scale(1.09) rotate(-3deg); }
.pcard__tag {
  position: absolute; top: .8rem; left: .8rem; z-index: 2;
  padding: .3rem .7rem; border-radius: 100px; font-size: .68rem;
  font-family: var(--font-display); font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  background: color-mix(in srgb, var(--bg) 85%, transparent); border: 1px solid var(--line);
  color: var(--ink-3); backdrop-filter: blur(8px);
}
.pcard__tag--hot { background: var(--green-700); color: #fff; border-color: transparent; }
.pcard__body { padding: 1.3rem; display: flex; flex-direction: column; flex: 1; }
.pcard__body h3 { font-size: 1.05rem; line-height: 1.25; margin-bottom: .45rem; }
.pcard__body p { font-size: .85rem; color: var(--ink-3); line-height: 1.55; flex: 1; }
.pcard__foot { display: flex; align-items: center; justify-content: space-between; gap: .6rem; margin-top: 1.1rem; padding-top: .9rem; border-top: 1px solid var(--line-soft); }
.pcard__foot span { font-size: .78rem; color: var(--ink-3); }
.pcard__go { display: inline-flex; align-items: center; gap: .35rem; font-family: var(--font-display); font-weight: 600; font-size: .85rem; color: var(--brand-500); }
.pcard__go svg { width: 14px; height: 14px; transition: transform .3s var(--ease-out); }
.pcard:hover .pcard__go svg { transform: translateX(4px); }

/* ------------------------------------------------------------- 9. SECTORES */
.sector {
  display: flex; align-items: center; gap: .9rem; padding: 1.05rem 1.2rem;
  border: 1px solid var(--line); border-radius: var(--r);
  background: var(--surface); transition: all .35s var(--ease-out);
}
.sector:hover { border-color: var(--brand-500); transform: translateY(-3px); box-shadow: var(--sh-2); }
.sector svg { width: 24px; height: 24px; color: var(--brand-500); flex: none; }
.sector b { font-family: var(--font-display); font-size: .95rem; font-weight: 600; }
.section--dark .sector { background: rgba(255,255,255,.04); border-color: rgba(255,255,255,.1); color: #fff; }
.section--dark .sector:hover { background: rgba(255,255,255,.07); border-color: var(--brand-400); }

/* --------------------------------------------------------- 10. DIFERENCIALES */
.feature {
  display: grid; grid-template-columns: auto 1fr; gap: 1.1rem;
  padding: 1.4rem 0; border-top: 1px solid var(--line);
}
.feature__num {
  font-family: var(--font-display); font-size: .8rem; font-weight: 700;
  color: var(--brand-500); letter-spacing: .1em; padding-top: .25rem;
}
.feature h3 { font-size: var(--step-1); margin-bottom: .35rem; }
.feature p { color: var(--ink-3); font-size: var(--step--1); margin: 0; }

/* Proceso / pasos */
.steps { counter-reset: s; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(230px,1fr)); }
.step {
  position: relative; padding: 1.6rem 1.4rem; border-radius: var(--r-lg);
  background: var(--surface); border: 1px solid var(--line); counter-increment: s;
  transition: all .4s var(--ease-out);
}
.step:hover { transform: translateY(-5px); box-shadow: var(--sh-2); border-color: color-mix(in srgb, var(--brand-500) 35%, var(--line)); }
.step::before {
  content: counter(s, decimal-leading-zero);
  font-family: var(--font-display); font-size: 2.6rem; font-weight: 700; line-height: 1;
  color: transparent; -webkit-text-stroke: 1.5px color-mix(in srgb, var(--brand-500) 55%, transparent);
  display: block; margin-bottom: .8rem;
}
.step h3 { font-size: 1.02rem; margin-bottom: .4rem; }
.step p { font-size: .85rem; color: var(--ink-3); margin: 0; }
.section--dark .step { background: rgba(255,255,255,.04); border-color: rgba(255,255,255,.1); }
.section--dark .step p { color: var(--ink-on-dark-2); }

/* -------------------------------------------------------------- 11. BANDA CTA */
.cta-band {
  position: relative; overflow: hidden; border-radius: var(--r-xl);
  background: linear-gradient(125deg, #10281F 0%, #0A2E20 55%, #1D2415 100%);
  color: #fff; padding: clamp(2.2rem, 5vw, 4rem);
  border: 1px solid rgba(255,255,255,.1);
}
.cta-band::before {
  content: ''; position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(700px 340px at 88% 10%, rgba(210,172,107,.30), transparent 62%),
    radial-gradient(560px 300px at 5% 92%, rgba(30,107,76,.28), transparent 66%);
}
.cta-band::after {
  content: ''; position: absolute; inset: 0; z-index: 0; opacity: .5;
  background-image:
    linear-gradient(to right, rgba(255,255,255,.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 52px 52px;
  -webkit-mask-image: radial-gradient(circle at 70% 40%, #000, transparent 72%);
  mask-image: radial-gradient(circle at 70% 40%, #000, transparent 72%);
}
.cta-band > * { position: relative; z-index: 1; }
.cta-band h2 { color: #fff; max-width: 22ch; }
.cta-band p { color: var(--ink-on-dark-2); max-width: 56ch; font-size: var(--step-1); }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; }
.cta-band__note {
  margin-top: 1.6rem; font-size: var(--step--1); color: var(--ink-on-dark-2);
  display: flex; align-items: flex-start; gap: .5rem; max-width: 60ch;
}
.cta-band__note svg { width: 16px; height: 16px; flex: none; margin-top: 3px; color: var(--brand-400); }

/* ----------------------------------------------------------- 12. CATÁLOGO */
.filters {
  display: flex; flex-wrap: wrap; gap: .8rem; align-items: center;
  padding: 1rem; border: 1px solid var(--line); border-radius: var(--r-lg);
  background: var(--surface); box-shadow: var(--sh-1);
  position: sticky; top: 86px; z-index: 40;
  backdrop-filter: blur(14px);
}
.search {
  position: relative; flex: 1 1 260px; display: flex; align-items: center;
}
.search svg { position: absolute; left: .95rem; width: 18px; height: 18px; color: var(--ink-3); pointer-events: none; }
.search input {
  width: 100%; padding: .78rem 1rem .78rem 2.75rem;
  border: 1px solid var(--line); border-radius: 100px; background: var(--bg);
  color: var(--ink); font: inherit; font-size: .92rem; transition: border-color .25s, box-shadow .25s;
}
.search input::placeholder { color: var(--ink-3); }
.search input:focus { outline: none; border-color: var(--brand-500); box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand-500) 15%, transparent); }
.chips { display: flex; flex-wrap: wrap; gap: .45rem; }
.chip {
  padding: .5rem .95rem; border-radius: 100px; border: 1px solid var(--line);
  background: transparent; color: var(--ink-2); cursor: pointer;
  font-family: var(--font-display); font-size: .84rem; font-weight: 500;
  transition: all .25s var(--ease);
}
.chip:hover { border-color: var(--brand-500); color: var(--brand-500); }
.chip.is-on { background: var(--green-700); border-color: var(--green-700); color: #fff; }
.chip__n { opacity: .6; font-size: .78em; margin-left: .3rem; }

.result-count { font-size: var(--step--1); color: var(--ink-3); margin: 1.5rem 0 1rem; }
.result-count b { color: var(--ink); }
.empty { text-align: center; padding: 4rem 1rem; color: var(--ink-3); }
.empty svg { width: 54px; height: 54px; margin: 0 auto 1rem; color: var(--line); }

/* ------------------------------------------------------- 13. FICHA PRODUCTO */
.crumbs { display: flex; flex-wrap: wrap; gap: .45rem; align-items: center; font-size: var(--step--1); color: var(--ink-on-dark-2); margin-bottom: 1.4rem; }
.crumbs a:hover { color: var(--brand-400); }
.crumbs svg { width: 12px; height: 12px; opacity: .5; }

.phero { background: var(--bg-deep); color: var(--ink-on-dark); position: relative; overflow: hidden; padding: clamp(2rem,5vw,3.5rem) 0 clamp(2.5rem,6vw,4.5rem); }
.phero::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(760px 420px at 82% 20%, rgba(210,172,107,.18), transparent 64%),
              radial-gradient(600px 380px at 5% 85%, rgba(30,107,76,.20), transparent 68%);
}
.phero > .wrap { position: relative; z-index: 1; }
.phero__grid { display: grid; gap: clamp(1.6rem,4vw,3rem); grid-template-columns: minmax(0,1.15fr) minmax(0,.85fr); align-items: center; }
@media (max-width: 900px) { .phero__grid { grid-template-columns: 1fr; } }
.phero h1 { font-size: var(--step-3); color: #fff; margin-bottom: .8rem; }
.phero__lead { color: var(--ink-on-dark-2); font-size: var(--step-1); max-width: 56ch; }
.phero__art {
  border-radius: var(--r-xl); border: 1px solid rgba(255,255,255,.13);
  background: linear-gradient(160deg, rgba(255,255,255,.09), rgba(255,255,255,.02));
  padding: 2rem; display: grid; place-items: center; box-shadow: 0 30px 70px rgba(0,0,0,.45);
}
.phero__art svg { width: 70%; max-width: 260px; height: auto; color: var(--brand-400); }
.phero__art img { border-radius: var(--r-lg); }
.phero__badges { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1.4rem 0 1.8rem; }
.badge {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .38rem .8rem; border-radius: 100px; font-size: .78rem;
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.14); color: #fff;
}
.badge svg { width: 14px; height: 14px; color: var(--brand-400); }

.specs { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px,1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.spec { background: var(--surface); padding: 1.2rem 1.3rem; }
.spec dt { font-size: .7rem; letter-spacing: .13em; text-transform: uppercase; color: var(--brand-500); font-weight: 700; font-family: var(--font-display); margin-bottom: .35rem; }
.spec dd { margin: 0; font-size: .92rem; color: var(--ink); line-height: 1.45; }

.prose { max-width: 74ch; }
.prose h2 { font-size: var(--step-2); margin-top: 2.6rem; }
.prose h2:first-child { margin-top: 0; }
.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: .7rem; }
.ticks li { display: grid; grid-template-columns: auto 1fr; gap: .7rem; align-items: start; font-size: .95rem; color: var(--ink-2); }
.ticks li::before {
  content: ''; width: 20px; height: 20px; margin-top: 2px; border-radius: 50%; flex: none;
  background: color-mix(in srgb, var(--brand-500) 15%, transparent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23997022' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center/12px no-repeat;
}
.numlist { list-style: none; counter-reset: n; padding: 0; margin: 0; display: grid; gap: .8rem; }
.numlist li { counter-increment: n; display: grid; grid-template-columns: auto 1fr; gap: .85rem; align-items: start; font-size: .95rem; color: var(--ink-2); }
.numlist li::before {
  content: counter(n); width: 26px; height: 26px; border-radius: 50%; flex: none;
  display: grid; place-items: center; font-family: var(--font-display); font-size: .78rem; font-weight: 700;
  background: var(--green-700); color: #fff;
}
.tagcloud { display: flex; flex-wrap: wrap; gap: .5rem; }
.tagcloud span {
  padding: .45rem .9rem; border-radius: 100px; background: var(--surface-2);
  border: 1px solid var(--line); font-size: .84rem; color: var(--ink-2);
  transition: all .25s;
}
.tagcloud span:hover { border-color: var(--brand-500); color: var(--brand-500); }

.subcards { display: grid; gap: .9rem; grid-template-columns: repeat(auto-fit, minmax(255px,1fr)); }
.subcard { padding: 1.2rem 1.3rem; border: 1px solid var(--line); border-left: 3px solid var(--brand-500); border-radius: 0 var(--r) var(--r) 0; background: var(--surface); transition: all .3s var(--ease-out); }
.subcard:hover { transform: translateX(4px); box-shadow: var(--sh-2); }
.subcard b { display: block; font-family: var(--font-display); font-size: .96rem; margin-bottom: .3rem; }
.subcard p { font-size: .85rem; color: var(--ink-3); margin: 0; }

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); }
table { width: 100%; border-collapse: collapse; font-size: .88rem; min-width: 480px; }
thead th {
  text-align: left; padding: .85rem 1rem; background: var(--surface-2);
  font-family: var(--font-display); font-size: .74rem; letter-spacing: .1em;
  text-transform: uppercase; color: var(--ink-3); border-bottom: 1px solid var(--line); white-space: nowrap;
}
tbody td { padding: .8rem 1rem; border-bottom: 1px solid var(--line-soft); color: var(--ink-2); }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover td { background: var(--surface-2); }

/* Panel lateral pegajoso de contacto */
.aside-cta {
  position: sticky; top: 100px;
  border: 1px solid var(--line); border-radius: var(--r-lg);
  background: var(--surface); padding: 1.5rem; box-shadow: var(--sh-2);
}
.aside-cta h3 { font-size: var(--step-1); margin-bottom: .5rem; }
.aside-cta p { font-size: .87rem; color: var(--ink-3); }
.aside-cta .btn { width: 100%; margin-top: .6rem; }
.aside-cta hr { border: 0; border-top: 1px solid var(--line-soft); margin: 1.3rem 0; }
.aside-cta__row { display: flex; align-items: center; gap: .7rem; font-size: .85rem; color: var(--ink-2); padding: .4rem 0; }
.aside-cta__row svg { width: 16px; height: 16px; color: var(--brand-500); flex: none; }

.product-layout { display: grid; grid-template-columns: minmax(0,1fr) 330px; gap: clamp(2rem,4vw,3.5rem); align-items: start; }
@media (max-width: 940px) { .product-layout { grid-template-columns: 1fr; } .aside-cta { position: static; } }

/* ------------------------------------------------------------------ 14. FAQ */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.3rem 0; cursor: pointer; list-style: none;
  font-family: var(--font-display); font-weight: 600; font-size: var(--step-1);
  transition: color .25s;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--brand-500); }
.faq summary::after {
  content: ''; width: 22px; height: 22px; flex: none; border-radius: 50%;
  border: 1.5px solid var(--line); position: relative;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23997022' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E") center/11px no-repeat;
  transition: transform .35s var(--ease);
}
.faq details[open] summary::after { transform: rotate(135deg); }
.faq details p { padding-bottom: 1.4rem; color: var(--ink-3); max-width: 78ch; }

/* -------------------------------------------------------------- 15. CONTACTO */
.contact-card {
  border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface);
  padding: 1.6rem; transition: all .4s var(--ease-out); height: 100%;
  display: flex; flex-direction: column;
}
.contact-card:hover { transform: translateY(-5px); box-shadow: var(--sh-3); border-color: color-mix(in srgb, var(--brand-500) 40%, var(--line)); }
.contact-card__icon {
  width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center;
  color: #fff; margin-bottom: 1rem;
}
.contact-card__icon svg { width: 22px; height: 22px; }
.bg-wa { background: linear-gradient(140deg,#25D366,#12A050); }
.bg-mail { background: linear-gradient(140deg,var(--brand-400),#A87E33); }
.bg-pin { background: linear-gradient(140deg,var(--green-500),var(--green-700)); }
.bg-clock { background: linear-gradient(140deg,#8FA39A,#566B60); }
.contact-card h3 { font-size: var(--step-1); margin-bottom: .4rem; }
.contact-card p { font-size: .88rem; color: var(--ink-3); }
.contact-card ul { list-style: none; padding: 0; margin: .6rem 0 0; }
.contact-card li { padding: .42rem 0; border-bottom: 1px solid var(--line-soft); font-size: .88rem; display: flex; justify-content: space-between; gap: 1rem; }
.contact-card li:last-child { border-bottom: 0; }
.contact-card li span { color: var(--ink-3); }
.contact-card li a:hover, .contact-card li b:hover { color: var(--brand-500); }
.contact-card .btn { margin-top: auto; }
.contact-card > .btn:first-of-type { margin-top: 1.1rem; }

/* --------------------------------------------------------------- 16. FOOTER */
.site-footer { background: var(--bg-deep); color: var(--ink-on-dark-2); padding-top: clamp(3rem,6vw,5rem); position: relative; overflow: hidden; }
.site-footer::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(700px 300px at 15% 0%, rgba(210,172,107,.12), transparent 62%);
}
.site-footer > * { position: relative; z-index: 1; }
.footer__grid { display: grid; gap: 2.5rem; grid-template-columns: 1.6fr 1fr 1fr 1.3fr; }
@media (max-width: 940px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer__grid { grid-template-columns: 1fr; } }
.footer h4 {
  color: #fff; font-size: .74rem; letter-spacing: .16em; text-transform: uppercase;
  margin-bottom: 1.1rem; font-weight: 700;
}
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer li { margin-bottom: .55rem; font-size: .88rem; }
/* Solo los enlaces de listas: si se aplica a todo, rompe el maquetado del
   logotipo (que es inline-flex) al convertirlo en inline-block. */
.footer li a, .footer__bottom a { transition: color .2s; display: inline-block; }
.footer li a:hover, .footer__bottom a:hover { color: var(--brand-400); }
.footer .logo__name { color: #fff; }
.footer .logo__sub { color: var(--ink-on-dark-2); }
.footer__about { font-size: .9rem; line-height: 1.65; max-width: 42ch; margin: 1.2rem 0; }
.footer__contact li { display: flex; gap: .6rem; align-items: flex-start; }
.footer__contact svg { width: 15px; height: 15px; color: var(--brand-500); flex: none; margin-top: 4px; }
.socials { display: flex; gap: .5rem; margin-top: 1.2rem; }
.socials a {
  width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.14); transition: all .3s var(--ease);
}
.socials a:hover { background: var(--brand-500); border-color: var(--brand-500); color: #fff; transform: translateY(-3px); }
.socials svg { width: 17px; height: 17px; }
.footer__bottom {
  margin-top: clamp(2.5rem,5vw,4rem); padding: 1.5rem 0;
  border-top: 1px solid rgba(255,255,255,.09);
  display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between;
  font-size: .82rem;
}

/* ------------------------------------------------------- 17. WHATSAPP FLOTANTE */
.wa-float {
  position: fixed; right: clamp(1rem,3vw,1.75rem); bottom: clamp(1rem,3vw,1.75rem); z-index: 80;
  display: flex; align-items: center; gap: .7rem;
  padding: .8rem 1.2rem .8rem .85rem; border-radius: 100px;
  background: #25D366; color: #fff; font-family: var(--font-display); font-weight: 600; font-size: .92rem;
  box-shadow: 0 12px 34px rgba(37,211,102,.42);
  transition: transform .4s var(--ease-out), box-shadow .4s;
}
.wa-float:hover { transform: translateY(-3px) scale(1.02); box-shadow: 0 18px 46px rgba(37,211,102,.55); }
.wa-float svg { width: 26px; height: 26px; flex: none; }
.wa-float__pulse { position: absolute; left: .85rem; width: 26px; height: 26px; border-radius: 50%; background: #fff; opacity: .5; animation: pulse 2.6s var(--ease) infinite; }
@keyframes pulse { 0% { transform: scale(.8); opacity: .5; } 70% { transform: scale(2.1); opacity: 0; } 100% { opacity: 0; } }
@media (max-width: 620px) { .wa-float span { display: none; } .wa-float { padding: .85rem; } }

/* ------------------------------------------------------- 18. REVELADO SCROLL */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .8s var(--ease-out), transform .8s var(--ease-out); }
.reveal.is-in { opacity: 1; transform: none; }
.reveal[data-d="1"] { transition-delay: .08s; }
.reveal[data-d="2"] { transition-delay: .16s; }
.reveal[data-d="3"] { transition-delay: .24s; }
.reveal[data-d="4"] { transition-delay: .32s; }
.reveal[data-d="5"] { transition-delay: .4s; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }

/* Barra de progreso de lectura */
.progress {
  position: fixed; top: 0; left: 0; height: 3px; z-index: 100;
  background: linear-gradient(90deg, var(--brand-400), var(--green-500));
  width: 0; transition: width .1s linear;
}

/* ------------------------------------------------------------ 19. IMPRESIÓN */
@media print {
  .site-header, .topbar, .wa-float, .site-footer, .aside-cta, .progress { display: none !important; }
  body { background: #fff; color: #000; }
}

/* ============================================================================
   20. AJUSTES FINOS RESPONSIVOS
   ========================================================================== */
@media (max-width: 900px) {
  .topbar .topbar__hide-sm { display: none !important; }
}

/* Indicadores del hero: 2 columnas en móvil, 4 en pantallas grandes */
.hero__trust {
  display: grid; gap: 1.4rem 1.6rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
@media (min-width: 1180px) { .hero__trust { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.2rem; } }

/* Chips flotantes: nunca fuera del viewport en pantallas chicas */
@media (max-width: 760px) {
  .hero__chip--a { left: .5rem; top: -1rem; }
  .hero__chip--b { right: .5rem; bottom: -1rem; }
  .hero__chip { font-size: .74rem; padding: .55rem .8rem; }
}

/* Pie de tarjeta de producto: una sola línea siempre */
.pcard__foot span:first-child {
  min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.pcard__go { white-space: nowrap; }

/* Tarjetas de familia: alto uniforme */
.grid--5 .card { display: flex; flex-direction: column; }
.grid--5 .card p { flex: 1; }

/* Menú móvil: que el botón de tema siga visible */
@media (max-width: 1080px) { .nav__actions .icon-btn { display: grid; } }

/* Listas de contacto: etiqueta arriba, dato abajo (mejor en columnas angostas) */
.contact-card li {
  display: flex; flex-direction: column; align-items: flex-start; gap: .1rem;
  padding: .55rem 0;
}
.contact-card li > span:first-child {
  font-size: .68rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--ink-3); font-family: var(--font-display); font-weight: 600;
}
.contact-card li a, .contact-card li b { font-weight: 600; color: var(--ink); }
.contact-card li a { transition: color .2s; }

/* Mega menú: 5 columnas fijas (una por familia) en pantallas amplias */
@media (min-width: 1140px) {
  .mega__grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}

/* ============================================================================
   21. FOTOGRAFÍA DE PRODUCTO
   ========================================================================== */

/* Hero de ficha con foto real */
.phero__art--photo {
  padding: 0; overflow: hidden;
  background: linear-gradient(160deg, rgba(255,255,255,.12), rgba(255,255,255,.03));
}
.phero__art--photo img {
  width: 100%; height: 100%; aspect-ratio: 4 / 3; object-fit: cover;
  border-radius: calc(var(--r-xl) - 1px);
}

/* Tarjetas del catálogo con foto */
.pcard__media img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; transition: transform .7s var(--ease-out);
}
.pcard:hover .pcard__media img { transform: scale(1.05); }
.pcard__media:has(img)::before { display: none; }

/* --------------------------------------------------------------- Galería */
.gallery {
  display: grid; gap: .8rem;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
}
.gallery__item {
  position: relative; padding: 0; border: 1px solid var(--line);
  border-radius: var(--r); overflow: hidden; cursor: zoom-in;
  background: var(--surface); aspect-ratio: 4 / 3;
  transition: transform .4s var(--ease-out), box-shadow .4s var(--ease-out), border-color .3s;
}
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease-out); }
.gallery__item::after {
  content: ''; position: absolute; inset: 0; opacity: 0;
  background: linear-gradient(0deg, rgba(11,14,19,.45), transparent 55%)
              url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5M11 8v6M8 11h6'/%3E%3C/svg%3E") center/28px no-repeat;
  transition: opacity .3s;
}
.gallery__item:hover { transform: translateY(-4px); box-shadow: var(--sh-2); border-color: var(--brand-500); }
.gallery__item:hover img { transform: scale(1.06); }
.gallery__item:hover::after { opacity: 1; }

/* -------------------------------------------------------------- Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 200; display: grid; place-items: center;
  background: rgba(6,8,12,.92); backdrop-filter: blur(8px);
  opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s;
  padding: clamp(1rem, 4vw, 3rem);
}
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox img {
  max-width: min(100%, 1200px); max-height: 82vh; object-fit: contain;
  border-radius: var(--r); box-shadow: 0 30px 90px rgba(0,0,0,.6);
  animation: lbin .35s var(--ease-out);
}
@keyframes lbin { from { opacity: 0; transform: scale(.96); } }
.lightbox__bar {
  position: absolute; left: 0; right: 0; bottom: clamp(1rem, 3vw, 2rem);
  display: flex; align-items: center; justify-content: center; gap: 1rem;
  color: #fff; font-size: var(--step--1);
}
.lightbox__btn {
  width: 46px; height: 46px; display: grid; place-items: center; cursor: pointer;
  border-radius: 50%; border: 1px solid rgba(255,255,255,.2); background: rgba(255,255,255,.08);
  color: #fff; transition: all .25s var(--ease);
}
.lightbox__btn:hover { background: var(--brand-500); border-color: var(--brand-500); }
.lightbox__btn svg { width: 20px; height: 20px; }
.lightbox__close { position: absolute; top: clamp(1rem,3vw,2rem); right: clamp(1rem,3vw,2rem); }
.lightbox__count { min-width: 5ch; text-align: center; font-family: var(--font-display); }

/* ------------------------------------------------- Tira de fotos del home */
.pstrip {
  display: grid; gap: .75rem; padding: clamp(2rem,5vw,3.5rem) 0;
  background: var(--bg-alt); border-block: 1px solid var(--line); overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.pstrip__row { overflow: hidden; }
.pstrip__track { display: flex; gap: .75rem; width: max-content; }
.pstrip__row--a .pstrip__track { animation: slide 68s linear infinite; }
.pstrip__row--b .pstrip__track { animation: slide 82s linear infinite reverse; }
.pstrip:hover .pstrip__track { animation-play-state: paused; }
.pstrip__cell {
  position: relative; flex: none; width: clamp(180px, 22vw, 280px); aspect-ratio: 16/10;
  border-radius: var(--r); overflow: hidden; border: 1px solid var(--line);
  background: var(--surface);
}
.pstrip__cell img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease-out); }
.pstrip__cell span {
  position: absolute; inset: auto 0 0 0; padding: 1.6rem .8rem .6rem;
  background: linear-gradient(0deg, rgba(11,14,19,.88), transparent);
  color: #fff; font-size: .74rem; font-family: var(--font-display); font-weight: 600;
  line-height: 1.25; opacity: 0; transform: translateY(6px);
  transition: opacity .3s, transform .3s var(--ease-out);
}
.pstrip__cell:hover img { transform: scale(1.07); }
.pstrip__cell:hover span { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .pstrip__track { animation: none !important; }
  .pstrip__cell span { opacity: 1; transform: none; }
}
