/* ==========================================================================
   ELECTROPOWER · Rediseño 2026
   Hoja de estilos principal · mobile-first
   --------------------------------------------------------------------------
   01. Tokens de diseño (Custom Properties)   ← editar colores/tipos aquí
   02. Reset y base
   03. Layout y utilidades
   04. Botones, badges, selects
   05. Efecto "glow" que sigue al cursor (todo el sitio)
   06. Header fijo + navegación + menú móvil a pantalla completa
   07. Hero slider
   08. Accesos por categoría (tarjeta flotante)
   09. Catálogo: filtros y tarjetas
   10. Nosotros (hero con rotador de industrias)
   11. Cifras
   12. Proyectos y hero de producto (componente "showcase")
   13. Marcas (bloque oscuro) y clientes (marquee)
   14. Testimonios (grid en escritorio, carrusel en móvil)
   15. Ficha de producto (2 columnas + tabs)
   16. Footer, WhatsApp y volver arriba
   17. Animaciones de entrada
   18. Media queries
   19. Movimiento reducido
   ========================================================================== */

/* 01. TOKENS =============================================================== */
:root {
  /* Marca */
  --c-primary: #0f3d2c;        /* verde corporativo profundo (header, títulos, bloques) */
  --c-primary-600: #0b3022;
  --c-primary-800: #07231a;
  --c-brand: #2b7739;          /* verde del logotipo */
  --c-accent: #8cc63f;         /* verde lima de acción (botones, acentos) */
  --c-accent-600: #79b02f;
  --c-accent-rgb: 140, 198, 63;

  /* Neutros */
  --c-ink: #0d1d16;
  --c-text: #24332c;
  --c-muted: #66756e;
  --c-line: #e2e8e4;
  --c-surface: #f3f6f4;
  --c-white: #ffffff;

  /* Tipografía */
  --ff-display: "Montserrat", "Segoe UI", system-ui, sans-serif;
  --ff-body: "Inter", "Segoe UI", system-ui, sans-serif;
  --fs-xs: .75rem;
  --fs-sm: .875rem;
  --fs-base: 1rem;
  --fs-md: 1.125rem;
  --fs-lg: clamp(1.2rem, 1.05rem + .6vw, 1.5rem);
  --fs-xl: clamp(1.5rem, 1rem + 2vw, 3rem);
  --fs-hero: clamp(1.5rem, 1.1rem + 2.4vw, 3.6rem);

  /* Espaciado, radios, sombras */
  --space-section: clamp(4.5rem, 3rem + 5vw, 8rem);
  --container: 1280px;
  --gutter: clamp(1rem, .5rem + 2vw, 2rem);
  --radius-sm: 8px;
  --radius: 16px;
  --radius-lg: 24px;
  --radius-pill: 999px;
  --shadow: 0 12px 32px -14px rgba(13, 29, 22, .22);
  --shadow-lg: 0 30px 70px -28px rgba(13, 29, 22, .40);

  /* Movimiento */
  --ease: cubic-bezier(.22, .8, .2, 1);
  --t-fast: .2s;
  --t: .45s;

  /* Alturas del header */
  --topline-h: 34px;
  --header-h: 72px;
}

/* 02. RESET Y BASE ======================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { overflow-x: clip; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
body { margin: 0; font-family: var(--ff-body); font-size: var(--fs-base); line-height: 1.6; color: var(--c-text); background: var(--c-white); -webkit-font-smoothing: antialiased; }
body.is-locked { overflow: hidden; }
img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
ul[role="list"] { list-style: none; margin: 0; padding: 0; }
h1, h2, h3 { font-family: var(--ff-display); line-height: 1.1; margin: 0; font-weight: 800; letter-spacing: -.01em; }
p, figure, blockquote { margin: 0; }
:focus-visible { outline: 3px solid var(--c-accent); outline-offset: 3px; border-radius: 4px; }

/* 03. LAYOUT Y UTILIDADES ================================================= */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--space-section); position: relative; }
.section--surface { background: var(--c-surface); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 1rem; top: -100px; z-index: 1000; background: var(--c-accent); color: var(--c-ink); padding: .75rem 1rem; border-radius: var(--radius-sm); font-weight: 600; }
.skip-link:focus { top: 1rem; }

/* Títulos de sección estilo corporativo: mayúsculas grandes + línea de acento */
.title-xl { font-size: var(--fs-xl); text-transform: uppercase; color: var(--c-primary); line-height: 1.02; }
.title-xl::after { content: ""; display: block; width: 56px; height: 4px; margin-top: 1.25rem; background: var(--c-accent); border-radius: 2px; }
.title-xl--light { color: var(--c-white); }
.title-xl--center::after { margin-inline: auto; }
.eyebrow { font-style: italic; font-size: var(--fs-sm); color: var(--c-accent); }
.lead { font-size: var(--fs-md); color: var(--c-muted); max-width: 620px; }
.section-head { display: grid; gap: 1.25rem; margin-bottom: clamp(2rem, 1rem + 3vw, 3.5rem); }
.section-head--center { text-align: center; justify-items: center; }

