/* ═══════════════════════════════════════════
   TOP SPORT MÉXICO — ESTILOS PRINCIPALES
   Inspirado en Autodesk.com
═══════════════════════════════════════════ */

/* ── RESET & BASE ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* Texto invisible para usuarios pero indexable por Google */
.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;
}

:root {
  --black:    #000000;
  --dark:     #0a0a0a;
  --dark2:    #111111;
  --dark3:    #1a1a1a;
  --red:   #ED1C24;
  --red2:  #BF131A;
  --white:    #ffffff;
  --grey1:    #cccccc;
  --grey2:    #888888;
  --grey3:    #444444;
  --font-main: 'Inter', sans-serif;
  --font-cond: 'Barlow Condensed', sans-serif;
  --nav-h: 110px;
  --transition: 0.35s cubic-bezier(.4,0,.2,1);
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-main);
  background: var(--black);
  color: var(--white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, textarea, select { font-family: inherit; }

.container { max-width: 1280px; margin: 0 auto; padding: 0 2rem; }
.accent-red { color: var(--red); }

/* ── REVEAL ANIMATION ── */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ════════════════════════════════
   NAVBAR
════════════════════════════════ */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(0,0,0,0.98); /* Forzado a modo robusto opaco */
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  box-shadow: 0 2px 30px rgba(0,0,0,0.6);
}

    /* Top Row */
.navbar-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  padding: 0.6rem 2rem;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.navbar-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-shrink: 0;
}
.logo-mark svg { display: block; }
.logo-text {
  font-family: var(--font-cond);
  font-weight: 900;
  font-size: 1.35rem;
  letter-spacing: 0.05em;
  line-height: 1;
}
.logo-accent { color: var(--red); }
.logo-sub {
  font-size: 0.6rem;
  letter-spacing: 0.15em;
  color: var(--grey2);
  display: block;
  line-height: 1;
}

.navbar-search {
  flex: 1;
  max-width: 480px;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 6px;
  padding: 0.45rem 0.9rem;
  transition: border-color var(--transition), background var(--transition);
}
.navbar-search:focus-within {
  border-color: var(--red);
  background: rgba(237,28,36,0.05);
}
.search-icon { color: var(--grey2); flex-shrink: 0; }
#search-input {
  background: none;
  border: none;
  outline: none;
  color: var(--white);
  font-size: 0.875rem;
  width: 100%;
}
#search-input::placeholder { color: var(--grey3); }

.navbar-top-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-shrink: 0;
}
.nav-phone {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.875rem;
  color: var(--grey1);
  white-space: nowrap;
  transition: color var(--transition);
}
.nav-phone:hover { color: var(--red); }
.nav-divider { color: var(--grey3); }
.nav-cta-btn {
  background: var(--red);
  color: var(--white);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 0.5rem 1.1rem;
  border-radius: 5px;
  white-space: nowrap;
  transition: background var(--transition), transform var(--transition);
}
.nav-cta-btn:hover { background: var(--red2); transform: translateY(-1px); }

.navbar-bottom {
  padding: 0;
  display: flex;
  flex: 1 1 auto;
  justify-content: center;
}
.nav-menu {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.25rem;
}
.nav-item { position: relative; }
.nav-link {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 0.3rem;
  padding: 0.5rem 0.25rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--grey1);
  transition: color var(--transition);
  position: relative;
  white-space: normal;
  max-width: 140px;
  line-height: 1.3;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0%;
  height: 2px;
  background: var(--red);
  transition: width 0.3s ease;
}
.nav-link:hover { color: var(--red); }
.nav-link:hover::after { width: 100%; }
.nav-link svg { transition: transform var(--transition); }
.nav-item:hover .nav-link svg { transform: rotate(180deg); }

/* Dropdown */
.nav-dropdown {
  position: absolute;
  top: calc(100% + 1px);
  left: 0;
  min-width: 600px;
  background: var(--dark2);
  border: 1px solid rgba(255,255,255,0.08);
  border-top: 2px solid var(--red);
  border-radius: 0 0 8px 8px;
  padding: 1.5rem;
  display: flex;
  gap: 2rem;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-8px);
  transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}
.nav-item:hover .nav-dropdown {
  opacity: 1;
  visibility: visible;
  pointer-events: all;
  transform: translateY(0);
}
.dropdown-col h4 {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--red);
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}
.dropdown-col a {
  display: block;
  font-size: 0.875rem;
  color: var(--grey1);
  padding: 0.3rem 0;
  transition: color var(--transition), padding-left var(--transition);
}
.dropdown-col a:hover { color: var(--white); padding-left: 0.4rem; }

/* Mobile toggle */
.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 0.5rem;
}
.mobile-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--white);
  transition: all 0.3s;
  border-radius: 2px;
}

/* ════════════════════════════════
   HERO
════════════════════════════════ */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  overflow: hidden;
  margin-top: 0;
  padding-top: var(--nav-h);
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

/* Hero video background */
#hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover; /* Cambiado de contain a cover para pantalla completa total */
  object-position: center;
  z-index: 0;
}

#hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
  opacity: 0.4;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0,0,0,0.75) 0%, rgba(0,0,0,0.3) 60%, rgba(0,0,0,0.15) 100%);
  z-index: 2;
}

/* Slides */
.hero-slides { position: absolute; inset: 0; z-index: 1; }
.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.2s ease;
}
.hero-slide.active { opacity: 1; }
.slide-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}
.slide-bg.ken-burns {
  transform: scale(1.1);
  opacity: 0;
  transition: opacity 1.2s ease;
}
.hero-slide.active .slide-bg.ken-burns {
  opacity: 1;
  animation: kenBurns 15s ease-out forwards;
}

@keyframes kenBurns {
  0% { transform: scale(1.1) translate(0, 0); }
  100% { transform: scale(1) translate(-2%, -2%); }
}

.slide-content {
  position: absolute;
  bottom: 12%;
  left: 5%;
  max-width: 680px;
  z-index: 2;
}
.slide-tag {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--red);
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.slide-headline {
  font-family: var(--font-main);
  font-size: clamp(2.8rem, 6vw, 5rem);
  font-weight: 900;
  line-height: 1.05;
  margin-bottom: 1.2rem;
  text-shadow: 0 2px 20px rgba(0,0,0,0.5);
}
.slide-sub {
  font-size: clamp(0.95rem, 1.5vw, 1.1rem);
  color: var(--grey1);
  max-width: 520px;
  line-height: 1.7;
  margin-bottom: 2rem;
}
.slide-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

