/* ============================================================
   premium.css — Glasscor-Pádel  |  Capa visual premium
   Carga DESPUÉS de styles.css + responsive.css
   ============================================================ */

/* ── Variables adicionales ───────────────────────────────── */
:root {
  --ease-premium:      cubic-bezier(0.4, 0, 0.2, 1);
  --shadow-glow-sm:    0 0 20px rgba(0,180,216,0.25);
  --shadow-card-hover: 0 24px 64px rgba(0,40,100,0.35), 0 0 32px rgba(0,180,216,0.12);
  --border-subtle:     1px solid rgba(0,58,112,0.1);

  /* Escala de espaciado semántico */
  --space-xs:  0.25rem;   /*  4px */
  --space-sm:  0.75rem;   /* 12px */
  --space-md:  1.25rem;   /* 20px */
  --space-lg:  2rem;      /* 32px */
  --space-xl:  3.5rem;    /* 56px */
  --space-2xl: clamp(4rem, 8vw, 7rem);
  --space-3xl: clamp(5.5rem, 10vw, 9rem);
}

/* ══════════════════════════════════════════════════════════
   TIPOGRAFÍA GLOBAL
   ══════════════════════════════════════════════════════════ */

h1, h2, h3 { text-wrap: balance; }

.hero-subtitle, .section-subtitle, .lead,
.about-content p, .product-card-text,
.service-text, .footer-tagline, .cta-text {
  text-wrap: pretty;
}

.hero-title { letter-spacing: -0.02em; }

/* ══════════════════════════════════════════════════════════
   HERO
   ══════════════════════════════════════════════════════════ */

.hero { background: #020912; }

/* Malla geométrica animada */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0,180,216,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,180,216,0.035) 1px, transparent 1px);
  background-size: 64px 64px;
  animation: gridDrift 25s linear infinite;
  z-index: 1;
  pointer-events: none;
}

@keyframes gridDrift {
  0%   { transform: translate(0, 0); }
  100% { transform: translate(64px, 64px); }
}

/* Orbes de luz volumétrica */
.hero-lights {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}

.hero-orb { position: absolute; border-radius: 50%; }

.hero-orb-1 {
  width: 700px; height: 700px;
  background: radial-gradient(circle, rgba(0,119,204,0.12) 0%, transparent 65%);
  top: -200px; right: -150px;
  animation: orbFloat1 10s ease-in-out infinite alternate;
}

.hero-orb-2 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(0,180,216,0.1) 0%, transparent 65%);
  bottom: -100px; left: -100px;
  animation: orbFloat2 14s ease-in-out infinite alternate;
}

.hero-orb-3 {
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(0,180,216,0.08) 0%, transparent 65%);
  top: 40%; left: 50%; transform: translateX(-50%);
  animation: orbFloat3 8s ease-in-out infinite alternate;
}

@keyframes orbFloat1 {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(-40px, 30px) scale(1.1); }
}
@keyframes orbFloat2 {
  from { transform: translate(0, 0); }
  to   { transform: translate(30px, -50px) scale(1.08); }
}
@keyframes orbFloat3 {
  from { transform: translateX(-50%) scale(0.9); opacity: 0.6; }
  to   { transform: translateX(-50%) scale(1.1); opacity: 1; }
}

/* Líneas geométricas animadas */
.hero-geo {
  position: absolute; inset: 0;
  z-index: 1; pointer-events: none; overflow: hidden;
}

.hero-geo-line {
  position: absolute; height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(0,180,216,0.35) 50%, transparent 100%);
}

.hero-geo-line:nth-child(1) { top: 22%; left: 0; width: 45%; animation: lineAppearL 7s ease-in-out infinite; }
.hero-geo-line:nth-child(2) { top: 55%; right: 0; width: 35%; animation: lineAppearR 9s ease-in-out infinite 2.5s; }
.hero-geo-line:nth-child(3) { bottom: 28%; left: 15%; width: 25%; animation: lineAppearL 6s ease-in-out infinite 1.2s; }