/* 04. BOTONES, BADGES, SELECTS ============================================ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  min-height: 46px; padding: .7rem 1.6rem; border-radius: var(--radius-pill);
  font-family: var(--ff-display); font-weight: 700; font-size: var(--fs-sm); letter-spacing: .01em; white-space: nowrap;
  transition: background var(--t-fast), color var(--t-fast), box-shadow var(--t-fast), transform var(--t-fast);
}
.btn svg { width: 18px; height: 18px; flex-shrink: 0; transition: transform var(--t) var(--ease); }
.btn:hover svg.arrow { transform: translateX(4px); }
.btn:active { transform: scale(.98); }
.btn--accent { background: var(--c-accent); color: var(--c-primary-800); }
.btn--accent:hover { background: var(--c-white); }
.btn--ghost { color: var(--c-white); box-shadow: inset 0 0 0 1.5px var(--c-accent); backdrop-filter: blur(5px); }
.btn--ghost:hover { background: var(--c-accent); color: var(--c-primary-800); }
.btn--primary { background: var(--c-primary); color: var(--c-white); }
.btn--primary:hover { background: var(--c-brand); }
.btn--outline { color: var(--c-primary); box-shadow: inset 0 0 0 1.5px var(--c-accent); }
.btn--outline:hover { background: var(--c-accent); }
.btn--sm { min-height: 40px; padding: .5rem 1.15rem; font-size: var(--fs-xs); }

.badge { display: inline-flex; align-items: center; gap: .35rem; padding: .28rem .7rem; border-radius: var(--radius-pill); font-size: .68rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; background: var(--c-white); color: var(--c-primary); }
.badge--venta { background: var(--c-primary); color: var(--c-white); }
.badge--arriendo { background: var(--c-accent); color: var(--c-primary-800); }
.badge--stock::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--c-accent); }

/* Select con ícono (filtro del catálogo) */
.select-icon { position: relative; display: block; }
.select-icon > svg { position: absolute; left: 1rem; top: 50%; translate: 0 -50%; width: 20px; height: 20px; color: var(--c-brand); pointer-events: none; }
.select-icon select {
  width: 100%; min-height: 52px; padding: .75rem 2.6rem .75rem 2.9rem; appearance: none; cursor: pointer; border: none;
  border-bottom: 2px solid var(--c-line); border-radius: none; background: var(--c-white);
  font-weight: 600; font-size: var(--fs-sm); color: var(--c-primary);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230f3d2c' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 1rem center; background-size: 16px;
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
.select-icon select:hover { border-color: var(--c-accent); }
.select-icon select:focus { outline: none; border-color: var(--c-accent); box-shadow: 0 0 0 4px rgba(var(--c-accent-rgb), .25); }

/* 05. GLOW QUE SIGUE AL CURSOR ============================================
   Cualquier elemento con [data-glow] recibe un halo radial verde que sigue al
   puntero (coordenadas --mx/--my calculadas en main.js §04). Funciona en
   fondos claros y oscuros. */
[data-glow] { position: relative; isolation: isolate; }
[data-glow]::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(var(--c-accent-rgb), .18), transparent 60%);
  opacity: 0; transition: opacity var(--t);
}
[data-glow]::after { /* borde iluminado */
  content: ""; position: absolute; inset: 0; z-index: 2; border-radius: inherit; pointer-events: none; padding: 1px;
  background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 50%), rgba(var(--c-accent-rgb), .9), transparent 70%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: 0; transition: opacity var(--t);
}
[data-glow]:hover::before, [data-glow]:hover::after { opacity: 1; }

/* 06. HEADER FIJO ========================================================= */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  color: var(--c-white);
  transition: background var(--t) var(--ease), box-shadow var(--t) var(--ease), transform var(--t) var(--ease);
}
/* Transparente sobre el hero; sólido al hacer scroll o con el menú abierto */
.header.is-solid, .header.is-menu-open { background: var(--c-primary); box-shadow: 0 10px 30px -18px rgba(0,0,0,.6); }
.header:not(.is-solid)::before { content: ""; position: absolute; inset: 0 0 -40px; z-index: -1; background: linear-gradient(180deg, rgba(7,35,26,.75), transparent); pointer-events: none; }

.topline { font-size: var(--fs-xs); color: rgba(255,255,255,.75); border-bottom: 1px solid rgba(255,255,255,.12); height: var(--topline-h); overflow: hidden; transition: height var(--t) var(--ease), opacity var(--t); }
.header.is-solid .topline { height: 0; opacity: 0; border: 0; }
.topline .container { display: flex; align-items: center; justify-content: space-between; height: 100%; gap: 1rem; }
.topline ul { display: flex; gap: 1.25rem; }
.topline a { display: inline-flex; align-items: center; gap: .4rem; }
.topline a:hover { color: var(--c-accent); }
.topline svg { width: 14px; height: 14px; }
.topline__em { color: var(--c-accent); font-weight: 600; }
.topline__hide-sm { display: none !important; }

.header__bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; height: var(--header-h); }
.header__logo { position: relative; z-index: 2; }
.header__logo img { height: 40px; width: auto; }
.header__actions { display: flex; align-items: center; gap: .5rem; position: relative; z-index: 2; }
.header__cta { display: none; }

.nav-toggle { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 50%; background: rgba(255,255,255,.12); }
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after { display: block; position: relative; width: 20px; height: 2px; border-radius: 2px; background: var(--c-white); transition: transform var(--t) var(--ease), background var(--t-fast); }
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; }
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }

/* Menú móvil: ocupa TODA la pantalla (el header queda por encima con el botón cerrar) */
.nav {
  position: fixed; inset: 0; z-index: 1;
  display: flex; flex-direction: column;
  padding: calc(var(--topline-h) + var(--header-h) + 1rem) var(--gutter) 2rem;
  background: var(--c-primary); overflow-y: auto; overscroll-behavior: contain;
  opacity: 0; visibility: hidden; transform: translateY(-12px);
  transition: opacity var(--t) var(--ease), transform var(--t) var(--ease), visibility 0s linear var(--t);
}
.header.is-solid .nav { padding-top: calc(var(--header-h) + 1rem); }
.nav.is-open { opacity: 1; visibility: visible; transform: none; transition: opacity var(--t) var(--ease), transform var(--t) var(--ease); }
.nav__list { display: flex; flex-direction: column; }
.nav__item { border-bottom: 1px solid rgba(255,255,255,.12); }
.nav__link { display: flex; align-items: center; justify-content: space-between; width: 100%; padding: 1.05rem 0; font-family: var(--ff-display); font-weight: 700; font-size: 1.25rem; color: var(--c-white); transition: color var(--t-fast); }
.nav__link:hover { color: var(--c-accent); }
.nav__link svg { width: 18px; height: 18px; transition: transform var(--t) var(--ease); }
.nav__link[aria-expanded="true"] svg { transform: rotate(180deg); }
.nav__foot { margin-top: auto; padding-top: 2rem; display: grid; gap: .75rem; }
.nav__foot .btn { width: 100%; }