.btn-hero-primary {
  display: inline-block;
  text-decoration: none;
  background: var(--white);
  color: var(--black);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.9rem 2rem;
  border-radius: 6px;
  letter-spacing: 0.02em;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
}
.btn-hero-primary:hover {
  background: var(--red);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(237,28,36,0.3);
}
.btn-hero-ghost {
  background: transparent;
  color: var(--white);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.9rem 2rem;
  border: 1.5px solid rgba(255,255,255,0.5);
  border-radius: 6px;
  transition: border-color var(--transition), background var(--transition), color var(--transition);
}
.btn-hero-ghost:hover {
  border-color: var(--red);
  color: var(--red);
  background: rgba(237,28,36,0.05);
}

/* Hero controls */
.hero-controls {
  position: absolute;
  bottom: 4%;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 1rem;
  z-index: 10;
}
.hero-prev, .hero-next {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  transition: border-color var(--transition), background var(--transition);
}
.hero-prev:hover, .hero-next:hover {
  border-color: var(--red);
  background: rgba(237,28,36,0.1);
  color: var(--red);
}
.hero-dots { display: flex; gap: 0.5rem; }
.hero-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.3);
  transition: background var(--transition), width var(--transition);
  border: none;
}
.hero-dot.active { background: var(--red); width: 24px; border-radius: 4px; }

.hero-pause {
  position: absolute;
  top: calc(var(--nav-h) + 1rem);
  right: 1.5rem;
  z-index: 10;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(0,0,0,0.5);
  border: 1px solid rgba(255,255,255,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  transition: background var(--transition);
}
.hero-pause:hover { background: rgba(237,28,36,0.15); color: var(--red); }

.scroll-indicator {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: rgba(255,255,255,0.1);
  z-index: 10;
}
.scroll-line {
  height: 100%;
  background: var(--red);
  width: 0%;
  transition: width 0.1s linear;
}

/* ════════════════════════════════
   STATS STRIP
════════════════════════════════ */
.stats-strip {
  background: var(--dark2);
  border-top: 1px solid rgba(237,28,36,0.2);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  padding: 2.5rem 2rem;
}
.stats-inner {
  max-width: 1000px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  align-items: center;
  gap: 0;
}
.stat-item {
  text-align: center;
  padding: 0 1rem;
}
.stat-number {
  font-family: var(--font-cond);
  font-size: 3rem;
  font-weight: 900;
  color: var(--red);
  line-height: 1;
}
.stat-suffix {
  font-family: var(--font-cond);
  font-size: 2rem;
  font-weight: 700;
  color: var(--red);
}
.stat-label {
  display: block;
  font-size: 0.8rem;
  color: var(--grey2);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-top: 0.4rem;
}
.stat-divider {
  width: 1px;
  height: 50px;
  background: rgba(255,255,255,0.1);
  justify-self: center;
}

/* ════════════════════════════════
   SECTOR CAROUSEL
════════════════════════════════ */
.sector-section { padding: 5rem 2rem; }
.section-header {
  max-width: 1280px;
  margin: 0 auto 2.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}
.section-title {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
  line-height: 1.2;
}
.section-sub {
  font-size: 1rem;
  color: var(--grey2);
  margin-top: 0.4rem;
  max-width: 500px;
}
.carousel-arrows { display: flex; gap: 0.5rem; }
.arrow-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,0.2);
  display: flex; align-items: center; justify-content: center;
  color: var(--white);
  transition: border-color var(--transition), background var(--transition), color var(--transition);
}
.arrow-btn:hover { border-color: var(--red); color: var(--red); background: rgba(237,28,36,0.06); }

.sector-track-wrapper { overflow: hidden; max-width: 1280px; margin: 0 auto; }
.sector-track {
  display: flex;
  gap: 1.25rem;
  transition: transform 0.5s cubic-bezier(.4,0,.2,1);
}
.sector-card {
  flex: 0 0 calc(20% - 1rem);
  min-width: 200px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  transition: transform var(--transition);
}
.sector-card:hover { transform: translateY(-6px); }
.sector-img-wrap {
  position: relative;
  aspect-ratio: 3/4;
  border-radius: 10px;
  overflow: hidden;
}
.sector-img { width: 100%; height: 100%; }
.sector-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 3.5rem;
  filter: drop-shadow(0 4px 12px rgba(0,0,0,0.5));
}
/* Label overlay for photo-based sector cards */
.sector-label-overlay {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, transparent 100%);
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 1rem 0.75rem 0.75rem;
  text-shadow: 0 1px 4px rgba(0,0,0,0.8);
}
.sector-name {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--white);
  margin-top: 0.75rem;
  text-align: center;
  letter-spacing: 0.02em;
}

/* ════════════════════════════════
   PRODUCTS CAROUSEL
════════════════════════════════ */
.products-section {
  padding: 5rem 0;
  padding-left: 2rem;
  background: var(--dark);
  position: relative;
}
.products-section .section-header {
  padding-right: 2rem;
}
.btn-outline {
  border: 1.5px solid rgba(255,255,255,0.3);
  padding: 0.6rem 1.4rem;
  border-radius: 6px;
  font-size: 0.875rem;
  font-weight: 600;
  transition: border-color var(--transition), color var(--transition);
  white-space: nowrap;
}
.btn-outline:hover { border-color: var(--red); color: var(--red); }

.products-track-wrapper { overflow: hidden; position: relative; }
.products-track {
  display: flex;
  gap: 1.25rem;
  transition: transform 0.5s cubic-bezier(.4,0,.2,1);
  padding-bottom: 1rem;
}
.product-card {
  flex: 0 0 320px;
  background: var(--dark2);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 12px;
  overflow: hidden;
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
  cursor: pointer;
}
.product-card:hover {
  transform: translateY(-6px);
  border-color: rgba(237,28,36,0.3);
  box-shadow: 0 20px 50px rgba(0,0,0,0.5);
}