@keyframes lineAppearL {
  0%, 100% { opacity: 0; transform: scaleX(0); transform-origin: left; }
  20%, 80% { opacity: 1; transform: scaleX(1); }
}
@keyframes lineAppearR {
  0%, 100% { opacity: 0; transform: scaleX(0); transform-origin: right; }
  20%, 80% { opacity: 1; transform: scaleX(1); }
}

/* Esquinas decorativas */
.hero-corner { position: absolute; z-index: 2; pointer-events: none; }
.hero-corner-tl {
  top: 90px; left: 40px; width: 70px; height: 70px;
  border-top: 1px solid rgba(0,180,216,0.45);
  border-left: 1px solid rgba(0,180,216,0.45);
  opacity: 0.7;
}
.hero-corner-br {
  bottom: 90px; right: 40px; width: 70px; height: 70px;
  border-bottom: 1px solid rgba(0,180,216,0.45);
  border-right: 1px solid rgba(0,180,216,0.45);
  opacity: 0.7;
}

.hero-content { z-index: 3; }

/* ── Animaciones de entrada del hero ─────────────────────── */
@keyframes heroFadeUp {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Badge: fade-up de entrada + pulso cíclico encadenado */
.hero-badge {
  animation:
    heroFadeUp 0.6s var(--ease-premium) 0.2s both,
    badgePulse  4s ease-in-out            1s   infinite;
}

.hero-title    { animation: heroFadeUp 0.75s var(--ease-premium) 0.35s both; }
.hero-subtitle { animation: heroFadeUp 0.65s var(--ease-premium) 0.55s both; }
.hero-actions  { animation: heroFadeUp 0.55s var(--ease-premium) 0.72s both; }

/* Scroll indicator: sustituye el bounce de styles.css */
.hero-scroll {
  flex-direction: column;
  font-size: 0.62rem;
  letter-spacing: 0.22em;
  color: rgba(255,255,255,0.35);
  gap: 0.5rem;
  /* Animación propia: preserva translateX(-50%) de styles.css */
  animation: heroScrollFadeUp 0.5s var(--ease-premium) 1.1s both;
}

/* Keyframe dedicado para hero-scroll — combina la traslación de centrado */
@keyframes heroScrollFadeUp {
  from { opacity: 0; transform: translateX(-50%) translateY(22px); }
  to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}
.hero-scroll::before {
  content: '';
  display: block;
  width: 1px; height: 52px;
  background: linear-gradient(to bottom, transparent, rgba(0,180,216,0.7));
  animation: scrollBeam 2.4s ease-in-out infinite;
}
.hero-scroll::after { display: none; }

@keyframes scrollBeam {
  0%   { transform: scaleY(0); transform-origin: top;    opacity: 0; }
  40%  { transform: scaleY(1); transform-origin: top;    opacity: 1; }
  80%  { transform: scaleY(1); transform-origin: bottom; opacity: 1; }
  100% { transform: scaleY(0); transform-origin: bottom; opacity: 0; }
}

/* ── Badge ───────────────────────────────────────────────── */
.hero-badge {
  background: rgba(0,180,216,0.06);
  border: 1px solid rgba(0,180,216,0.22);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  padding: 0.45rem 1.2rem;
  box-shadow: 0 0 24px rgba(0,180,216,0.1), inset 0 1px 0 rgba(255,255,255,0.08);
}

@keyframes badgePulse {
  0%, 100% { box-shadow: 0 0 24px rgba(0,180,216,0.10), inset 0 1px 0 rgba(255,255,255,0.08); }
  50%       { box-shadow: 0 0 36px rgba(0,180,216,0.22), inset 0 1px 0 rgba(255,255,255,0.14); }
}

/* Hero title span — gradiente luminoso solicitado explícitamente */
.hero-title span {
  background: linear-gradient(135deg, #fff 20%, #00d4ff 65%, #7ee8ff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: none;
  filter: drop-shadow(0 0 22px rgba(0,180,216,0.5));
}

/* ══════════════════════════════════════════════════════════
   BOTONES
   ══════════════════════════════════════════════════════════ */

.btn {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

/* Shimmer sweep en hover */
.btn::before {
  content: '';
  position: absolute;
  top: 0; left: -80%;
  width: 50%; height: 100%;
  background: linear-gradient(105deg, transparent 30%, rgba(255,255,255,0.14) 50%, transparent 70%);
  pointer-events: none;
  transition: none;
}
.btn:hover::before { animation: shimmerSweep 0.55s ease forwards; }

@keyframes shimmerSweep {
  from { left: -80%; }
  to   { left: 140%; }
}

/* Active: escala y sombra colapsada */
.btn:active {
  transform: scale(0.98) !important;
  box-shadow: none !important;
  transition: transform 80ms ease, box-shadow 80ms ease !important;
}

.btn-accent {
  box-shadow: 0 4px 20px rgba(0,180,216,0.3), inset 0 1px 0 rgba(255,255,255,0.15);
}
.btn-accent:hover {
  transform: translateY(-2px) scale(1.01);
  box-shadow: 0 8px 32px rgba(0,180,216,0.45), inset 0 1px 0 rgba(255,255,255,0.2);
}

.btn-primary {
  box-shadow: 0 4px 20px rgba(0,119,204,0.3), inset 0 1px 0 rgba(255,255,255,0.1);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(0,119,204,0.45), inset 0 1px 0 rgba(255,255,255,0.15);
}

/* ══════════════════════════════════════════════════════════
   BADGES STRIP
   ══════════════════════════════════════════════════════════ */

.badges-strip {
  background: linear-gradient(135deg, #011428 0%, #002655 50%, #011428 100%);
  padding: 3rem 0;
  position: relative;
  overflow: hidden;
  border-top: 1px solid rgba(0,180,216,0.18);
  border-bottom: 1px solid rgba(0,180,216,0.18);
}

.badges-strip::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(0,180,216,0.07) 0%, transparent 55%),
    radial-gradient(ellipse at 80% 50%, rgba(0,119,204,0.07) 0%, transparent 55%);
  pointer-events: none;
}

.badge-item {
  padding: 1.5rem 2rem;
  transition: background 0.3s ease;
  border-right: 1px solid rgba(255,255,255,0.06) !important;
}
.badge-item:last-child { border-right: none !important; }
.badge-item:hover { background: rgba(0,180,216,0.04); }

.badge-icon {
  width: 56px; height: 56px;
  background: rgba(0,180,216,0.08);
  border: 1px solid rgba(0,180,216,0.2);
  box-shadow: 0 0 20px rgba(0,180,216,0.08);
  transition: all 0.35s var(--ease-premium);
}
.badge-item:hover .badge-icon {
  background: rgba(0,180,216,0.16);
  box-shadow: var(--shadow-glow-sm);
  transform: scale(1.1);
}
.badge-icon svg { stroke-width: 1.5; }
.badge-title    { font-size: 1rem; font-weight: 800; letter-spacing: 0.01em; }
.badge-desc     { font-size: 0.8rem; color: rgba(255,255,255,0.68); } /* 0.5 falla WCAG — subido a 0.68 */

/* Stagger refinado para todas las animaciones fade-in */
.fade-in-delay-1 { transition-delay: 0.12s; }
.fade-in-delay-2 { transition-delay: 0.24s; }
.fade-in-delay-3 { transition-delay: 0.36s; }
.fade-in-delay-4 { transition-delay: 0.48s; }

/* ══════════════════════════════════════════════════════════
   ANIMACIÓN FADE-IN — refinada (Emil: 4-40px, ≤ 600ms)
   ══════════════════════════════════════════════════════════ */

.fade-in {
  opacity: 0;
  transform: translateY(16px);       /* 28 → 16px: más refinado */
  transition:
    opacity  0.52s var(--ease-premium),
    transform 0.52s var(--ease-premium);
}
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* Variantes direccionales — para layouts split (about, contacto) */
.fade-in.fade-in-left  { transform: translateX(-20px); }
.fade-in.fade-in-right { transform: translateX(20px); }
.fade-in.fade-in-left.visible,
.fade-in.fade-in-right.visible { opacity: 1; transform: translate(0); }

/* Feature list: stagger en cascada cuando el padre recibe .visible
   Scoped a .fade-in para no afectar si el padre no tiene la clase (ej. subpages) */
.about-content.fade-in .feature-list .feature-item {
  opacity: 0;
  transform: translateX(-10px);
  transition:
    opacity   0.38s var(--ease-premium),
    transform 0.38s var(--ease-premium);
}
.about-content.fade-in.visible .feature-list .feature-item { opacity: 1; transform: translateX(0); }
.about-content.fade-in.visible .feature-list .feature-item:nth-child(1) { transition-delay: 0.12s; }
.about-content.fade-in.visible .feature-list .feature-item:nth-child(2) { transition-delay: 0.22s; }
.about-content.fade-in.visible .feature-list .feature-item:nth-child(3) { transition-delay: 0.32s; }
.about-content.fade-in.visible .feature-list .feature-item:nth-child(4) { transition-delay: 0.42s; }
.about-content.fade-in.visible .feature-list .feature-item:nth-child(5) { transition-delay: 0.52s; }

/* Fallback: sin JS, mostrar inmediatamente (scripting:none L5) */
@media (scripting: none) {
  .about-content.fade-in .feature-list .feature-item {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* Stat number: flash luminoso cuando el contador llega al target */
@keyframes statLand {
  0%   { filter: drop-shadow(0 0 14px rgba(0,180,216,0.55)); }
  40%  { filter: drop-shadow(0 0 28px rgba(0,212,255,0.85)); }
  100% { filter: drop-shadow(0 0 14px rgba(0,180,216,0.55)); }
}
.stat-item.visible .stat-number {
  animation: statLand 0.9s var(--ease-premium) 1.9s both;
}

/* ══════════════════════════════════════════════════════════
   SECCIÓN — HEADER ESPACIADO
   ══════════════════════════════════════════════════════════ */

.section-header { margin-bottom: clamp(2rem, 5vw, 3.5rem); }

/* Productos: el grid está justo debajo, menos margen */
#productos .section-header { margin-bottom: clamp(1.5rem, 3vw, 3rem); }

.section-header .section-title::after {
  width: 44px; height: 3px;
  background: linear-gradient(90deg, var(--color-accent), var(--color-secondary));
  border-radius: 2px;
  margin: 0.65rem auto 0;       /* centrado como styles.css */
  transform-origin: center;     /* crece desde el centro — apropiado para elemento centrado */
  /* Default: visible — fallback cuando no hay .fade-in / no hay JS */
  transform: scaleX(1);
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1) 0.2s;
}
/* JS-driven reveal: oculto hasta que IntersectionObserver añade .visible */
.section-header.fade-in .section-title::after       { transform: scaleX(0); }
.section-header.fade-in.visible .section-title::after { transform: scaleX(1); }

/* ══════════════════════════════════════════════════════════
   PRODUCTOS — Cards premium
   ══════════════════════════════════════════════════════════ */

.products-grid { counter-reset: product-counter; }

.product-card {
  counter-increment: product-counter;
  position: relative;            /* ancla ::after gradient border */
  border: var(--border-subtle);
  border-radius: 14px;           /* < límite 16px */
  transition:
    transform  0.42s var(--ease-premium),
    box-shadow 0.42s var(--ease-premium),
    border-color 0.3s ease;
}

.product-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-card-hover);
  border-color: rgba(0,180,216,0.22);
}

/* Número ordinal de fondo */
.product-card-body {
  position: relative;
  overflow: hidden;
}
.product-card-body::after {
  content: counter(product-counter, decimal-leading-zero);
  position: absolute;
  bottom: -1rem; right: 1rem;
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 5.5rem;
  line-height: 1;
  color: rgba(0,58,112,0.05);
  pointer-events: none;
  user-select: none;
  transition: color 0.3s ease;
}
.product-card:hover .product-card-body::after { color: rgba(0,119,204,0.07); }

/* Gradient border al hover (mask technique) */
.product-card::after {
  content: '';
  position: absolute; inset: 0;
  border-radius: 14px;
  padding: 1px;
  background: linear-gradient(
    135deg,
    rgba(0,180,216,0.5) 0%,
    rgba(0,119,204,0.1) 50%,
    rgba(0,180,216,0.3) 100%
  );
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.42s ease;
  pointer-events: none;
  z-index: 2;
}
.product-card:hover::after { opacity: 1; }

/* Overlay oscuro en imagen al hover */
.product-card-img::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,15,40,0.55) 0%, transparent 55%);
  opacity: 0;
  transition: opacity 0.42s ease;
  pointer-events: none;
}
.product-card:hover .product-card-img::after { opacity: 1; }