/* Submenú (móvil: acordeón) */
.submenu { display: none; padding-bottom: 1rem; }
.submenu.is-open { display: block; }
.submenu__grid { display: grid; gap: .25rem; }
.submenu__link { display: flex; align-items: center; gap: .9rem; padding: .6rem .5rem; border-radius: var(--radius-sm); color: rgba(255,255,255,.85); font-size: var(--fs-sm); font-weight: 500; transition: background var(--t-fast), color var(--t-fast); }
.submenu__link:hover { background: rgba(255,255,255,.08); color: var(--c-white); }
.submenu__thumb { flex-shrink: 0; width: 52px; height: 40px; display: grid; place-items: center; border-radius: 8px; background: var(--c-white); padding: 4px; }
.submenu__thumb img { width: 100%; height: 100%; object-fit: contain; }
.submenu__thumb svg { width: 20px; height: 20px; color: var(--c-brand); }

/* 07. HERO SLIDER ========================================================= */
.hero { position: relative; overflow: hidden; min-height: clamp(600px, 100svh, 1000px); background: var(--c-primary-800); color: var(--c-white); touch-action: pan-y; }
.hero__slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity 1.1s var(--ease), visibility 0s linear 1.1s; }
.hero__slide.is-active { opacity: 1; visibility: visible; z-index: 1; transition: opacity 1.1s var(--ease); }
.hero__media { position: absolute; inset: 0; overflow: hidden; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.1); transition: transform 8s linear; }
.hero__slide.is-active .hero__media img { transform: scale(1); }
.hero__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(7,35,26,.89) 30%, rgba(7,35,26,.45) 55%, rgba(7,35,26,.15) 100%), linear-gradient(0deg, rgba(7,35,26,.85) 0%, transparent 75%); }
.hero__content { position: relative; z-index: 2; display: flex; align-items: flex-end; height: 100%; padding-bottom: 9rem; }
.hero__text { max-width: 660px; display: grid; gap: 1rem; }
.hero__title { font-size: var(--fs-hero); font-weight: 300; text-transform: none; letter-spacing: -.02em; }
.hero__title strong { font-weight: 800; }
.hero__lead { color: rgba(255,255,255,.85); max-width: 540px; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: .5rem; }

/* Capas de texto: fade-in-up escalonado */
[data-layer] { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.is-active [data-layer] { opacity: 1; transform: none; }
.is-active [data-layer="1"] { transition-delay: .2s; }
.is-active [data-layer="2"] { transition-delay: .35s; }
.is-active [data-layer="3"] { transition-delay: .5s; }
.is-active [data-layer="4"] { transition-delay: .65s; }

/* Controles: líneas de progreso sutiles (sin texto) + flechas */
.hero__controls { position: absolute; z-index: 3; left: 0; right: 0; bottom: 3.5rem; }
.hero__controls .container { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.progress { display: flex; gap: .5rem; }
.progress__dot { position: relative; width: 36px; height: 20px; }
.progress__dot::before, .progress__bar { content: ""; position: absolute; left: 0; top: 50%; height: 2px; border-radius: 2px; translate: 0 -50%; }
.progress__dot::before { right: 0; background: rgba(255,255,255,.3); }
.progress__bar { width: 0; background: var(--c-accent); }
.progress__dot[aria-current="true"] .progress__bar { animation: progress var(--slide-delay, 7000ms) linear forwards; }
.progress__dot.is-done .progress__bar { width: 100%; }
[data-slider]:hover .progress__bar { animation-play-state: paused; }
@keyframes progress { to { width: 100%; } }
.arrows { display: flex; gap: .25rem; }
.arrow-btn { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 50%; color: currentColor; transition: background var(--t-fast), color var(--t-fast); }
.arrow-btn:hover { background: var(--c-accent); color: var(--c-primary-800); }
.arrow-btn svg { width: 22px; height: 22px; }

/* 08. ACCESOS POR CATEGORÍA =============================================== */
.quicklinks { position: relative; z-index: 5; margin-top: -2.5rem; }
.quicklinks__card { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; background: rgb(255 255 255 / 50%); backdrop-filter: blur(30px); border-radius: var(--radius); box-shadow: var(--shadow-lg); }
.quicklinks__card::-webkit-scrollbar { display: none; }
.quicklink { flex: 0 0 42%; scroll-snap-align: start; display: grid; justify-items: center; gap: .6rem; padding: 1.25rem .75rem; text-align: center; border-radius: var(--radius); transition: color var(--t-fast); }
.quicklink img { height: 64px; width: auto; max-width: 110px; object-fit: contain; transition: transform var(--t) var(--ease); }
.quicklink:hover img { transform: translateY(-4px) scale(1.04); }
.quicklink span { font-size: .82rem; line-height: .9rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--c-muted); transition: color var(--t-fast); }
.quicklink:hover span, .quicklink.is-current span { color: var(--c-brand); }
.brand-strip { display: grid; gap: 1rem; padding: 2.5rem; }
.brand-strip__label { font-family: var(--ff-display); font-size: var(--fs-xs); font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--c-muted); text-align: center; }
.brand-strip__marquee { --gap: 3rem; }
.brand-strip__marquee .marquee__track { animation-duration: 40s; }
.brand-logo { display: grid; place-items: center; height: 56px; }
.brand-logo img { height: 40px; width: auto; max-width: 170px; object-fit: contain; filter: grayscale(1); opacity: .65; transition: filter var(--t), opacity var(--t); }
.brand-logo:hover img { filter: none; opacity: 1; }

/* 09. CATÁLOGO ============================================================ */
.catalog__head { display: grid; gap: 1.5rem; margin-bottom: 2.5rem; }
.filters { display: grid; gap: .75rem; }
.filters__meta { display: flex; justify-content: space-between; align-items: center; font-size: var(--fs-sm); color: var(--c-muted); margin-bottom: 1.25rem; }
.filters__reset { color: var(--c-brand); font-weight: 600; font-size: var(--fs-sm); }