/* Product visuals - CSS-only 3D illustrations */
.product-media { aspect-ratio: 16/10; overflow: hidden; position: relative; }
.product-visual {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--dark3);
  position: relative;
}
.basketball-visual { background: linear-gradient(135deg, #0d1b2a 0%, #1b263b 100%); }
.basketball-visual.dark { background: linear-gradient(135deg, #080808 0%, #1a1a1a 100%); }
.soccer-visual { background: linear-gradient(135deg, #0f2000 0%, #1a3800 100%); }
.scoreboard-visual { background: linear-gradient(135deg, #0d0d1d 0%, #1a1a3a 100%); }
.padel-visual { background: linear-gradient(135deg, #001a00 0%, #002d00 100%); }
.gym-visual { background: linear-gradient(135deg, #1a0d00 0%, #2d1800 100%); }

.prod-3d-scene { position: relative; width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; }

/* Backboard */
.prod-backboard {
  width: 120px;
  height: 80px;
  border: 3px solid rgba(255,255,255,0.7);
  border-radius: 4px;
  position: relative;
  display: flex; align-items: center; justify-content: center;
}
.prod-backboard.acrylic { border-color: rgba(150,220,255,0.8); background: rgba(180,230,255,0.1); }
.prod-backboard.glass { border-color: rgba(255,255,255,0.9); background: rgba(255,255,255,0.05); }
.board-inner {
  width: 60px;
  height: 40px;
  border: 2px solid rgba(255,150,0,0.8);
  border-radius: 2px;
}
.board-bracket {
  position: absolute;
  bottom: -20px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 20px;
  background: rgba(255,255,255,0.4);
}
.glass-bracket { background: rgba(200,200,200,0.6); }
.prod-rim {
  position: absolute;
  bottom: 28%;
  left: 50%;
  width: 50px;
  height: 28px;
  border: 3px solid rgba(255,120,0,0.9);
  border-radius: 50%;
  transform: translateX(-25%) rotateX(60deg);
}
.prod-rim.gold { border-color: var(--red); }
.prod-net {
  position: absolute;
  bottom: 15%;
  left: 50%;
  width: 36px;
  height: 24px;
  background: repeating-linear-gradient(0deg, transparent, transparent 4px, rgba(255,255,255,0.2) 4px, rgba(255,255,255,0.2) 5px),
              repeating-linear-gradient(90deg, transparent, transparent 4px, rgba(255,255,255,0.2) 4px, rgba(255,255,255,0.2) 5px);
  transform: translateX(-50%);
  clip-path: polygon(10% 0%, 90% 0%, 100% 100%, 0% 100%);
}

/* Goal */
.prod-goal { position: relative; width: 140px; height: 90px; }
.goal-post {
  position: absolute;
  bottom: 0;
  width: 5px;
  height: 100%;
  background: rgba(255,255,255,0.7);
  border-radius: 2px;
}
.goal-post.left { left: 0; }
.goal-post.right { right: 0; }
.goal-crossbar {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 5px;
  background: rgba(255,255,255,0.7);
  border-radius: 2px;
}
.goal-net-lines {
  position: absolute;
  inset: 5px 5px 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.goal-net-lines div {
  border-right: 1px solid rgba(255,255,255,0.2);
  height: 100%;
}

/* Scoreboard */
.prod-scoreboard {
  background: #000;
  border: 2px solid var(--red);
  border-radius: 6px;
  padding: 0.6rem 1rem;
  min-width: 180px;
  text-align: center;
}
.score-header {
  font-size: 0.55rem;
  letter-spacing: 0.1em;
  color: var(--red);
  margin-bottom: 0.4rem;
}
.score-body {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}
.score-team { display: flex; flex-direction: column; align-items: center; }
.score-label { font-size: 0.45rem; color: var(--grey2); letter-spacing: 0.08em; }
.score-num {
  font-family: 'Courier New', monospace;
  font-size: 2rem;
  font-weight: 700;
  color: var(--red);
  line-height: 1;
}
.score-sep { font-size: 1.5rem; color: var(--grey3); }
.score-time { font-size: 0.65rem; color: var(--grey2); margin-top: 0.3rem; letter-spacing: 0.05em; }

/* Padel court */
.prod-padel-court { position: relative; width: 140px; height: 90px; }
.padel-floor {
  position: absolute;
  inset: 30px 0 0;
  background: rgba(50, 150, 80, 0.3);
  border: 1px solid rgba(80,200,100,0.5);
}
.padel-net {
  position: absolute;
  top: 30px; bottom: 0;
  left: 50%;
  width: 2px;
  background: rgba(255,255,255,0.6);
}
.padel-wall {
  position: absolute;
  top: 0; bottom: 0;
  width: 3px;
  background: rgba(150,210,255,0.5);
}
.padel-wall.left { left: 0; }
.padel-wall.right { right: 0; }

/* Gym bar */
.prod-gym-bar { position: relative; display: flex; flex-direction: column; align-items: center; gap: 0.5rem; }
.gym-pole { width: 4px; height: 80px; background: rgba(255,180,50,0.7); border-radius: 2px; }
.gym-horizontal { width: 100px; height: 4px; background: rgba(255,180,50,0.7); border-radius: 2px; }
.gym-rings {
  width: 60px;
  height: 20px;
  border: 3px solid rgba(255,180,50,0.6);
  border-radius: 50%;
}

/* Product info */
.product-info { padding: 1.25rem; }
.product-badge {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--red);
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}
.product-name {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  line-height: 1.3;
}
.product-desc {
  font-size: 0.85rem;
  color: var(--grey2);
  line-height: 1.6;
  margin-bottom: 0.75rem;
}
.product-link {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--red);
  transition: gap var(--transition), opacity var(--transition);
}
.product-link:hover { opacity: 0.75; }

/* Products arrows */
.products-arrow {
  position: absolute;
  top: 35%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(0,0,0,0.8);
  border: 1.5px solid rgba(255,255,255,0.2);
  display: flex; align-items: center; justify-content: center;
  color: var(--white);
  z-index: 5;
  transition: all var(--transition);
}
.products-arrow:hover { border-color: var(--red); color: var(--red); background: rgba(237,28,36,0.1); }
.products-prev { left: 0.5rem; }
.products-next { right: 0.5rem; }

/* ════════════════════════════════
   STORY SECTION
════════════════════════════════ */
.story-section {
  padding: 6rem 2rem;
  background: var(--black);
  position: relative;
  overflow: hidden;
}
.story-bg-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--font-cond);
  font-size: 18vw;
  font-weight: 900;
  color: rgba(255,255,255,0.02);
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
  letter-spacing: 0.1em;
}
.story-content {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
  position: relative;
  z-index: 1;
}

.story-image-stack { position: relative; height: 480px; }
.story-img-card {
  position: absolute;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.08);
}
.story-img-1 { width: 75%; height: 70%; top: 0; left: 0; }
.story-img-2 { width: 55%; height: 55%; bottom: 0; right: 0; border: 2px solid var(--red); }
.story-img-placeholder {
  width: 100%; height: 100%;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 0.5rem;
}
.story-emoji { font-size: 3.5rem; }
.story-img-placeholder span { font-size: 0.8rem; font-weight: 600; letter-spacing: 0.1em; color: var(--grey1); }
.story-badge-float {
  position: absolute;
  bottom: 40%;
  left: 55%;
  background: var(--red);
  color: var(--black);
  border-radius: 10px;
  padding: 0.75rem 1rem;
  text-align: center;
  box-shadow: 0 10px 30px rgba(237,28,36,0.3);
  z-index: 2;
}
.badge-number { display: block; font-family: var(--font-cond); font-size: 1.8rem; font-weight: 900; line-height: 1; }
.badge-text { font-size: 0.65rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }

.story-tag {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--red);
  text-transform: uppercase;
  margin-bottom: 1.2rem;
}
.story-headline {
  font-family: var(--font-cond);
  font-size: clamp(3rem, 5vw, 4.5rem);
  font-weight: 900;
  line-height: 1;
  font-style: normal;
  margin-bottom: 1.5rem;
}
.story-italic { font-style: italic; }
.story-body {
  font-size: 1rem;
  color: var(--grey1);
  line-height: 1.8;
  margin-bottom: 1.75rem;
}
.story-list { margin-bottom: 2.5rem; display: flex; flex-direction: column; gap: 0.75rem; }
.story-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.95rem;
  color: var(--grey1);
  line-height: 1.5;
}
.list-dot {
  flex-shrink: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--red);
  margin-top: 0.4rem;
}
.btn-primary {
  display: inline-flex;
  align-items: center;
  background: var(--red);
  color: var(--black);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.9rem 2rem;
  border-radius: 6px;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
}
.btn-primary:hover { background: var(--red2); transform: translateY(-2px); box-shadow: 0 8px 30px rgba(237,28,36,0.25); }

/* ════════════════════════════════
   SERVICES TABS
════════════════════════════════ */
.services-section { padding: 6rem 0; background: var(--dark); }
.services-section .container { max-width: 1180px; }
.tabs-nav {
  display: flex;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  margin-bottom: 3rem;
  gap: 0;
  overflow-x: auto;
}
.tab-btn {
  padding: 0.9rem 1.5rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--grey2);
  border-bottom: 2px solid transparent;
  white-space: nowrap;
  transition: all var(--transition);
}
.tab-btn:hover { color: var(--white); }
.tab-btn.active { color: var(--red); border-bottom-color: var(--red); }
.tab-panel {
  display: none;
  grid-template-columns: 1fr 1.5fr;
  gap: 4rem;
  align-items: center;
}
.tab-panel.active { display: grid; }

.panel-visual {
  aspect-ratio: 1;
  max-width: 320px;
  background: var(--dark2);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.06);
}
.panel-icon-big { font-size: 5rem; z-index: 1; filter: drop-shadow(0 0 30px rgba(237,28,36,0.2)); }
.panel-bg-shape {
  position: absolute;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(237,28,36,0.06) 0%, transparent 70%);
}
.panel-text h3 { font-size: 1.6rem; font-weight: 800; margin-bottom: 1rem; }
.panel-text p { font-size: 1rem; color: var(--grey1); line-height: 1.8; margin-bottom: 1.5rem; }
.panel-text ul { display: flex; flex-direction: column; gap: 0.5rem; }
.panel-text li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.95rem;
  color: var(--grey1);
}
.panel-text li::before { content: '✓'; color: var(--red); font-weight: 700; }

/* ════════════════════════════════
   PROCESS STEPS
════════════════════════════════ */
.process-section { padding: 6rem 2rem; background: var(--black); }
.process-steps {
  max-width: none;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  position: relative;
}
.process-step { text-align: center; position: relative; }
.step-number {
  font-family: var(--font-cond);
  font-size: 4rem;
  font-weight: 900;
  color: rgba(237,28,36,0.08);
  line-height: 1;
  margin-bottom: 0.5rem;
}
.step-icon { font-size: 2.5rem; margin-bottom: 1rem; }
.step-title { font-size: 1.1rem; font-weight: 700; margin-bottom: 0.75rem; }
.step-desc { font-size: 0.875rem; color: var(--grey2); line-height: 1.7; }
.step-line {
  position: absolute;
  top: 2.5rem;
  right: -1rem;
  width: calc(100% - 2rem);
  height: 1px;
  background: linear-gradient(to right, rgba(237,28,36,0.3), rgba(237,28,36,0.05));
}

/* ════════════════════════════════
   CLIENTS TICKER
════════════════════════════════ */
.clients-section { padding: 4rem 0; background: var(--dark2); overflow: hidden; }
.clients-section .section-header { padding: 0 2rem; }
.clients-ticker-wrap {
  -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
  mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
  overflow: hidden;
}
.clients-ticker {
  display: flex;
  gap: 2rem;
  animation: ticker 20s linear infinite;
  width: max-content;
}
.clients-ticker:hover { animation-play-state: paused; }
@keyframes ticker {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.client-logo {
  flex-shrink: 0;
  width: 140px;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.logo-placeholder {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 8px;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--grey3);
  text-align: center;
  line-height: 1.4;
  transition: border-color var(--transition), color var(--transition);
}
.client-logo:hover .logo-placeholder { border-color: var(--red); color: var(--red); }

/* ════════════════════════════════
   CTA SECTION
════════════════════════════════ */
.cta-section {
  padding: 6rem 2rem;
  background: var(--dark);
  position: relative;
  overflow: hidden;
}
.cta-bg-mesh {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(237,28,36,0.04) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 50%, rgba(237,28,36,0.03) 0%, transparent 60%);
  pointer-events: none;
}
.cta-content { max-width: 820px; margin: 0 auto; position: relative; z-index: 1; }
.cta-tag {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--red);
  text-transform: uppercase;
  margin-bottom: 1.2rem;
}
.cta-headline {
  font-size: clamp(2rem, 4.5vw, 3.5rem);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 1.2rem;
}
.cta-sub { font-size: 1.05rem; color: var(--grey1); line-height: 1.7; margin-bottom: 2.5rem; max-width: 550px; }