/* Tag glassmorphism — aceptable sobre imagen fotográfica */
.product-card-tag {
  background: rgba(0,20,50,0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(0,180,216,0.28);
  color: #7ee8ff;
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  padding: 0.25rem 0.75rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

/* Focus visible en links de cards */
.product-card-link:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 4px;
  border-radius: 4px;
}

/* ══════════════════════════════════════════════════════════
   ABOUT — Frame con gradiente de luz
   ══════════════════════════════════════════════════════════ */

.about-grid { gap: clamp(3rem, 6vw, 6rem); }

.about-img-wrapper { isolation: isolate; }

/* Marco exterior — box-shadow spread (evita ser clipeado por overflow:hidden del wrapper)
   Se pinta en la capa de decoración del elemento, no como contenido */
.about-img-wrapper {
  box-shadow:
    0 0 0 2px rgba(0,180,216,0.4),   /* anillo de acento */
    0 0 0 4px rgba(0,58,112,0.15),   /* anillo exterior más tenue */
    var(--shadow-xl, 0 20px 60px rgba(0,0,0,0.4)); /* profundidad */
}

/* Brillo interno en esquina superior-izquierda */
.about-img-wrapper::after {
  content: '';
  position: absolute; inset: 0;
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, rgba(0,180,216,0.08) 0%, transparent 45%);
  pointer-events: none;
  z-index: 1;
}