.product-grid { display: grid; gap: 1.5rem; }
.product-card { display: flex; flex-direction: column; background: var(--c-white); border: 1px solid var(--c-line); border-radius: var(--radius-lg); overflow: hidden; transition: transform var(--t) var(--ease), box-shadow var(--t) var(--ease); }
.product-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.product-card[hidden] { display: none; }
.product-card.is-entering { animation: cardIn .5s var(--ease) both; }
@keyframes cardIn { from { opacity: 0; transform: translateY(16px); } }
.product-card__media { position: relative; aspect-ratio: 16 / 10; display: grid; place-items: center; padding: 1.5rem 2rem; background: radial-gradient(circle at 50% 60%, #ffffff 0%, var(--c-surface) 70%); overflow: hidden; }
.product-card__media img { max-height: 100%; width: auto; object-fit: contain; filter: drop-shadow(0 18px 18px rgba(13,29,22,.18)); transition: transform .8s var(--ease); }
.product-card:hover .product-card__media img { transform: scale(1.05); }
.product-card__media--photo { padding: 0; }
.product-card__media--photo img { width: 100%; height: 100%; object-fit: cover; filter: none; }
.product-card__badges { position: absolute; top: 1rem; left: 1rem; display: flex; gap: .4rem; flex-wrap: wrap; }
.product-card__body { display: flex; flex-direction: column; gap: 1rem; padding: 1.5rem; flex: 1; }
.product-card__cat { font-size: var(--fs-xs); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--c-brand); }
.product-card__title { font-size: var(--fs-lg); color: var(--c-primary); font-weight: 800; }
.product-card__desc { font-size: var(--fs-sm); color: var(--c-muted); }
.specs { display: grid; grid-template-columns: repeat(2, 1fr); gap: .5rem; }
.spec { display: flex; align-items: center; gap: .6rem; padding: .55rem .7rem; border-radius: var(--radius-sm); background: var(--c-surface); font-size: var(--fs-xs); line-height: 1.25; color: var(--c-muted); }
.spec svg { width: 20px; height: 20px; color: var(--c-brand); flex-shrink: 0; }
.spec strong { display: block; font-size: var(--fs-sm); color: var(--c-ink); }
.product-card__footer { margin-top: auto; display: flex; gap: .5rem; flex-wrap: wrap; }
.catalog__empty { display: none; text-align: center; padding: 3rem 1rem; border: 1px dashed var(--c-line); border-radius: var(--radius); color: var(--c-muted); }
.catalog__empty.is-visible { display: block; }

/* 10. NOSOTROS (hero con rotador de industrias) =========================== */
.about { position: relative; overflow: hidden; color: var(--c-white); background: var(--c-primary-800); }
.about__bg { position: absolute; inset: 0; }
.about__bg img { width: 100%; height: 100%; object-fit: cover; }
.about__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(7,35,26,.95) 0%, rgba(7,35,26,.8) 50%, rgba(7,35,26,.55) 100%); }
.about__inner { position: relative; z-index: 1; display: grid; gap: 3rem; align-items: center; min-height: 640px; padding-block: var(--space-section); }
.about__text { display: grid; gap: 1.25rem; max-width: 600px; }
.about__text p { color: rgba(255,255,255,.82); font-size: var(--fs-md); }
.about__points { display: grid; gap: .6rem; margin-top: .5rem; }
.about__points li { display: flex; gap: .7rem; align-items: center; font-weight: 500; }
.about__points svg { width: 22px; height: 22px; color: var(--c-accent); flex-shrink: 0; }

/* Rotador de textos e íconos */
.rotator { position: relative; display: grid; gap: 1.5rem; padding: 2rem; border-radius: var(--radius-lg); background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.14); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.rotator__label { font-size: var(--fs-xs); font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.65); }
.rotator__window { position: relative; height: 150px; overflow: hidden; }
.rotator__item { position: absolute; inset: 0; display: flex; align-items: center; gap: 1.5rem; opacity: 0; transform: translateY(100%); transition: transform .7s var(--ease), opacity .7s var(--ease); }
.rotator__item.is-active { opacity: 1; transform: none; }
.rotator__item.is-leaving { opacity: 0; transform: translateY(-100%); }
.rotator__icon { flex-shrink: 0; width: 96px; height: 96px; display: grid; align-content: center; place-items: center; border-radius: 50%; border: 3px solid var(--c-accent); color: var(--c-accent); }
.rotator__icon svg { width: 44px; height: 44px; }
.rotator__item strong { display: block; font-family: var(--ff-display); font-weight: 800; font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.4rem); text-transform: uppercase; line-height: 1; }
.rotator__item span { display: block; margin-top: .5rem; font-size: var(--fs-sm); color: rgba(255,255,255,.8); }
.rotator__chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.rotator__chip { display: inline-flex; align-items: center; gap: .45rem; padding: .45rem .9rem; border-radius: var(--radius-pill); font-size: var(--fs-xs); font-weight: 600; color: rgba(255,255,255,.75); border: 1px solid rgba(255,255,255,.2); transition: all var(--t-fast); }
.rotator__chip svg { width: 16px; height: 16px; }
.rotator__chip:hover { color: var(--c-white); border-color: var(--c-accent); }
.rotator__chip[aria-current="true"] { background: var(--c-accent); color: var(--c-primary-800); border-color: var(--c-accent); }

/* 11. CIFRAS (anillos) ==================================================== */
.stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem 1rem; }
.stat { display: grid; justify-items: center; gap: .9rem; text-align: center; padding: 1.5rem .5rem; border-radius: 50%; }
.stat__ring { width: clamp(120px, 10vw + 60px, 170px); aspect-ratio: 1; display: grid; max-width: 100%; place-items: center; align-content: center; border-radius: 50%; border: 4px solid var(--c-accent); }
.stat__ring img { filter: invert(1);}
.stat__value { font-family: var(--ff-display); font-weight: 800; font-size: clamp(1.5rem, 1rem + 1.6vw, 2.4rem); color: var(--c-primary); font-variant-numeric: tabular-nums; }
.stat__label { font-size: var(--fs-sm); font-weight: 600; color: var(--c-muted); max-width: 190px; }