/* Contact form */
.contact-form { 
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 3rem; 
  width: 100%; 
}
@media (max-width: 768px) {
  .contact-form { grid-template-columns: 1fr !important; }
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: 1rem; }
.form-group.full-width { margin-bottom: 1rem; }
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 7px;
  padding: 0.85rem 1rem;
  color: var(--white);
  font-size: 0.95rem;
  outline: none;
  transition: border-color var(--transition), background var(--transition);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--red);
  background: rgba(237,28,36,0.03);
}
.form-group select option { background: var(--dark2); }
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--grey3); }
.form-group textarea { resize: vertical; min-height: 100px; }
.btn-submit {
  background: var(--red);
  color: var(--black);
  font-size: 1rem;
  font-weight: 700;
  padding: 1rem 2.5rem;
  border-radius: 7px;
  letter-spacing: 0.02em;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
  cursor: pointer;
  border: none;
}
.btn-submit:hover { background: var(--red2); transform: translateY(-2px); box-shadow: 0 8px 30px rgba(237,28,36,0.25); }

.contact-details {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.07);
}
.contact-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.9rem;
  color: var(--grey1);
}
.contact-item svg { color: var(--red); flex-shrink: 0; }

/* ════════════════════════════════
   FOOTER
════════════════════════════════ */
.footer {
  background: var(--dark2);
  border-top: 1px solid rgba(255,255,255,0.06);
}
.footer-top {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 4rem;
  padding: 4rem 2rem;
  max-width: 1280px;
  margin: 0 auto;
}
.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-cond);
  font-weight: 900;
  font-size: 1.25rem;
  margin-bottom: 1rem;
}
.logo-mark.small svg { width: 22px; height: 22px; }
.footer-tagline { font-size: 0.875rem; color: var(--grey2); line-height: 1.7; margin-bottom: 1.5rem; }
.footer-social { display: flex; gap: 0.6rem; }
.social-btn {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  display: flex; align-items: center; justify-content: center;
  color: var(--grey2);
  transition: background var(--transition), color var(--transition), border-color var(--transition);
}
.social-btn:hover { background: rgba(237,28,36,0.1); color: var(--red); border-color: var(--red); }