.about-img-badge {
  background: linear-gradient(135deg, #ffffff 0%, #eef5ff 100%);
  border: 1px solid rgba(0,180,216,0.2);
  box-shadow: 0 8px 32px rgba(0,40,100,0.22), 0 0 18px rgba(0,180,216,0.1);
}

/* Color sólido premium — sin gradient text */
.about-img-badge strong { color: var(--color-primary); }

/* Feature checks con glow */
.feature-check {
  background: linear-gradient(135deg, #00c897 0%, #00b4d8 100%);
  box-shadow: 0 2px 10px rgba(0,200,151,0.3);
}

/* ══════════════════════════════════════════════════════════
   SERVICIOS — Glow border cards
   ══════════════════════════════════════════════════════════ */

.services-grid { gap: 2rem; }

.service-card {
  background: #ffffff;
  border: var(--border-subtle);
  border-radius: 14px;            /* override 20px (--radius-lg) — límite 16px */
  padding: 2.25rem 2rem;
  position: relative;
  isolation: isolate;
  transition:
    transform  0.38s var(--ease-premium),
    box-shadow 0.38s var(--ease-premium);
}

/* Eliminar barra top de styles.css — el gradient border es suficiente */
.service-card::before { display: none; }

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 48px rgba(0,40,100,0.15), var(--shadow-glow-sm);
}

/* Gradient border al hover */
.service-card::after {
  content: '';
  position: absolute; inset: 0;
  border-radius: 14px;            /* match card border-radius */
  padding: 1px;
  background: linear-gradient(
    135deg,
    rgba(0,180,216,0.6) 0%,
    rgba(0,119,204,0.2) 50%,
    rgba(0,180,216,0.4) 100%
  );
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.38s ease;
  pointer-events: none;
}
.service-card:hover::after { opacity: 1; }

.service-icon {
  border: 1px solid rgba(0,119,204,0.12);
  transition: all 0.35s var(--ease-premium);
}
.service-card:hover .service-icon {
  background: linear-gradient(135deg, #0077cc, #00b4d8);
  box-shadow: 0 0 24px rgba(0,180,216,0.35);
  border-color: transparent;
}
.service-card:hover .service-icon svg { stroke: #ffffff; }

/* ══════════════════════════════════════════════════════════
   STATS — Rejilla geométrica + números luminosos sólidos
   ══════════════════════════════════════════════════════════ */

.section-dark {
  background: #010c1e;
  position: relative;
  overflow: hidden;
}

/* Rejilla de fondo */
.section-dark::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(0,180,216,0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,180,216,0.045) 1px, transparent 1px);
  background-size: 44px 44px;
  pointer-events: none;
}

/* Viñeta central */
.section-dark::after {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 50% 50%, rgba(0,30,80,0.55) 0%, transparent 70%);
  pointer-events: none;
}