/* 12. SHOWCASE (proyectos en index + hero de producto) ====================
   Slider a pantalla completa con fondo, texto a la izquierda y tarjetas de
   vista previa a la derecha que muestran los siguientes elementos. */
.showcase { position: relative; overflow: hidden; min-height: clamp(640px, 100svh, 960px); background: var(--c-primary-800); color: var(--c-white); touch-action: pan-y; }
.showcase__slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity 1s var(--ease), visibility 0s linear 1s; }
.showcase__slide.is-active { opacity: 1; visibility: visible; z-index: 1; transition: opacity 1s var(--ease); }
.showcase__bg { position: absolute; inset: 0; overflow: hidden; }
.showcase__bg img { width: auto; height: 100%; margin-left: auto; object-fit: inherit; transform: scale(1); transition: transform 1.6s var(--ease); mask-image: linear-gradient(to right, transparent 0%, black 25%); -webkit-mask-image: linear-gradient(to right, #00000000 0%, black 25%); }
.showcase__slide.is-active .showcase__bg img { transform: scale(1); }
.showcase__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(7,35,26,.92) 0%, rgba(7,35,26,.25) 50%, rgba(7,35,26,.1) 100%), linear-gradient(0deg, rgba(7,35,26,.9), transparent 50%); }
.showcase__content { position: relative; z-index: 2; display: flex; align-items: center; height: 100%; padding-block: 8rem 15rem; }
.showcase__text { max-width: 560px; display: grid; gap: 1rem; }
.showcase__num { font-family: var(--ff-display); font-weight: 800; font-size: var(--fs-sm); color: var(--c-accent); letter-spacing: .1em; }
.showcase__title { font-size: clamp(2.2rem, 1.2rem + 2.8vw, 3.4rem); text-transform: uppercase; line-height: .95; }
.showcase__text p { color: rgba(255,255,255,.82); }
.showcase__ctas { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: .5rem; }

/* Tarjetas de vista previa */
.showcase__ui { position: absolute; z-index: 3; left: 0; right: 0; bottom: 2rem; }
.showcase__ui .container { display: grid; gap: 1.25rem; }
.showcase__cards { display: flex; gap: .75rem; overflow-x: auto; scrollbar-width: none; padding-block: .25rem; }
.showcase__cards::-webkit-scrollbar { display: none; }
.showcase__card { position: relative; flex: 0 0 140px; height: 180px; border-radius: var(--radius); overflow: hidden; text-align: left; box-shadow: 0 20px 40px -20px rgba(0,0,0,.8); transition: transform .5s var(--ease), box-shadow .5s var(--ease), opacity var(--t); will-change: transform; }
.showcase__card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.showcase__card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(7,35,26,.9), transparent 60%); }
.showcase__card span { position: absolute; z-index: 1; left: .9rem; right: .9rem; bottom: .8rem; font-family: var(--ff-display); font-weight: 700; font-size: .78rem; line-height: 1.2; }
.showcase__card:hover { transform: translateY(-8px); box-shadow: 0 30px 50px -20px rgba(0,0,0,.9); }
.showcase__card:hover img { transform: scale(1.08); }
.showcase__card[aria-current="true"] { display: none; } /* la activa ya está de fondo */
.showcase__card.is-entering { animation: cardIn .6s var(--ease) backwards; } /* backwards: al terminar no bloquea la transición del hover */
.showcase__card.is-off { display: none; } /* solo 3 miniaturas visibles */
.showcase__nav { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.showcase__count { font-family: var(--ff-display); font-weight: 800; font-size: var(--fs-lg); font-variant-numeric: tabular-nums; }
.showcase__count small { font-size: var(--fs-sm); font-weight: 600; color: rgba(255,255,255,.6); }

/* Variante producto: recorte del equipo sobre escenario degradado */
.showcase--product .showcase__bg--stage { background: radial-gradient(circle at 70% 55%, #1d5a40 0%, var(--c-primary-800) 65%); }
.showcase--product .showcase__bg--stage::after { display: none; }
.showcase__product { position: absolute; z-index: 1; right: 4%; top: 52%; translate: 0 -50%; width: min(52%, 640px); height: 70%; display: grid; place-items: center; opacity: 0; transform: translateX(60px) scale(.95); transition: transform 1s var(--ease) .15s, opacity 1s var(--ease) .15s; pointer-events: none; }
.showcase__slide.is-active .showcase__product { opacity: 1; transform: none; }
.showcase__product img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 40px 40px rgba(0,0,0,.5)); }
.showcase__ghost { position: absolute; z-index: 0; left: 0; right: 0; bottom: 18%; text-align: center; font-family: var(--ff-display); font-weight: 800; font-size: clamp(4rem, 14vw, 15rem); line-height: 1; color: transparent; -webkit-text-stroke: 1px rgba(255,255,255,.12); white-space: nowrap; pointer-events: none; text-transform: uppercase; }
.showcase--product .showcase__card img { object-fit: contain; padding: .75rem; background: var(--c-white); }
.showcase--product .showcase__card img.is-photo { object-fit: cover; padding: 0; }
.showcase--product .showcase__card[aria-current="true"] { display: block; outline: 2px solid var(--c-accent); outline-offset: 2px; }
.breadcrumb { font-size: var(--fs-xs); color: rgba(255,255,255,.7); }
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: .4rem; list-style: none; padding: 0; margin: 0; }
.breadcrumb li:not(:last-child)::after { content: "/"; margin-left: .4rem; opacity: .5; }
.breadcrumb a:hover { color: var(--c-accent); }