.footer-links {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}
.footer-col h4 {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 1rem;
}
.footer-col a {
  display: block;
  font-size: 0.875rem;
  color: var(--grey2);
  padding: 0.25rem 0;
  transition: color var(--transition);
}
.footer-col a:hover { color: var(--red); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 1.5rem 2rem;
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-bottom p { font-size: 0.8rem; color: var(--grey3); }
.footer-legal { display: flex; gap: 1.5rem; }
.footer-legal a { font-size: 0.8rem; color: var(--grey3); transition: color var(--transition); }
.footer-legal a:hover { color: var(--grey1); }

/* ════════════════════════════════
   BACK TO TOP
════════════════════════════════ */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--red);
  color: var(--black);
  display: flex; align-items: center; justify-content: center;
  z-index: 999;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: all var(--transition);
  box-shadow: 0 4px 20px rgba(237,28,36,0.3);
}
.back-to-top.visible { opacity: 1; pointer-events: all; transform: translateY(0); }
.back-to-top:hover { background: var(--red2); transform: translateY(-3px); }

/* ════════════════════════════════
   RESPONSIVE
════════════════════════════════ */
@media (max-width: 1024px) {
  .stats-inner { grid-template-columns: repeat(2, 1fr); row-gap: 1.5rem; }
  .stat-divider { display: none; }
  .story-content { grid-template-columns: 1fr; gap: 3rem; }
  .story-image-stack { height: 320px; }
  .process-steps { grid-template-columns: repeat(2, 1fr); }
  .step-line { display: none; }
  .footer-top { grid-template-columns: 1fr; gap: 2.5rem; }
  .footer-links { grid-template-columns: repeat(2, 1fr); }
  .tab-panel.active { grid-template-columns: 1fr; }
  .panel-visual { max-width: 200px; }
}

@media (max-width: 768px) {
  :root { --nav-h: 90px; }
  .navbar-top { padding: 0.5rem 1rem; }
  .navbar-search { display: none; }
  .nav-phone, .nav-divider { display: none; }
  .navbar-bottom { display: none; }
  .mobile-toggle { display: flex; }
  .navbar-top-actions { gap: 0.5rem; }
  .nav-cta-btn { padding: 0.4rem 0.8rem; font-size: 0.75rem; }
  .sector-card { flex: 0 0 160px; }
  .product-card { flex: 0 0 280px; }
  .form-row { grid-template-columns: 1fr; }
  .stats-inner { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
  .footer-links { grid-template-columns: repeat(2, 1fr); }
  .process-steps { grid-template-columns: 1fr 1fr; }
  .contact-details { flex-direction: column; gap: 1rem; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

/* ════════════════════════════════
   FLOATING SOCIALS (Red/White)
════════════════════════════════ */
.floating-socials {
  position: fixed;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 999;
}
.social-float {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  background: #E63946; /* Red */
  box-shadow: 0 4px 15px rgba(230,57,70,0.4);
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), background 0.3s, box-shadow 0.3s;
}
.social-float:hover {
  transform: scale(1.15) translateX(-5px);
  background: #D90429;
  box-shadow: 0 8px 25px rgba(217,4,41,0.6);
  color: #ffffff;
}

/* Make logo larger in navbar override */
.navbar-logo img {
  height: 65px !important;
  transition: height 0.3s ease;
}
.navbar.scrolled .navbar-logo img {
  height: 50px !important;
}

/* ── FULL WIDTH IMAGE SECTION ── */
.full-width-section {
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
  overflow: hidden;
  line-height: 0;
}
.full-width-section img {
  width: 100%;
  height: auto;
  display: block;
}

.post-hero-spacer {
  height: 6rem; /* 3 lines aprox */
  background: var(--black);
}

/* ── SECTION: TRANSFORMANDO ESPACIOS (PHILOSOPHY) ── */
.philosophy-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  min-height: 100vh; /* Acomodar más texto */
  background: var(--black);
  overflow: hidden;
}

@media (max-width: 968px) {
  .philosophy-grid {
    grid-template-columns: 1fr;
  }
}

.philosophy-image {
  background: url('../recursos/imagenes/TRANSFORMANDO ESPACIOS.jpg') no-repeat center left;
  background-size: cover;
  position: relative;
  min-height: 50vh;
}

/* Overlay sutil para transicion suave al texto en mobile */
.philosophy-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 40%, rgba(0,0,0,0.8) 100%);
}

.philosophy-content {
  padding: 6rem 5% 6rem 10%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: #000;
}

.philosophy-headline {
  font-family: var(--font-main);
  font-weight: 800;
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  line-height: 1.1;
  color: var(--white);
  margin-bottom: 5rem;
  max-width: 650px;
}

.philosophy-item {
  display: flex;
  gap: 2.5rem;
  margin-bottom: 4.5rem;
  align-items: flex-start;
}

.neon-bar-red {
  display: block;
  width: 12px;
  min-height: 100px;
  background: linear-gradient(180deg, #ED1C24 0%, #7A0A0E 100%);
  border-radius: 4px;
  box-shadow: 0 0 20px rgba(237, 28, 36, 0.7), 0 0 40px rgba(237, 28, 36, 0.4);
  flex-shrink: 0;
}

.philosophy-text-block h3 {
  font-family: var(--font-main);
  font-weight: 800;
  font-size: 1.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1.2rem;
  color: var(--white);
  line-height: 1;
}

.philosophy-text-block p {
  color: #ccc;
  font-size: 1.1rem;
  line-height: 1.6;
  max-width: 550px;
}

.philosophy-text-block strong {
  color: var(--white);
  font-weight: 700;
}

/* ── SECTION: ECOSISTEMA 360 (GRID TECNOLÓGICA) ── */
.ecosystem-360-section {
  background: #000;
  padding: 8rem 0;
  position: relative;
  overflow: hidden;
}

.ecosystem-360-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr 1fr;
  align-items: center;
  gap: 0.5rem;
  max-width: none;
  margin: 0 auto;
  position: relative;
}