.stats-grid { position: relative; z-index: 1; }

.stat-item {
  padding: 3rem 2rem;
  position: relative;
  transition: transform 0.3s ease;
}
.stat-item:hover { transform: translateY(-3px); }

/* Separadores verticales entre stats */
.stat-item::after {
  content: '';
  position: absolute; right: 0; top: 20%; height: 60%; width: 1px;
  background: linear-gradient(to bottom, transparent, rgba(0,180,216,0.2), transparent);
}
.stat-item:last-child::after { display: none; }

/* Número luminoso — color sólido, sin gradient text */
.stat-number {
  color: #00d4ff;
  filter: drop-shadow(0 0 14px rgba(0,180,216,0.55));
  font-size: clamp(2.4rem, 5vw, 3.5rem);
  display: inline-block;
}

/* ══════════════════════════════════════════════════════════
   CALIDAD — Logo strip
   ══════════════════════════════════════════════════════════ */

.quality-logos {
  background: rgba(0,58,112,0.04);
  border: var(--border-subtle);
  border-radius: 12px;          /* < límite 16px */
  padding: 2rem;
  gap: 2rem;
}

.quality-logo-item {
  padding: 1rem 1.5rem;
  border-radius: var(--radius-md);
  transition: all 0.3s var(--ease-premium);
}
.quality-logo-item:hover {
  background: rgba(0,58,112,0.05);
  opacity: 1;
  transform: translateY(-3px);
  box-shadow: var(--shadow-glow-sm);
}