/* 13. MARCAS Y CLIENTES =================================================== */
.brands { background: var(--c-primary); color: var(--c-white); }
.brands__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: .75rem; }
.brand-card { display: grid; place-items: center; height: 96px; padding: 1rem 1.25rem; border-radius: var(--radius); background: var(--c-white); transition: transform var(--t) var(--ease); }
.brand-card:hover { transform: translateY(-4px); }
.brand-card img { max-height: 44px; width: auto; object-fit: contain; }

.marquee { --gap: 1rem; display: flex; gap: var(--gap); overflow: hidden; user-select: none; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee__track { flex-shrink: 0; display: flex; align-items: center; gap: 2rem; min-width: 100%; justify-content: space-around; animation: marquee 50s linear infinite; }
.marquee--reverse .marquee__track { animation-direction: reverse; }
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(calc(-100% - var(--gap))); } }
.clients { display: grid; gap: 1rem; }
.client-logo { display: grid; place-items: center; width: 170px; height: 86px; padding: .75rem 1.25rem; border-radius: var(--radius); background: var(--c-white); border: 1px solid var(--c-line); }
.client-logo img { max-height: 48px; width: auto; object-fit: contain; filter: grayscale(1); opacity: .7; transition: filter var(--t), opacity var(--t); }
.client-logo:hover img { filter: none; opacity: 1; }

/* 14. TESTIMONIOS ========================================================= */
/* Todas las tarjetas comparten la misma celda del grid (alto = la más alta) y se
   desplazan con --rel: 0 = centro, -1/1 = laterales, el resto oculto. */
.testimonials { --gap: 1.25rem; --w: 82%; display: grid; overflow: hidden; padding-block: 5rem; touch-action: pan-y; }
.testimonial { grid-area: 1 / 1; justify-self: center; width: var(--w); display: flex; flex-direction: column; gap: 1.25rem; padding: 2rem; border-radius: var(--radius-lg); background: var(--c-white); border: 1px solid var(--c-line);
  transform: translateX(calc(var(--rel, 0) * (100% + var(--gap)))); opacity: 0; visibility: hidden;
  transition: transform .7s var(--ease), opacity .7s var(--ease), visibility 0s linear .7s, box-shadow .7s var(--ease); }
.testimonial.is-side { opacity: .2; visibility: visible; cursor: pointer; transition-delay: 0s; }
.testimonial.is-center { opacity: 1; visibility: visible; transition-delay: 0s; box-shadow: var(--shadow-lg); }
.testimonial.no-anim { transition: none; }
.testimonial__logo--placeholder { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 50%; background: var(--c-surface); color: var(--c-brand); }
.testimonial__logo--placeholder svg { width: 28px; height: 28px; }
.testimonials__nav { display: flex; align-items: center; justify-content: center; gap: 1rem; margin-top: 1.5rem; }
.testimonials__nav .dots { margin-top: 0; }
.arrow-btn--dark { color: var(--c-primary); box-shadow: inset 0 0 0 1.5px var(--c-line); }
.testimonial__logo { height: 54px; width: auto; max-width: 140px; object-fit: contain; object-position: left; }
.testimonial blockquote { font-size: var(--fs-base); color: var(--c-text); flex: 1; }
.testimonial blockquote::before { content: "“"; display: block; font-family: var(--ff-display); font-weight: 800; font-size: 3.5rem; line-height: .6; color: var(--c-accent); margin-bottom: .5rem; }
.testimonial figcaption { padding-top: 1rem; border-top: 1px solid var(--c-line); font-size: var(--fs-sm); }
.testimonial figcaption strong { display: block; color: var(--c-primary); }
.testimonial figcaption span { color: var(--c-muted); font-size: var(--fs-xs); }
.dots { display: flex; justify-content: center; gap: .5rem; margin-top: 1.5rem; }
.dots button { width: 10px; height: 10px; border-radius: 50%; background: var(--c-line); transition: width var(--t) var(--ease), background var(--t); }
.dots button[aria-current="true"] { width: 28px; border-radius: 6px; background: var(--c-accent); }

/* 15. FICHA DE PRODUCTO =================================================== */
.pdp { display: grid; grid-template-columns: minmax(0, 1fr); gap: 3rem; padding-block: var(--space-section); } /* minmax(0,…): la columna nunca crece más que la pantalla */
.pdp > * { min-width: 0; }
.pdp__info { display: grid; gap: 1.5rem; align-content: start; }
.pdp__info h2 { font-size: var(--fs-xl); text-transform: uppercase; color: var(--c-primary); line-height: 1; overflow-wrap: anywhere; } /* corta palabras largas antes que desbordar */
.pdp__badges { display: flex; gap: .4rem; flex-wrap: wrap; }
.pdp__label { font-size: var(--fs-xs); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--c-muted); margin-bottom: .5rem; }
.chips { display: flex; gap: .5rem; flex-wrap: wrap; }
.chip { display: inline-flex; align-items: center; min-height: 40px; padding: .4rem 1rem; border-radius: var(--radius-pill); border: 1px solid var(--c-line); font-size: var(--fs-sm); font-weight: 600; color: var(--c-primary); }
.chip[aria-pressed="true"] { background: var(--c-primary); border-color: var(--c-primary); color: var(--c-white); }
.key-specs { display: grid; grid-template-columns: repeat(2, 1fr); gap: .75rem; }
.key-spec { display: grid; gap: .35rem; padding: 1.1rem; border-radius: var(--radius); background: var(--c-surface); }
.key-spec svg { width: 26px; height: 26px; color: var(--c-brand); }
.key-spec strong { font-family: var(--ff-display); font-size: var(--fs-lg); color: var(--c-primary); line-height: 1.1; }
.key-spec span { font-size: var(--fs-xs); color: var(--c-muted); text-transform: uppercase; letter-spacing: .06em; }
.pdp__actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.pdp__trust { display: grid; gap: .6rem; font-size: var(--fs-sm); }
.pdp__trust li { display: flex; gap: .6rem; align-items: center; }
.pdp__trust svg { width: 20px; height: 20px; color: var(--c-brand); flex-shrink: 0; }
.tabs { display: flex; gap: .25rem; padding: .3rem; border-radius: var(--radius-pill); background: var(--c-surface); overflow-x: auto; scrollbar-width: none; margin-bottom: 1.75rem; }
.tab { flex: 1 0 auto; min-height: 44px; padding: .5rem 1.1rem; border-radius: var(--radius-pill); font-family: var(--ff-display); font-weight: 700; font-size: var(--fs-sm); color: var(--c-muted); transition: background var(--t-fast), color var(--t-fast); }
.tab:hover { color: var(--c-primary); }
.tab[aria-selected="true"] { background: var(--c-primary); color: var(--c-white); }
.tab-panel[hidden] { display: none; }
.tab-panel { animation: cardIn .4s var(--ease); }
.prose { display: grid; gap: 1rem; color: #3a4a43; }
.prose h3 { font-size: var(--fs-md); color: var(--c-primary); margin-top: .5rem; }
.prose strong { color: var(--c-ink); }
.spec-table { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); }
.spec-table th, .spec-table td { text-align: left; padding: .85rem 1rem; border-bottom: 1px solid var(--c-line); vertical-align: top; }
.spec-table th { width: 45%; color: var(--c-muted); font-weight: 500; }
.spec-table tr:nth-child(odd) { background: var(--c-surface); }
.sticky-quote { position: fixed; left: 0; right: 0; bottom: 0; z-index: 80; display: flex; gap: .5rem; padding: .75rem var(--gutter); background: var(--c-white); box-shadow: 0 -10px 30px -15px rgba(0,0,0,.3); transform: translateY(100%); transition: transform var(--t) var(--ease); }
.sticky-quote.is-visible { transform: none; }
.sticky-quote .btn { flex: 1; }