@media (max-width: none) {
  .ecosystem-360-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .ecosystem-center-wrapper {
    order: -1;
  }
}

.ecosystem-center-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.ecosystem-center-image {
  width: 100%;
  max-width: 600px;
  /* Centrar en el circulo de la imagen original */
  mask-image: radial-gradient(circle, black 50%, transparent 75%);
  -webkit-mask-image: radial-gradient(circle, black 50%, transparent 75%);
}

.ecosystem-column {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.ecosystem-box {
  background: rgba(10,10,10,0.4);
  border: 1px solid #1a1a1a;
  padding: 2rem;
  border-radius: 8px;
  transition: transform var(--transition), border-color var(--transition);
}

.ecosystem-box:hover {
  border-color: var(--red);
  transform: translateY(-5px);
}

.box-number-tag {
  color: var(--red);
  font-family: var(--font-cond);
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 1rem;
  display: inline-block;
  border: 1px solid rgba(237,28,36,0.3);
  padding: 0.3rem 0.8rem;
  border-radius: 4px;
}

.ecosystem-box h3 {
  color: #fff;
  font-size: 1.5rem;
  margin-bottom: 1rem;
  font-weight: 700;
}

.ecosystem-box p {
  color: #888;
  font-size: 1rem;
  line-height: 1.5;
}

/* ── SECTION: EL ESTÁNDAR TOP SPORT (HIGH FIDELITY) ── */
.comparison-container {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  max-width: none;
  margin: 0 auto;
}

.comparison-card-v2 {
  background: #000;
  border: 1px solid #222;
  border-radius: 4px;
  display: grid;
  grid-template-columns: 1fr auto 1.5fr 1fr;
  align-items: center;
  overflow: hidden;
  position: relative;
}

.comparison-card-v2::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, #ED1C24, transparent);
  opacity: 0.3;
}

.side-competencia {
  padding: 2.5rem;
  opacity: 0.6;
}

.side-top-sport {
  padding: 2.5rem;
  background: rgba(237, 28, 36, 0.03);
  border-left: 1px solid #1a1a1a;
}

.vs-divider {
  padding: 0 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
}

.vs-divider::before, .vs-divider::after {
  content: '';
  width: 1px;
  height: 40px;
  background: #333;
}

.vs-badge-v2 {
  color: #ED1C24;
  font-weight: 900;
  font-size: 1.8rem;
  font-style: italic;
  text-shadow: 0 0 15px rgba(237, 28, 36, 0.5);
  margin: 1rem 0;
}

.side-label {
  font-family: var(--font-main);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 1.2rem;
}

.side-title {
  font-family: var(--font-main);
  font-weight: 800;
  font-size: 1.3rem;
  color: var(--white);
  margin-bottom: 0.5rem;
}

.side-desc {
  font-size: 0.95rem;
  line-height: 1.5;
}

.comparison-graphic {
  padding: 1rem;
  display: flex;
  justify-content: center;
  align-items: center;
}

.comparison-graphic img {
  max-width: 150px;
  height: auto;
  filter: drop-shadow(0 10px 20px rgba(0,0,0,0.5));
}

/* ── SECTION: PRODUCTOS (ISOTIPOS) ── */
.isotipos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 4rem 2rem;
  text-align: center;
}
@media (max-width: 768px) {
  .isotipos-grid {
    display: flex !important;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 1.5rem;
    padding: 1rem 1rem 3rem;
  }
}

/* ── SPRITE SYSTEM FOR EL ESTANDAR ── */
.icon-sprite-ts {
  background-image: url('../recursos/imagenes/EL ESTANDAR TOP SPORT.png');
  background-repeat: no-repeat;
  filter: drop-shadow(0 10px 20px rgba(0,0,0,0.5));
  border-radius: 4px;
  background-size: 1536px 1024px; /* Fixed size to match analysis */
}

/* Row 1 */
.icon-sprite-ts.c1 { width: 180px; height: 180px; background-position: -360px -175px; }
.icon-sprite-ts.t1 { width: 390px; height: 210px; background-position: -1040px -160px; }

/* Row 2 */
.icon-sprite-ts.c2 { width: 190px; height: 165px; background-position: -350px -435px; }
.icon-sprite-ts.t2 { width: 390px; height: 195px; background-position: -1040px -420px; }

/* Row 3 */
.icon-sprite-ts.c3 { width: 210px; height: 185px; background-position: -340px -680px; }
.icon-sprite-ts.t3 { width: 390px; height: 225px; background-position: -1040px -645px; }

@media (max-width: 1200px) {
  .icon-sprite-ts {
    transform: scale(0.7);
    transform-origin: right center;
  }
  .icon-sprite-ts.c1, .icon-sprite-ts.c2, .icon-sprite-ts.c3 {
    transform-origin: left center;
  }
}

@media (max-width: 768px) {
  .icon-sprite-ts {
    transform: scale(0.5);
  }
}

/* ── SECTION: EL ECOSISTEMA TOP SPORT (PILLARS) ── */
.ecosystem-tech-section {
  background: #050505;
  padding: 6rem 0;
  border-top: 1px solid #111;
}

.ecosystem-tech-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-bottom: 4rem;
}

.tech-pillar-card {
  background: #000;
  border: 1px solid #1a1a1a;
  padding: 0;
  display: flex;
  flex-direction: column;
  position: relative;
}

.tech-pillar-tag {
  background: #111;
  border: 1px solid #333;
  color: var(--red);
  padding: 0.5rem 1rem;
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  position: absolute;
  top: -15px;
  left: 20px;
}

.tech-pillar-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-bottom: 1px solid #111;
}

.tech-pillar-footer {
  text-align: center;
  padding: 3rem 0;
  border-top: 1px solid #111;
}

.tech-pillar-footer p {
  font-size: 1.3rem;
  font-weight: 600;
  color: #fff;
  font-family: var(--font-main);
}

/* ── SECTION: INGENIERÍA EN CADA DETALLE ── */
.engineering-detail-section {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  min-height: 70vh;
  background: #000;
  border-top: 1px solid #111;
}

@media (max-width: 968px) {
  .engineering-detail-section {
    grid-template-columns: 1fr;
  }
}

.engineering-detail-image {
  background: url('../recursos/imagenes/INGENIERIA EN CADA DETALLE .jpg') no-repeat center center;
  background-size: cover;
  position: relative;
}