/* ══════════════════════════════════════════════════════════
   HIGHLIGHT BOX
   ══════════════════════════════════════════════════════════ */

.highlight-box {
  background: linear-gradient(135deg, #002350 0%, #003a70 100%);
  border: 1px solid rgba(0,180,216,0.2);
  box-shadow: 0 4px 32px rgba(0,40,100,0.35), inset 0 1px 0 rgba(255,255,255,0.05);
  position: relative;
  overflow: hidden;
}

.highlight-box::before {
  content: '';
  position: absolute;
  top: -40%; right: -15%;
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(0,180,216,0.1) 0%, transparent 65%);
  pointer-events: none;
}

/* ══════════════════════════════════════════════════════════
   CTA SECTION — Efectos de luz
   ══════════════════════════════════════════════════════════ */

.cta-section {
  background: linear-gradient(135deg, #010f22 0%, #002350 50%, #010f22 100%);
  padding-block: clamp(4rem, 9vw, 8rem);
  position: relative;
  overflow: hidden;
}

/* Rejilla */
.cta-section::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(0,180,216,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,180,216,0.04) 1px, transparent 1px);
  background-size: 52px 52px;
  pointer-events: none;
}

/* Rayo de luz animado */
.cta-section::after {
  content: '';
  position: absolute;
  top: -50%; left: 30%;
  width: 1px; height: 200%;
  background: linear-gradient(to bottom, transparent 0%, rgba(0,180,216,0.12) 50%, transparent 100%);
  transform: rotate(-25deg);
  animation: beamMove 10s ease-in-out infinite;
  pointer-events: none;
}

@keyframes beamMove {
  0%, 100% { left: 25%; opacity: 0.5; }
  50%       { left: 65%; opacity: 1;   }
}

.cta-inner { position: relative; z-index: 2; }