/* 16. FOOTER, WHATSAPP, VOLVER ARRIBA ===================================== */
.footer { background: var(--c-primary-800); color: rgba(255,255,255,.7); padding-top: 6.5rem; font-size: var(--fs-sm); }
.footer__top { display: grid; gap: 2.5rem; padding-bottom: 3rem; border-bottom: 1px solid rgba(255,255,255,.12); grid-template-columns: minmax(0, 1fr); }
.footer__brand img { height: 44px; width: auto; margin-bottom: 1.25rem; }
.footer__brand p { max-width: 340px; }
.footer__social { display: flex; gap: .5rem; margin-top: 1.5rem; }
.footer__social a { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; border: 1px solid rgba(255,255,255,.2); transition: all var(--t-fast); }
.footer__social a:hover { background: var(--c-accent); border-color: var(--c-accent); color: var(--c-primary-800); }
.footer__social svg { width: 18px; height: 18px; }
.footer__cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem 1.5rem; }
.footer h3 { font-size: var(--fs-xs); font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--c-white); margin-bottom: 1rem; }
.footer li + li { margin-top: .6rem; }
.footer a, .footer li { overflow-wrap: anywhere; }
.footer address { font-style: normal; }
.footer__phone { color: var(--c-white); font-weight: 600; }
.footer__bottom { display: flex; flex-direction: column; gap: .75rem; justify-content: space-between; padding-block: 1.5rem; font-size: var(--fs-xs); }
.footer__bottom nav { display: flex; gap: 1.25rem; }

.wa-float { position: fixed; right: 1rem; bottom: 1rem; z-index: 90; width: 58px; height: 58px; display: grid; place-items: center; border-radius: 50%; background: #25d366; color: #fff; box-shadow: 0 12px 30px -8px rgba(37,211,102,.6); transition: transform var(--t) var(--ease); }
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 30px; height: 30px; }
.to-top { position: fixed; right: 1.4rem; bottom: 5.25rem; z-index: 89; width: 46px; height: 46px; display: grid; place-items: center; border-radius: 50%; background: var(--c-primary); color: var(--c-white); box-shadow: var(--shadow); opacity: 0; transform: translateY(10px); pointer-events: none; transition: all var(--t) var(--ease); }
.to-top.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.to-top svg { width: 20px; height: 20px; }
.pdp-page .wa-float { bottom: 5rem; }
.pdp-page .to-top { bottom: 9.25rem; }
.pb-0 { padding-bottom: 0;}

/* 17. ANIMACIONES DE ENTRADA ============================================== */
.js [data-reveal] { opacity: 0; transform: translateY(36px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--reveal-delay, 0s); }
.js [data-reveal].is-revealed { opacity: 1; transform: none; }

/* 18. MEDIA QUERIES ======================================================= */
@media (min-width: 560px) {
  .topline__hide-sm { display: inline-flex !important; }
  .quicklink { flex-basis: 28%; }
  .brands__grid { grid-template-columns: repeat(3, 1fr); }
  .showcase__card { flex-basis: 170px; height: 220px; }
}

@media (min-width: 768px) {
  .filters { grid-template-columns: repeat(3, 1fr); }
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 2rem; } /* 2 por línea */
  .stats { grid-template-columns: repeat(4, 1fr); }
  .brands__grid { grid-template-columns: repeat(4, 1fr); }
  .footer__bottom { flex-direction: row; align-items: center; }
  .key-specs { grid-template-columns: repeat(4, 1fr); }
  /* Testimonios: 3 visibles (centro + laterales) */
  .testimonials { --w: calc((100% - 2 * var(--gap)) / 3); }
  .about__inner { grid-template-columns: 1.1fr .9fr; }
}