.engineering-detail-content {
  padding: 6rem 10%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.engineering-detail-content h2 {
  font-size: 2.8rem;
  font-weight: 800;
  margin-bottom: 3rem;
  line-height: 1.1;
}

.detail-p-header {
  color: var(--red);
  font-weight: 800;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
  display: block;
}

.detail-paragraph {
  margin-bottom: 3rem;
}




/* ── OVERLAY SYSTEM FOR SITIO IMAGES ── */
.sitio-wrapper {
  position: relative;
  width: 100%;
  display: block;
  overflow: hidden;
}

.sitio-bg {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 4px;
}

.sitio-overlay {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  box-sizing: border-box;
  padding: 5%;
  display: flex;
  flex-direction: column;
}

/* Flex Modifiers */
.overlay-bottom { justify-content: flex-end; }
.overlay-center { justify-content: center; align-items: center; text-align: center; }
.overlay-left { justify-content: center; align-items: flex-start; text-align: left; }
.overlay-right { justify-content: center; align-items: flex-end; text-align: right; }

.overlay-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  width: 100%;
}

.overlay-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
  width: 100%;
}

.overlay-content-block {
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  padding: 1.5rem;
  border-radius: 8px;
  border-left: 3px solid var(--red);
}

.overlay-content-block h2, .overlay-content-block h3 {
  color: #fff;
  margin-top: 0;
  margin-bottom: 0.8rem;
  font-size: clamp(1.2rem, 2vw, 2rem);
  text-transform: uppercase;
  text-shadow: 0 2px 4px rgba(0,0,0,0.8);
}

.overlay-content-block p {
  color: #ddd;
  margin: 0;
  font-size: clamp(0.9rem, 1.2vw, 1.1rem);
  line-height: 1.4;
  text-shadow: 0 1px 2px rgba(0,0,0,0.8);
}

@media (max-width: 768px) {
  .overlay-grid-3, .overlay-grid-2 {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .sitio-overlay {
    position: relative;
    padding: 1rem;
    background: #000;
  }
  .sitio-bg {
    border-radius: 4px 4px 0 0;
  }
  .overlay-content-block {
    margin-bottom: 1rem;
  }
}

/* CENTRADO Y REESCALADO DE LAS IMAGENES REFERENCIA */
img[src*="REFERENCIA"], img[src*="NUEVO"], img[src*="nuevo"], .REFERENCIA {
    max-width: 100%;
    width: 100%;
    height: auto;
    display: block;
    margin: 0 0 4px 0; /* Separación técnica aumentada a 4px */
    border-radius: 0;
    border: none;
}

/* Ajuste para secciones que contienen imágenes industriales para eliminar aire lateral/vertical */
.industrial-section, .full-width-section {
    padding: 0 !important;
    margin: 0 !important;
}

/* Botón de Privacidad Rojo */
.btn-privacidad-rojo {
    background: var(--red) !important;
    color: white !important;
    border: none !important;
    font-weight: 700 !important;
}

/* ── PREMIUM POLISH ── */

/* 1. Custom Scrollbar */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--black); }
::-webkit-scrollbar-thumb { 
  background: #222; 
  border-radius: 5px; 
  border: 2px solid var(--black);
}
::-webkit-scrollbar-thumb:hover { background: var(--red); }

/* 2. Selection */
::selection { background: var(--red); color: #fff; }

/* 3. Global Reveal Speed */
.reveal { transition: all 0.8s cubic-bezier(0.165, 0.84, 0.44, 1); }

/* 4. Primary Button Glow */
.nav-cta-btn, .btn-hero-primary, #btn-submit {
  box-shadow: 0 4px 0px rgba(237,28,36,0);
  transition: all 0.3s ease;
}
.nav-cta-btn:hover, .btn-hero-primary:hover, #btn-submit:hover {
  box-shadow: 0 0 20px rgba(237,28,36,0.4);
  background: var(--red2);
  transform: translateY(-2px);
}

/* Botón de Envío Blanco (Sin animación) */
.btn-submit-white {
  background: #fff !important;
  color: #000 !important;
  border: none !important;
  padding: 1.2rem 2.5rem !important;
  font-weight: 800 !important;
  text-transform: uppercase !important;
  letter-spacing: 1px !important;
  transition: opacity 0.2s ease !important;
  box-shadow: none !important;
  transform: none !important;
  animation: none !important;
}
.btn-submit-white:hover {
  opacity: 0.9 !important;
  transform: none !important;
  box-shadow: none !important;
}

/* 5. Nav Link Active Line */
.nav-link {
  position: relative;
  transition: color 0.3s ease;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 50%;
  width: 0; height: 2px;
  background: var(--red);
  transition: all 0.3s ease;
  transform: translateX(-50%);
}
.nav-link:hover::after, .nav-link.active::after {
  width: 100%;
}

/* 6. Card Glassmorphism Enhancement */
.ecosystem-box, .product-card, .sector-card, .projects-section > div > div {
  background: rgba(15,15,15,0.7) !important;
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.05) !important;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}
.ecosystem-box:hover {
  border-color: rgba(237,28,36,0.5) !important;
  background: rgba(20,20,20,0.8) !important;
}

/* 7. Video Overlay Gradient & Fixes */
.hero-overlay {
  background: linear-gradient(to bottom, rgba(0,0,0,0.4) 0%, rgba(0,0,0,0.8) 100%);
}

.contact-video-container video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover !important;
  z-index: 1;
}

/* 8. Fix for image cropping on small phones */
@media (max-width: 600px) {
  .section-title { font-size: 1.8rem; }
  .container { padding: 0 1.25rem; }
  .navbar-logo img { height: 36px !important; }
}