/* CTA title — blanco sólido, sin gradient text */
.cta-title { color: #ffffff; }

/* ══════════════════════════════════════════════════════════
   NAV LINKS — hover refinado
   ══════════════════════════════════════════════════════════ */

/* Underline sweep desde izquierda — más preciso que el simple border-bottom */
.nav-link {
  position: relative;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: 3px; left: 0.85rem;    /* alineado con el padding lateral */
  width: calc(100% - 1.7rem); height: 2px;
  background: var(--color-accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}
.nav-link:hover::after,
.nav-link.active::after { transform: scaleX(1); }

/* ══════════════════════════════════════════════════════════
   HEADER
   ══════════════════════════════════════════════════════════ */

#site-header.scrolled {
  background: rgba(1, 14, 34, 0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 rgba(0,180,216,0.2), 0 4px 20px rgba(0,0,0,0.4);
}

/* Focus states mejorados */
.hamburger:focus-visible {
  outline: 2px solid rgba(255,255,255,0.8);
  outline-offset: 6px;
  border-radius: var(--radius-sm);
}

/* ══════════════════════════════════════════════════════════
   FOOTER
   ══════════════════════════════════════════════════════════ */

#site-footer {
  background: #010c1e;
  position: relative;
}

#site-footer::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(0,180,216,0.35),
    rgba(0,119,204,0.25),
    transparent
  );
}

/* ══════════════════════════════════════════════════════════
   GALERÍA
   ══════════════════════════════════════════════════════════ */

.gallery-overlay {
  background: linear-gradient(135deg, rgba(0,30,70,0.6) 0%, rgba(0,100,180,0.35) 100%);
  backdrop-filter: blur(2px);
}

/* ══════════════════════════════════════════════════════════
   SPEC ITEMS
   ══════════════════════════════════════════════════════════ */

.spec-item:hover {
  border-color: rgba(0,180,216,0.3);
  box-shadow: 0 4px 20px rgba(0,40,100,0.1), var(--shadow-glow-sm);
}

/* ══════════════════════════════════════════════════════════
   LAYOUT — Ritmo de espaciado entre secciones
   Patrón: générosas (productos/about) > estándar (servicios/calidad) > acento (stats)
   ══════════════════════════════════════════════════════════ */

/* Secciones hero del contenido — máximo aire */
#productos { padding-block: var(--space-3xl); }
#nosotros  { padding-block: var(--space-3xl); }

/* Secciones estándar — respiran bien */
#servicios { padding-block: var(--space-2xl); }
#calidad   { padding-block: var(--space-2xl); }

/* Banda acento (stats, dark) — ligeramente más compacta */
.section-dark { padding-block: clamp(3.5rem, 6vw, 5.5rem); }

/* Grid de productos: gap fluido — 1.5rem base era demasiado ajustado */
.products-grid { gap: clamp(1.75rem, 3vw, 2.5rem); }

/* Footer: más aire entre columnas */
.footer-grid { gap: clamp(2.5rem, 5vw, 5rem) !important; }

/* Section header: más margen-bottom en secciones importantes */
#productos .section-header,
#nosotros  .section-header {
  margin-bottom: clamp(2.5rem, 5vw, 4.5rem);
}

/* Container: padding lateral fluido en viewports intermedios */
.container {
  padding-inline: clamp(1.25rem, 5vw, 2.5rem);
}

/* ══════════════════════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════════════════════ */

@media (max-width: 1024px) {
  .badge-item:nth-child(2) { border-right: none !important; }
}

@media (max-width: 768px) {
  .hero-corner { display: none; }

  /* Stats en mobile: separadores horizontales */
  .stat-item::after { display: none; }
  .stats-grid { gap: 0; }
  .stat-item {
    padding: 2rem 1.25rem;
    border-bottom: 1px solid rgba(0,180,216,0.1);
  }
  .stat-item:last-child { border-bottom: none; }

  .product-card-body::after { font-size: 4rem; }
  .services-grid { gap: 1.25rem; }
  .about-grid { gap: 2.5rem; }
}