@media (min-width: 1100px) {
  :root { --header-h: 84px; }
  .header__cta { display: inline-flex; }
  .nav-toggle { display: none; }
  .header__logo img { height: 46px; }

  /* Nav escritorio */
  .nav { position: static; inset: auto; z-index: auto; flex-direction: row; padding: 0 !important; background: none; overflow: visible; opacity: 1; visibility: visible; transform: none; transition: none; }
  .nav__list { flex-direction: row; align-items: center; gap: .1rem; }
  .nav__item { border: 0; position: relative; }
  .nav__link { padding: .55rem .75rem; font-family: var(--ff-body); font-size: var(--fs-sm); font-weight: 600; gap: .3rem; position: relative; }
  .nav__link::after { content: ""; position: absolute; left: .75rem; right: .75rem; bottom: .2rem; height: 2px; background: var(--c-accent); transform: scaleX(0); transition: transform var(--t) var(--ease); }
  .nav__link:hover::after, .nav__link[aria-expanded="true"]::after { transform: scaleX(1); }
  .nav__link svg { width: 14px; height: 14px; }
  .nav__foot { display: none; }

  /* Submenú desplegable */
  .submenu { display: block; position: absolute; top: calc(100% + 12px); left: 50%; translate: -50% 0; width: 560px; padding: 1rem; border-radius: var(--radius); background: var(--c-white); box-shadow: var(--shadow-lg); opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity var(--t) var(--ease), transform var(--t) var(--ease), visibility 0s linear var(--t); }
  .submenu::before { content: ""; position: absolute; left: 0; right: 0; top: -14px; height: 14px; } /* puente de hover */
  .submenu.is-open { opacity: 1; visibility: visible; transform: none; transition: opacity var(--t) var(--ease), transform var(--t) var(--ease); }
  .submenu__grid { grid-template-columns: repeat(2, 1fr); gap: .25rem; }
  .submenu__link { color: var(--c-text); }
  .submenu__link:hover { background: var(--c-surface); color: var(--c-primary); }
  .submenu__thumb { background: var(--c-surface); }

  .hero__content { padding-bottom: 13rem; }
  .hero__controls { bottom: 6.5rem; }
  .quicklinks { margin-top: -4rem; }
  .quicklinks__card { overflow: visible; }
  .quicklink { flex: 1; padding: 1.75rem 1rem; }
  .quicklink img { height: 78px; }

  .catalog__head { grid-template-columns: minmax(0, .8fr) minmax(0, 1.7fr); align-items: end; }
  .product-card { flex-direction: row; } /* tarjeta horizontal en 2 columnas */
  .product-card__media { flex: 0 0 44%; aspect-ratio: auto; min-height: 300px; }
  .product-card__media img { max-height: 260px; }

  .showcase__ui { bottom: 3rem; }
  .showcase__ui .container { grid-template-columns: 1fr auto; align-items: end; }
  .showcase__cards { justify-content: flex-end; overflow: visible; }
  .showcase__nav { grid-row: 2; grid-column: 1 / -1; }
  .showcase__content { padding-bottom: 10rem; }
  .showcase--product .showcase__content { align-items: center; }
  .showcase--product .showcase__cards { justify-content: flex-start; }
  .showcase--product .showcase__slide:first-child .showcase__content { padding-bottom: 18rem; }
  .showcase--product .showcase__ui .container { grid-template-columns: 1fr; }
  .showcase--product .showcase__product { top: 48%; height: 66%; right: 6%; width: 44%; }

  .brands__grid { grid-template-columns: repeat(7, 1fr); }
  .pdp { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 4.5rem; }
  .pdp__info { position: sticky; top: calc(var(--header-h) + 2rem); }
  .key-specs { grid-template-columns: repeat(2, 1fr); }
  .sticky-quote { display: none; }
  .pdp-page .wa-float { bottom: 1rem; }
  .pdp-page .to-top { bottom: 5.25rem; }
  .footer__top { grid-template-columns: 1fr 2.6fr; gap: 4rem; }
  .footer__cols { grid-template-columns: repeat(4, 1fr); }
}

@media (min-width: 1920px) { :root { --container: 1520px; font-size: 17px; } }
@media (min-width: 2400px) { :root { --container: 1760px; font-size: 18px; } }


/* Hero de producto en móvil/tablet: equipo arriba, texto abajo */
@media (max-width: 1099px) {
  .hero__controls .container { padding-right: calc(var(--gutter) + 64px); } /* espacio para el botón de WhatsApp */
  .showcase--product { min-height: max(100svh, 960px); }
      .showcase--product .showcase__product { right: 0; translate: 0; top: calc(var(--topline-h) + var(--header-h) + .5rem); width: 100%; height: 30%; position: absolute;} /* absolute: la imagen flota y no empuja el texto hacia abajo */
  /* Espacio reservado abajo = alto miniatura (180px) + relleno de la fila de miniaturas (.5rem) + separación (1.25rem) + fila 01/03 y flechas (46px) + margen inferior (2rem) + aire (1.5rem) */
  .showcase--product .showcase__slide:first-child .showcase__content { align-items: flex-end; padding-bottom: calc(180px + .5rem + 1.25rem + 46px + 2rem + 1.5rem); }
  .showcase__ghost { bottom: auto; top: 30%; }
  .showcase--product .showcase__nav { padding-right: 64px; } /* que el botón de WhatsApp no tape la flecha → */
}
/* Desde 560px las miniaturas miden 220px: mismas cuentas con 220 */
@media (min-width: 560px) and (max-width: 1099px) {
  .showcase--product .showcase__slide:first-child .showcase__content { padding-bottom: calc(220px + .5rem + 1.25rem + 46px + 2rem + 1.5rem); }
}
/* Hero de producto en móvil/: media pantalla */
@media (max-width: 998px) {
  .hero {
      min-height: 70vh;
  }
  .brand-strip {
    padding: 1.5rem;
  }
  .filters {
    gap: 0;
    grid-auto-flow: column;
  }
  .product-card__footer {
    justify-content: space-between;
  }
  .product-card__footer .btn {
    width: 48%;
  }
  .showcase__content {
    align-items: flex-start;
  }
  .showcase__bg img {
    width: auto;
    height: 50%;
    object-fit: cover;
    mask-image: linear-gradient(to top, transparent 0%, black 25%);
    -webkit-mask-image: linear-gradient(to top, #00000000 0%, black 45%);
  }
  .showcase--product {
      min-height: max(64vh, 780px); /* 64vh como querías, pero nunca menos de lo que ocupan imagen + título + miniaturas */
  }
}
/* 19. MOVIMIENTO REDUCIDO ================================================= */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
  .marquee__track { animation: none; }
}