/* ── MOBILE MENU PREMIUM OVERLAY ── */
@media (max-width: 1024px) {
  .nav-menu {
    position: fixed;
    top: 0; right: -100%;
    width: 80%; height: 100vh;
    background: rgba(5,5,5,0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: all 0.5s cubic-bezier(0.77,0.2,0.05,1);
    z-index: 2000;
    gap: 2rem;
  }
  .nav-menu.open {
    right: 0;
    box-shadow: -10px 0 30px rgba(0,0,0,0.8);
  }
  .nav-link { font-size: 1.25rem !important; }
  
  .mobile-toggle {
    display: flex;
    flex-direction: column;
    gap: 6px;
    z-index: 2001;
    position: relative;
  }
  .mobile-toggle span {
    width: 30px; height: 2px;
    background: #fff;
    transition: 0.3s;
  }
  .mobile-toggle.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
  .mobile-toggle.open span:nth-child(2) { opacity: 0; }
  .mobile-toggle.open span:nth-child(3) { transform: rotate(-45deg) translate(7px, -6px); }
}

/* ── TYPOGRAPHY POLISH ── */
h1, h2, h3 { letter-spacing: -0.02em; line-height: 1.1; }
p { line-height: 1.6; color: rgba(255,255,255,0.7); }
.section-title { font-weight: 900; text-transform: uppercase; margin-bottom: 1rem; }

/* ── STICKY HEADER REFINEMENT (STATIC) ── */
.navbar.scrolled {
  background: rgba(0,0,0,0.95);
  backdrop-filter: blur(10px);
}
/* Eliminado el escalado de logo para mantenerlo grande */

/* ── FINAL FINISHING DIVIDERS ── */
.post-hero-spacer {
  height: 4px;
  background: linear-gradient(90deg, transparent, var(--red), transparent);
  opacity: 0.3;
  margin: 4rem 0;
}

/* ── BACK TO TOP ENHANCEMENT ── */
.back-to-top {
  width: 50px;
  height: 50px;
  background: var(--red);
  color: white;
  border-radius: 50%;
  box-shadow: 0 5px 15px rgba(237,28,36,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  bottom: 30px;
  right: 30px;
  opacity: 0;
  visibility: hidden;
  position: fixed;
  z-index: 999;
}
.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}
.back-to-top:hover {
  transform: translateY(-5px);
  background: white;
  color: var(--red);
}

/* ── SOCIAL FLOATING BUTTONS ── */
.floating-social-container {
  position: fixed;
  bottom: 180px; /* Elevado de 100px para mayor visibilidad */
  right: 30px;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  z-index: 1000;
}

.social-float {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  background: var(--red);
  text-decoration: none;
  box-shadow: 0 4px 15px rgba(237,28,36,0.4);
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.social-float:hover { 
  transform: scale(1.15) rotate(5deg); 
  background: white;
  color: var(--red);
}

.bg-whatsapp { background: var(--red) !important; }
.bg-whatsapp:hover { color: var(--red) !important; background: white !important; }
/* Mantenemos red/white para IG y FB como solicitó el usuario */
.bg-instagram { background: var(--red); }
.bg-facebook { background: var(--red); }

/* Isotipos en Rojo y Nombres en Negro */
.isotipo-item svg {
  stroke: var(--red) !important;
}
.isotipo-item h4 {
  color: #000 !important;
  margin-top: 1rem;
  font-size: 0.85rem;
  font-weight: 800;
  text-transform: uppercase;
}

/* Botón Privacidad 2 líneas */
.btn-privacidad-rojo {
  line-height: 1.2 !important;
  text-align: center !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0.8rem 1.5rem !important;
  white-space: normal !important;
  height: auto !important;
}

/* 9. Form Ergonomía (Ajuste de Alto Final) */
.contact-form input, .contact-form textarea {
  padding: 0.86rem !important; /* Reducción adicional del 25% */
  font-size: 0.95rem;
}

/* 10. Secciones Labels (Dark Mode) */
.section-label-banner {
  background: #000;
  color: #fff;
  padding: 4rem 2rem;
  text-align: center;
  border-top: 1px solid rgba(255,255,255,0.05);
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.section-label-banner h2 {
  font-family: var(--font-cond);
  font-size: clamp(2rem, 5vw, 4rem);
  font-weight: 900;
  text-transform: uppercase;
  margin: 0;
  letter-spacing: 1px;
}

.catalog-content-lower {
  position: relative;
  z-index: 2;
  text-align: center;
  color: white;
  padding: 2rem;
  margin-top: 20vh; /* Baja el texto */
}

/* 12. Footer Universal */
.footer-container {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  max-width: 100% !important;
  padding: 0 2rem !important;
}
.footer-logo { flex-shrink: 0; }
.footer-copyright { color: #666; font-size: 0.8rem; text-transform: uppercase; margin: 0; flex: 1; text-align: center; }
.footer-spacer { width: 156px; }

@media (max-width: 768px) {
  .footer-container {
    flex-direction: column !important;
    text-align: center !important;
    gap: 2rem !important;
  }
  .footer-logo { order: 1; margin: 0 auto 0 0; } /* Obligado a la izquierda */
  .footer-copyright { order: 2; margin: 0 auto; text-align: center !important; width: 100%; }
  .footer-spacer { display: none !important; }
}

/* ─────────────────────────────────────────────────────────────
   11. RESPONSIVE REFINEMENTS (MOBILE POLISH)
   ───────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  :root {
    --nav-h: 80px;
  }

  /* Video Full Screen (svh) */
  .hero, .catalog-video-section, .contact-video-container {
    height: 100svh !important;
    min-height: 100svh !important;
  }

  #hero-video, .catalog-video-section video, .contact-video-container video {
    height: 100svh !important;
    object-fit: cover !important;
  }

  /* Banners de Sección (Escalado Clamp) */
  .section-label-banner {
    padding: 2.5rem 1rem !important;
  }
  .section-label-banner h2 {
    font-size: clamp(1.2rem, 6vw, 1.8rem) !important;
    letter-spacing: 0.5px;
  }

  /* Muro Industrial Híbrido (CSS Scroll Snap) */
  .industrial-section .mobile-slider {
    display: flex !important;
    flex-direction: row !important;
    overflow-x: auto !important;
    scroll-snap-type: x mandatory;
    gap: 4px !important;
    padding: 0 !important;
    margin-top: 4px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .industrial-section .mobile-slider::-webkit-scrollbar { display: none; }

  .industrial-section .mobile-slider .REFERENCIA {
    flex: 0 0 90% !important;
    scroll-snap-align: center;
    margin-bottom: 0 !important;
  }

  /* Marcadores Táctiles */
  .mobile-slider-hint {
    display: block !important;
    margin-bottom: 2rem;
  }
}

/* ─────────────────────────────────────────────────────────────
   12. SLIDER INDICATORS (VISUAL CUES)
   ───────────────────────────────────────────────────────────── */
.mobile-slider-hint {
  display: none;
  font-family: var(--font-cond);
  font-size: 0.7rem;
  text-transform: uppercase;
  color: var(--red);
  text-align: center;
  margin-top: 0.5rem;
  letter-spacing: 2px;
  animation: pulse 2s infinite;
}

@media (max-width: 768px) {
  .mobile-slider-hint { display: block; }
}

@keyframes pulse {
  0% { opacity: 0.4; }
  50% { opacity: 1; }
  100% { opacity: 0.4; }
}


/* ─────────────────────────────────────────────────────────────
   SEO TEXT BLOCK — Visually hidden pero indexable por Google
   Técnica: clip + posición absoluta (Google indexa, usuarios no ven)
   ───────────────────────────────────────────────────────────── */
.seo-text-block {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
  /* NO display:none ni visibility:hidden — Google lo leerá */
}