@media (max-width: 480px) {
  .hero-geo { display: none; }
  .hero-orb-1, .hero-orb-2, .hero-orb-3 { opacity: 0.45; }
  .hero::after { background-size: 40px 40px; }

  /* Aspect ratio en lugar de height fija */
  .product-card-img {
    height: auto !important;
    aspect-ratio: 3 / 2;
  }

  /* Badge strip: layout horizontal en columna única */
  .badge-item {
    flex-direction: row;
    text-align: left;
    border-right: none !important;
    border-bottom: 1px solid rgba(255,255,255,0.06) !important;
    gap: 1.25rem;
    padding: 1.25rem 1rem;
  }
  .badge-item:last-child { border-bottom: none !important; }
}

/* ══════════════════════════════════════════════════════════
   PREFERS-REDUCED-MOTION
   ══════════════════════════════════════════════════════════ */

/* ══════════════════════════════════════════════════════════
   PAGE-HERO & PRODUCT-DETAIL-HERO — inner page premium treatment
   ══════════════════════════════════════════════════════════ */

.page-hero,
.product-detail-hero { position: relative; overflow: hidden; }

/* Orbes escalados para heroes más cortos en páginas interiores */
.page-hero .hero-orb-1,
.product-detail-hero .hero-orb-1 {
  width: 520px; height: 520px;
  top: -120px; right: -80px;
  opacity: 0.12;
}
.page-hero .hero-orb-2,
.product-detail-hero .hero-orb-2 {
  width: 360px; height: 360px;
  bottom: -80px; left: -60px;
  opacity: 0.08;
}
.page-hero .hero-orb-3,
.product-detail-hero .hero-orb-3 {
  width: 200px; height: 200px;
  top: 30%; right: 28%;
  opacity: 0.06;
}

/* Líneas geométricas en heroes interiores */
.page-hero .hero-geo-line:nth-child(1) { top: 30%; left: 0; width: 40%; }
.page-hero .hero-geo-line:nth-child(2) { top: 65%; right: 0; width: 30%; }
.page-hero .hero-geo-line:nth-child(3) { bottom: 20%; left: 20%; width: 22%; }

/* Z-index: lights y geo por encima de la imagen de fondo en product-detail-hero */
.product-detail-hero .hero-lights { z-index: 2; pointer-events: none; }
.product-detail-hero .hero-geo    { z-index: 2; pointer-events: none; }

/* Hero-content siempre por encima de las luces decorativas */
.page-hero-content { position: relative; z-index: 1; }

@media (prefers-reduced-motion: reduce) {
  /* Detener todas las animaciones del hero */
  .hero::after,
  .hero-orb-1, .hero-orb-2, .hero-orb-3,
  .hero-geo-line,
  .hero-scroll::before,
  .cta-section::after {
    animation: none !important;
  }

  /* Mostrar elementos del hero sin animación */
  .hero-badge,
  .hero-title,
  .hero-subtitle,
  .hero-actions {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
  /* hero-scroll: preservar translateX(-50%) que styles.css usa para centrarlo */
  .hero-scroll {
    animation: none !important;
    opacity: 1 !important;
    transform: translateX(-50%) !important;
  }

  /* Sin shimmer en botones */
  .btn:hover::before { animation: none !important; }

  /* Stat land flash — no */
  .stat-item.visible .stat-number { animation: none !important; }

  /* Transiciones instantáneas — fade-in y variantes */
  .fade-in,
  .fade-in.fade-in-left,
  .fade-in.fade-in-right {
    transition: none !important;
    opacity: 0;
  }
  .fade-in.visible,
  .fade-in.fade-in-left.visible,
  .fade-in.fade-in-right.visible {
    opacity: 1 !important;
    transform: none !important;
  }

  /* Feature list — mostrar inmediatamente */
  .about-content.fade-in .feature-list .feature-item {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }

  /* Section title underline — mostrar inmediatamente */
  .section-header.fade-in .section-title::after {
    transform: scaleX(1) !important;
    transition: none !important;
  }

  /* Nav underline — sin transición */
  .nav-link::after { transition: none !important; }
}