/* ============================================================
   GRUPO TIDEC SRL — Main Stylesheet
   Modern 2026 Design | Mobile-First | Inter Font
   ============================================================ */

/* ── Google Fonts ── */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

/* ── CSS Custom Properties ── */
:root {
  --accent:        #f53002;
  --accent-dark:   #c42500;
  --accent-light:  rgba(245, 48, 2, 0.12);
  --primary-dark:  #0a0f1e;
  --primary:       #111827;
  --secondary:     #1e3a5f;
  --white:         #ffffff;
  --gray-light:    #f8fafc;
  --gray-mid:      #e2e8f0;
  --gray-text:     #64748b;
  --text-main:     #1e293b;
  --text-light:    #94a3b8;

  --radius-sm:     6px;
  --radius-md:     12px;
  --radius-lg:     20px;
  --radius-xl:     32px;

  --shadow-sm:     0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.06);
  --shadow-md:     0 4px 16px rgba(0,0,0,.10), 0 2px 6px rgba(0,0,0,.07);
  --shadow-lg:     0 12px 40px rgba(0,0,0,.14), 0 4px 16px rgba(0,0,0,.10);
  --shadow-accent: 0 8px 32px rgba(245,48,2,.30);

  --transition:      all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);

  --nav-h: 72px;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text-main);
  background: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
  /* NOTE: NO transform on body — would break position:fixed navbar */
}

/* Page fade-in applied to a wrapper, not body */
.page-wrapper {
  opacity: 0;
  animation: pageFadeIn 0.45s ease forwards 0.05s;
}

img { display: block; max-width: 100%; height: auto; }
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; }

/* ── Page Transition (opacity only — no transform so fixed navbar works) ── */
@keyframes pageFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* ── Hero Content Animations ── */
@keyframes heroFadeUp {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Typography ── */
h1, h2, h3, h4, h5 { line-height: 1.2; font-weight: 800; color: var(--primary); }
h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.5rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.6rem); font-weight: 700; }
h4 { font-size: 1.1rem; font-weight: 700; }
p  { color: var(--gray-text); line-height: 1.75; }

.text-white h1, .text-white h2, .text-white h3, .text-white h4 { color: var(--white); }
.text-white p { color: rgba(255,255,255,0.8); }

/* ── Utilities ── */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.section      { padding: 80px 0; }
.section-sm   { padding: 48px 0; }
.section-alt  { padding: 80px 0; background: var(--gray-light); }
.section-dark { padding: 80px 0; background: var(--primary-dark); }
.section-navy { padding: 80px 0; background: var(--secondary); }

.section-tag {
  display: inline-block;
  background: var(--accent-light);
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.35rem 0.85rem;
  border-radius: 100px;
  margin-bottom: 1rem;
}
.section-tag-white {
  background: rgba(255,255,255,0.15);
  color: var(--white);
}

.section-header { margin-bottom: 3rem; }
.section-header p { max-width: 600px; margin-top: 0.75rem; }
.text-center { text-align: center; }
.text-center .section-header p { margin: 0.75rem auto 0; }
/* Fix: when section-header itself has text-center class */
.section-header.text-center p { margin: 0.75rem auto 0; text-align: center; }
.section-header.text-center h2, .section-header.text-center h3 { text-align: center; }
.section-header.text-center .section-tag { display: inline-block; }

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  font-weight: 600;
  transition: var(--transition);
  cursor: pointer;
  white-space: nowrap;
}
.btn-primary {
  background: var(--accent);
  color: var(--white);
  box-shadow: var(--shadow-accent);
}
.btn-primary:hover {
  background: var(--accent-dark);
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(245,48,2,.40);
}
.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.5);
}
.btn-outline:hover {
  background: rgba(255,255,255,0.12);
  border-color: var(--white);
  transform: translateY(-2px);
}
.btn-outline-dark {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--gray-mid);
}
.btn-outline-dark:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
}
.btn-ghost-white {
  background: rgba(255,255,255,.1);
  color: var(--white);
  border: 1px solid rgba(255,255,255,.2);
  backdrop-filter: blur(8px);
}
.btn-ghost-white:hover {
  background: rgba(255,255,255,.2);
  transform: translateY(-2px);
}
.btn-white {
  background: var(--white);
  color: var(--accent);
  font-weight: 700;
}
.btn-white:hover {
  background: var(--gray-light);
  transform: translateY(-2px);
}

/* ── Navbar ── */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--nav-h);
  transition: background 0.3s ease, box-shadow 0.3s ease, backdrop-filter 0.3s ease;
  /* Always visible — dark gradient baseline so logo/links always readable */
  background: linear-gradient(to bottom, rgba(10,15,30,0.82) 0%, rgba(10,15,30,0.35) 100%);
}
#navbar.transparent {
  background: linear-gradient(to bottom, rgba(10,15,30,0.82) 0%, rgba(10,15,30,0.0) 100%);
}
#navbar.scrolled {
  background: rgba(10, 15, 30, 0.96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 rgba(255,255,255,.07), 0 4px 24px rgba(0,0,0,.3);
}

.nav-inner {
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  z-index: 1001;
  text-decoration: none;
}
.nav-logo img { height: 42px; width: auto; object-fit: contain; }
.nav-logo-text {
  font-size: 1.15rem;
  font-weight: 900;
  color: var(--white);
  letter-spacing: 0.03em;
}
.nav-logo-text span { color: var(--accent); }

.nav-links {
  display: none;
  align-items: center;
  gap: 0.15rem;
}
.nav-links a {
  position: relative;
  color: rgba(255,255,255,0.82);
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.5rem 0.9rem;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 3px; left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 55%; height: 2px;
  background: var(--accent);
  border-radius: 1px;
  transition: transform 0.25s ease;
}
.nav-links a:hover { color: var(--white); }
.nav-links a:hover::after,
.nav-links a.active::after { transform: translateX(-50%) scaleX(1); }
.nav-links a.active { color: var(--white); font-weight: 600; }

.nav-cta { display: none; }

.nav-hamburger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  z-index: 1001;
  padding: 8px;
}
.nav-hamburger span {
  display: block;
  width: 24px; height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: var(--transition);
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile Overlay — slide in from right */
.nav-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background: rgba(7, 9, 15, 0.97);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  z-index: 998;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  padding: calc(var(--nav-h) + 2rem) 2rem 2.5rem;
  gap: 0;
  transform: translateX(100%);
  transition: transform 0.36s cubic-bezier(0.4, 0, 0.2, 1);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.nav-overlay.open { transform: translateX(0); }

.overlay-line {
  width: 28px; height: 2.5px;
  background: var(--accent);
  border-radius: 2px;
  margin-bottom: 1.75rem;
}
.nav-overlay a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.25rem;
  font-weight: 700;
  color: rgba(255,255,255,0.85);
  padding: 0.9rem 0;
  transition: color 0.2s ease, padding-left 0.2s ease;
  letter-spacing: -0.01em;
  text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  width: 100%;
}
.nav-overlay a:first-of-type { border-top: 1px solid rgba(255,255,255,0.06); }
.nav-overlay a::before {
  content: '';
  width: 0; height: 2px;
  background: var(--accent);
  border-radius: 2px;
  transition: width 0.2s ease;
  flex-shrink: 0;
}
.nav-overlay a:hover { color: #fff; padding-left: 0.35rem; }
.nav-overlay a:hover::before { width: 16px; }
.nav-overlay a.active { color: var(--accent); font-weight: 800; }
.nav-overlay a.active::before { width: 16px; }

.overlay-cta {
  margin-top: 1.75rem;
  border: none !important;
  border-top: none !important;
  background: var(--accent) !important;
  color: var(--white) !important;
  padding: 0.8rem 1.75rem !important;
  border-radius: var(--radius-md) !important;
  font-size: 0.9rem !important;
  font-weight: 700 !important;
  display: inline-flex !important;
  align-items: center !important;
  width: auto !important;
  letter-spacing: 0.01em !important;
  box-shadow: 0 4px 20px rgba(245,48,2,0.35) !important;
}
.overlay-cta::before { display: none !important; }
.overlay-cta:hover { background: var(--accent-dark) !important; padding-left: 1.75rem !important; transform: none !important; color: var(--white) !important; }

/* ── Hero Slider ── */
.hero {
  position: relative;
  height: 100vh;
  min-height: 620px;
  overflow: hidden;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1s ease;
}
.hero-slide.active { opacity: 1; }

.hero-slide-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.06);
  transition: transform 8s ease;
}
.hero-slide.active .hero-slide-bg { transform: scale(1); }

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(10,15,30,0.85) 0%,
    rgba(10,15,30,0.55) 60%,
    rgba(10,15,30,0.35) 100%
  );
}

.hero-content {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  padding-top: var(--nav-h);
}
.hero-content .container { width: 100%; }

/* Hero brand name — big TIDEC text above eyebrow */
.hero-brand-name {
  font-size: clamp(3rem, 8vw, 7rem);
  font-weight: 900;
  color: var(--white);
  letter-spacing: -0.02em;
  line-height: 1;
  margin-bottom: 0.35rem;
  opacity: 0;
  transform: translateY(-16px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.hero-brand-name span { color: var(--accent); }
.hero-slide.active ~ .hero-content .hero-brand-name,
.hero-content .hero-brand-name { opacity: 1; transform: translateY(0); }

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: rgba(255,255,255,0.75);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 1rem;
  animation: heroFadeUp 0.7s 0.15s ease both;
}
.hero-eyebrow::before {
  content: '';
  display: inline-block;
  width: 28px; height: 2px;
  background: var(--accent);
}

.hero-title {
  font-size: clamp(2.2rem, 5.5vw, 4rem);
  font-weight: 900;
  color: var(--white);
  max-width: 700px;
  line-height: 1.08;
  margin-bottom: 1.25rem;
  opacity: 0;
  animation: heroFadeUp 0.7s 0.3s ease both;
}

.hero-sub {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: rgba(255,255,255,0.80);
  max-width: 560px;
  margin-bottom: 2rem;
  opacity: 0;
  animation: heroFadeUp 0.7s 0.45s ease both;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  opacity: 0;
  animation: heroFadeUp 0.7s 0.6s ease both;
}

.hero-controls {
  position: absolute;
  bottom: 2.5rem; left: 0; right: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  z-index: 10;
}
.hero-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.38);
  cursor: pointer;
  transition: var(--transition);
  border: none;
}
.hero-dot.active { background: var(--accent); width: 26px; border-radius: 4px; }

.hero-arrow {
  position: absolute;
  top: 50%; transform: translateY(-50%);
  background: rgba(255,255,255,.10);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.16);
  color: var(--white);
  width: 50px; height: 50px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  transition: var(--transition);
  z-index: 10;
}
.hero-arrow:hover { background: var(--accent); border-color: var(--accent); }
.hero-arrow-prev { left: 1.25rem; }
.hero-arrow-next { right: 1.25rem; }
.hero-arrow svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }

/* Page Hero (short) */
.page-hero {
  height: 400px;
  position: relative;
  display: flex;
  align-items: flex-end;
  padding-bottom: 3rem;
  padding-top: var(--nav-h);
  overflow: hidden;
}
.page-hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}
.page-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10,15,30,0.92) 0%, rgba(10,15,30,0.50) 100%);
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero-eyebrow {
  display: inline-block;
  background: var(--accent);
  color: var(--white);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.3rem 0.85rem;
  border-radius: 100px;
  margin-bottom: 0.75rem;
}
.page-hero h1 { color: var(--white); font-size: clamp(2rem, 4vw, 3rem); }
.page-hero p {
  color: rgba(255,255,255,0.72);
  max-width: 560px;
  margin-top: 0.5rem;
  font-size: 1.05rem;
}

/* ── Stats Bar ── */
.stats-bar {
  background: var(--primary-dark);
  padding: 2.5rem 0;
  border-top: 1px solid rgba(255,255,255,.04);
  border-bottom: 1px solid rgba(255,255,255,.04);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem 1.5rem;
  text-align: center;
}
.stat-number {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 900;
  color: var(--white);
  line-height: 1;
  margin-bottom: 0.4rem;
}
.stat-number span { color: var(--accent); }
.stat-label {
  font-size: 0.8rem;
  font-weight: 500;
  color: rgba(255,255,255,0.45);
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

/* ── Cards ── */
.card {
  background: var(--white);
  border: 1px solid var(--gray-mid);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}
.card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s ease;
}
.card:hover::before { transform: scaleX(1); }
.card-icon {
  width: 52px; height: 52px;
  background: var(--accent-light);
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.25rem;
}
.card-icon svg { width: 26px; height: 26px; color: var(--accent); fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.card h3 { margin-bottom: 0.5rem; font-size: 1.15rem; }
.card p  { font-size: 0.9rem; }

.card-glass {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.10);
  backdrop-filter: blur(16px);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: var(--transition);
}
.card-glass:hover {
  background: rgba(255,255,255,0.10);
  border-color: rgba(255,255,255,0.18);
  transform: translateY(-4px);
}
.card-glass h3, .card-glass h4 { color: var(--white); }
.card-glass p { color: rgba(255,255,255,0.70); font-size: 0.9rem; }

.card-numbered {
  background: var(--white);
  border: 1px solid var(--gray-mid);
  border-radius: var(--radius-lg);
  padding: 2rem 2rem 2rem 5rem;
  position: relative;
  transition: var(--transition);
}
.card-numbered:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--accent);
}
.card-number {
  position: absolute;
  top: 1.8rem; left: 1.5rem;
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--accent);
  line-height: 1;
  opacity: 0.22;
}
.card-numbered h4 { margin-bottom: 0.4rem; }
.card-numbered p  { font-size: 0.88rem; }

.cards-3  { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
.cards-4  { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
.cards-2  { display: grid; grid-template-columns: 1fr; gap: 1.5rem; align-items: start; }

/* ── About Two-Col ── */
.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}
.about-img { border-radius: var(--radius-xl); overflow: hidden; aspect-ratio: 4/3; }
.about-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.about-img:hover img { transform: scale(1.04); }
.about-text p + p { margin-top: 1rem; }
.about-text .btn { margin-top: 1.75rem; }

.values-list { margin-top: 1.5rem; display: flex; flex-direction: column; gap: 0.75rem; }
.value-item { display: flex; align-items: flex-start; gap: 0.75rem; }
.value-dot { flex-shrink: 0; width: 8px; height: 8px; background: var(--accent); border-radius: 50%; margin-top: 0.45rem; }
.value-item p { margin: 0; font-size: 0.92rem; }

/* ── Photo Gallery ── */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}
.gallery-item {
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  position: relative;
  aspect-ratio: 1 / 1;
  box-shadow: 0 4px 14px rgba(10,15,30,0.08);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}
.gallery-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
  display: block;
}
.gallery-item:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(10,15,30,0.18); }
.gallery-item:hover img { transform: scale(1.08); }
.gallery-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10,15,30,0) 50%, rgba(10,15,30,0.25) 100%);
  transition: var(--transition);
  pointer-events: none;
}
.gallery-item:hover::after { background: linear-gradient(180deg, rgba(10,15,30,0) 40%, rgba(10,15,30,0.4) 100%); }

/* tablet */
@media (min-width: 640px) {
  .gallery-grid { grid-template-columns: repeat(3, 1fr); gap: 1rem; }
  .gallery-item { aspect-ratio: 4 / 3; }
}

/* desktop: bento grid with featured items */
@media (min-width: 1024px) {
  .gallery-grid {
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 200px;
    gap: 1.25rem;
  }
  .gallery-item { aspect-ratio: auto; }
  .gallery-grid .gallery-item:first-child { grid-column: span 2; grid-row: span 2; }
  .gallery-grid .gallery-item:nth-child(6):not(.gallery-big) { grid-column: span 2; }
  .gallery-grid .gallery-big { grid-column: span 2; grid-row: span 2; }
}
@media (min-width: 1280px) {
  .gallery-grid { grid-auto-rows: 220px; }
}

/* ── Org Chart ── */
.org-chart {
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow-x: auto;
  padding-bottom: 1rem;
}
.org-level {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  position: relative;
  padding: 1.25rem 0;
  width: 100%;
}
.org-level::before {
  content: '';
  position: absolute;
  top: 0; left: 50%;
  width: 2px; height: 1.25rem;
  background: rgba(245,48,2,0.4);
  transform: translateX(-50%);
}
.org-level:first-child::before { display: none; }
.org-card {
  background: var(--white);
  border: 2px solid var(--gray-mid);
  border-radius: var(--radius-md);
  padding: 1rem 1.5rem;
  text-align: center;
  min-width: 150px;
  transition: var(--transition);
}
.org-card:hover { border-color: var(--accent); box-shadow: var(--shadow-md); }
.org-card.top  { border-color: var(--accent); background: var(--accent); }
.org-card.top h4 { color: var(--white); }
.org-card.top p  { color: rgba(255,255,255,0.75); }
.org-card.external { border-style: dashed; background: var(--gray-light); }
.org-card h4 { font-size: 0.85rem; margin: 0; }
.org-card p  { font-size: 0.75rem; margin: 0.2rem 0 0; color: var(--gray-text); }

/* ── Brands Marquee ── */
.brands-marquee-section {
  padding: 2rem 0;
  background: var(--gray-light);
  overflow: hidden;
  border-top: 1px solid var(--gray-mid);
  border-bottom: 1px solid var(--gray-mid);
}
.brands-marquee-track {
  display: flex;
  align-items: center;
  gap: 3rem;
  animation: marqueeScroll 35s linear infinite;
  width: max-content;
}
.brands-marquee-track:hover { animation-play-state: paused; }
.brand-logo {
  flex-shrink: 0;
  height: 80px;
  width: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--white);
  border: 1px solid var(--gray-mid);
  border-radius: var(--radius-md);
  padding: 0.75rem 1rem;
  transition: var(--transition);
}
.brand-logo img {
  max-height: 100%;
  max-width: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: grayscale(0%);
  opacity: 1;
  transition: var(--transition);
}
.brand-logo:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}
.brand-logo:hover img { filter: grayscale(100%); opacity: 0.75; }
@media (max-width: 640px) {
  .brand-logo { height: 64px; width: 120px; padding: 0.5rem 0.75rem; }
  .brands-marquee-track { gap: 1.75rem; }
}

@keyframes marqueeScroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ── Brands Accordion ── */
.brand-accordion {
  border: 1px solid var(--gray-mid);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 0.75rem;
  transition: var(--transition);
}
.brand-accordion:hover { border-color: rgba(245,48,2,0.3); }
.brand-accordion-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 1.5rem;
  cursor: pointer;
  background: var(--white);
  transition: var(--transition);
  gap: 1rem;
}
.brand-accordion-header:hover { background: var(--gray-light); }
.brand-accordion-header.open { background: var(--accent); }
.brand-accordion-header.open .brand-acc-name { color: var(--white); }
.brand-accordion-header.open .brand-acc-cat  { color: rgba(255,255,255,0.7); }
.brand-accordion-header.open .acc-chevron    { transform: rotate(180deg); color: var(--white); }
.brand-acc-name { font-size: 1rem; font-weight: 700; color: var(--primary); }
.brand-acc-cat  { font-size: 0.78rem; color: var(--gray-text); margin-top: 0.1rem; }
.acc-left { flex: 1; }
.acc-chevron { width: 20px; height: 20px; color: var(--gray-text); transition: var(--transition); flex-shrink: 0; stroke: currentColor; fill: none; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }

.brand-accordion-body { max-height: 0; overflow: hidden; transition: max-height 0.4s ease, padding 0.3s ease; background: var(--white); }
.brand-accordion-body.open { max-height: 500px; padding: 1.25rem 1.5rem; }
.sub-brands-grid { display: flex; flex-wrap: wrap; gap: 0.45rem; }
.sub-brand-tag {
  background: var(--gray-light);
  border: 1px solid var(--gray-mid);
  border-radius: 100px;
  padding: 0.28rem 0.85rem;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--primary);
  transition: var(--transition);
}
.sub-brand-tag:hover { background: var(--accent-light); border-color: var(--accent); color: var(--accent); }

/* ── Coverage ── */
.coverage-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
.coverage-card {
  background: var(--white);
  border: 1px solid var(--gray-mid);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  transition: var(--transition);
}
.coverage-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--accent); }
.coverage-region { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 1rem; }
.coverage-icon { width: 40px; height: 40px; background: var(--accent-light); border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; }
.coverage-icon svg { width: 20px; height: 20px; color: var(--accent); fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.coverage-region h3 { font-size: 1rem; margin: 0; }
.coverage-zones { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.zone-tag { background: var(--gray-light); border-radius: 4px; padding: 0.2rem 0.6rem; font-size: 0.78rem; font-weight: 500; color: var(--primary); }

.big-stat-box {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
  border-radius: var(--radius-xl);
  padding: 3rem 2rem;
  text-align: center;
  color: var(--white);
}
.big-stat-box .big-number { font-size: clamp(3rem, 8vw, 5rem); font-weight: 900; line-height: 1; margin-bottom: 0.5rem; }
.big-stat-box p { color: rgba(255,255,255,0.88); font-size: 1.05rem; margin: 0; }

/* ── Tech Cards ── */
.tech-card {
  background: var(--white);
  border: 1px solid var(--gray-mid);
  border-radius: var(--radius-xl);
  overflow: hidden;
  transition: var(--transition);
}
.tech-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: var(--accent); }
.tech-card-header {
  background: var(--primary-dark);
  padding: 1.75rem 2rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}
.tech-badge {
  background: var(--accent);
  color: var(--white);
  font-size: 0.95rem;
  font-weight: 900;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-md);
  letter-spacing: 0.03em;
  white-space: nowrap;
}
.tech-card-header h3 { color: var(--white); font-size: 1.05rem; margin: 0; }
.tech-card-header p  { color: rgba(255,255,255,0.55); font-size: 0.8rem; margin: 0.2rem 0 0; }
.tech-card-body { padding: 2rem; }
.tech-card-body p { font-size: 0.9rem; margin-bottom: 1.25rem; }
.tech-features { list-style: none; }
.tech-features li {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  padding: 0.5rem 0;
  font-size: 0.88rem;
  color: var(--text-main);
  border-bottom: 1px solid var(--gray-light);
}
.tech-features li:last-child { border-bottom: none; }
.tech-check {
  flex-shrink: 0;
  width: 18px; height: 18px;
  background: var(--accent);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin-top: 1px;
}
.tech-check svg { width: 10px; height: 10px; stroke: white; fill: none; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }

/* ── Ecosystem Banner ── */
.ecosystem-banner {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--secondary) 100%);
  border-radius: var(--radius-xl);
  padding: 2.5rem 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.eco-step { display: flex; align-items: center; gap: 0.75rem; flex-wrap: wrap; justify-content: center; }
.eco-node {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.13);
  border-radius: var(--radius-md);
  padding: 0.9rem 1.75rem;
  color: var(--white);
  font-weight: 700;
  font-size: 0.9rem;
  text-align: center;
  transition: var(--transition);
}
.eco-node:hover { background: var(--accent); border-color: var(--accent); }
.eco-arrow { color: var(--accent); font-size: 1.3rem; font-weight: 900; opacity: 0.8; }

/* ── Fidelización ── */
.fidel-list { display: flex; flex-direction: column; gap: 1.25rem; }
.fidel-item { display: flex; align-items: flex-start; gap: 1rem; }
.fidel-num {
  flex-shrink: 0;
  width: 36px; height: 36px;
  background: var(--accent);
  color: var(--white);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800;
  font-size: 0.85rem;
}
.fidel-item p { color: rgba(255,255,255,0.82); font-size: 0.95rem; margin: 0; padding-top: 0.45rem; }

/* ── Infrastructure ── */
.infra-grid { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
.infra-card {
  background: var(--white);
  border: 1px solid var(--gray-mid);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  transition: var(--transition);
}
.infra-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--accent); }
.infra-icon {
  flex-shrink: 0;
  width: 48px; height: 48px;
  background: var(--accent-light);
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
}
.infra-icon svg { width: 24px; height: 24px; color: var(--accent); fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.infra-card h4 { margin-bottom: 0.3rem; font-size: 1rem; }
.infra-card p  { font-size: 0.87rem; }

/* ── Contact ── */
.contact-grid { display: grid; grid-template-columns: 1fr; gap: 3rem; align-items: start; }
.contact-info-cards { display: flex; flex-direction: column; gap: 1rem; }
.contact-card {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  background: var(--white);
  border: 1px solid var(--gray-mid);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  transition: var(--transition);
}
.contact-card:hover { border-color: var(--accent); box-shadow: var(--shadow-sm); }
.contact-card-icon { flex-shrink: 0; width: 44px; height: 44px; background: var(--accent-light); border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; }
.contact-card-icon svg { width: 22px; height: 22px; color: var(--accent); fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.contact-card h4 { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--gray-text); font-weight: 600; margin-bottom: 0.25rem; }
.contact-card p  { font-size: 0.95rem; font-weight: 500; color: var(--primary); margin: 0; }
.contact-card a  { color: var(--accent); }
.contact-card a:hover { text-decoration: underline; }

.contact-form-wrap {
  background: var(--white);
  border: 1px solid var(--gray-mid);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
}
.contact-form-wrap h3 { margin-bottom: 0.4rem; }
.contact-form-wrap > p { margin-bottom: 2rem; font-size: 0.9rem; }
.form-row { display: grid; grid-template-columns: 1fr; gap: 1.25rem; }
.form-group { display: flex; flex-direction: column; gap: 0.45rem; }
.form-group label { font-size: 0.84rem; font-weight: 600; color: var(--primary); }
.form-group input,
.form-group textarea {
  padding: 0.75rem 1rem;
  border: 1.5px solid var(--gray-mid);
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  color: var(--primary);
  background: var(--gray-light);
  transition: var(--transition);
  outline: none;
  width: 100%;
}
.form-group input:focus,
.form-group textarea:focus { border-color: var(--accent); background: var(--white); box-shadow: 0 0 0 3px var(--accent-light); }
.form-group textarea { resize: vertical; min-height: 130px; }
.form-submit { margin-top: 1.5rem; }
.form-note { font-size: 0.8rem; color: var(--gray-text); margin-top: 0.75rem; }
.form-success { display: none; text-align: center; padding: 2rem; }
.form-success svg { width: 48px; height: 48px; color: #22c55e; margin: 0 auto 1rem; }
.form-success h4 { color: var(--primary); margin-bottom: 0.5rem; }

/* ── CTA Section ── */
.cta-section {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
  padding: 5rem 0;
  text-align: center;
}
.cta-section h2, .cta-section p { color: var(--white); }
.cta-section p { max-width: 520px; margin: 1rem auto 2rem; opacity: 0.88; }

/* ── Footer ── */
footer {
  background: var(--primary-dark);
  padding-top: 4rem;
  color: rgba(255,255,255,0.65);
}
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 2.5rem; }
.footer-brand p { font-size: 0.88rem; line-height: 1.7; max-width: 280px; }
.footer-brand .footer-tagline { display: inline-block; margin-top: 0.75rem; font-size: 0.76rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--accent); }
.footer-logo { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 1rem; }
.footer-logo img { height: 38px; }
.footer-logo-text { font-size: 1.1rem; font-weight: 900; color: var(--white); letter-spacing: 0.03em; }
.footer-logo-text span { color: var(--accent); }
.footer-col h5 { color: var(--white); font-size: 0.82rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.09em; margin-bottom: 1rem; }
.footer-col ul { display: flex; flex-direction: column; gap: 0.5rem; }
.footer-col ul a { font-size: 0.88rem; transition: var(--transition); color: rgba(255,255,255,0.55); }
.footer-col ul a:hover { color: var(--white); padding-left: 4px; }
.footer-contact-item { display: flex; align-items: flex-start; gap: 0.6rem; font-size: 0.88rem; margin-bottom: 0.6rem; color: rgba(255,255,255,0.60); }
.footer-contact-item svg { width: 15px; height: 15px; flex-shrink: 0; color: var(--accent); stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; margin-top: 3px; }
.footer-social { display: flex; gap: 0.65rem; margin-top: 1rem; }
.social-icon { width: 36px; height: 36px; background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.11); border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; transition: var(--transition); color: rgba(255,255,255,0.65); }
.social-icon:hover { background: var(--accent); border-color: var(--accent); color: var(--white); }
.social-icon svg { width: 17px; height: 17px; fill: currentColor; }
.footer-bottom { margin-top: 3rem; padding: 1.25rem 0; border-top: 1px solid rgba(255,255,255,.05); display: flex; flex-direction: column; align-items: center; gap: 0.5rem; text-align: center; }
.footer-bottom p { font-size: 0.78rem; color: rgba(255,255,255,0.28); margin: 0; }

/* ── WhatsApp Float ── */
.whatsapp-float {
  position: fixed;
  bottom: 1.75rem;
  right: 1.5rem;
  z-index: 99999;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: #25D366;
  color: var(--white);
  border-radius: 50px;
  padding: 0 1.1rem 0 0.85rem;
  height: 54px;
  box-shadow: 0 4px 20px rgba(37,211,102,0.5), 0 2px 8px rgba(0,0,0,0.18);
  transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.9rem;
  white-space: nowrap;
  overflow: hidden;
  max-width: 54px; /* collapsed — icon only */
}
.whatsapp-float:hover {
  max-width: 220px;
  box-shadow: 0 8px 32px rgba(37,211,102,0.55), 0 4px 12px rgba(0,0,0,0.2);
  transform: translateY(-2px);
}
.whatsapp-float .wa-icon {
  flex-shrink: 0;
  width: 30px; height: 30px;
  display: flex; align-items: center; justify-content: center;
}
.whatsapp-float svg { width: 30px; height: 30px; fill: var(--white); flex-shrink: 0; }
.whatsapp-float .wa-label {
  opacity: 0;
  transition: opacity 0.2s ease 0.1s;
  pointer-events: none;
}
.whatsapp-float:hover .wa-label { opacity: 1; }
.whatsapp-float::before {
  content: '';
  position: absolute;
  inset: -5px;
  border-radius: 50px;
  border: 2.5px solid rgba(37,211,102,0.35);
  animation: waPulse 2.5s ease-in-out infinite;
  pointer-events: none;
}

@keyframes waPulse {
  0%, 100% { transform: scale(1); opacity: 0.7; }
  50%       { transform: scale(1.15); opacity: 0; }
}

/* ── Scroll Reveal ── */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.reveal.revealed { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.10s; }
.reveal-delay-2 { transition-delay: 0.20s; }
.reveal-delay-3 { transition-delay: 0.30s; }
.reveal-delay-4 { transition-delay: 0.40s; }
.reveal-delay-5 { transition-delay: 0.50s; }

/* ── Responsive ── */

/* sm: 640px */
@media (min-width: 640px) {
  .stats-grid { grid-template-columns: repeat(4, 1fr); }
  .coverage-grid { grid-template-columns: repeat(2, 1fr); }
  .infra-grid { grid-template-columns: repeat(2, 1fr); }
  .form-row { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

/* md: 768px */
@media (min-width: 768px) {
  .cards-3 { grid-template-columns: repeat(2, 1fr); }
  .cards-4 { grid-template-columns: repeat(2, 1fr); }
  .about-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr 1fr; }
  .ecosystem-banner { flex-direction: row; }
}

/* lg: 1024px */
@media (min-width: 1024px) {
  .nav-links { display: flex; }
  .nav-cta { display: flex; }
  .nav-hamburger { display: none; }
  .cards-3 { grid-template-columns: repeat(3, 1fr); }
  .cards-4 { grid-template-columns: repeat(4, 1fr); }
  .cards-2 { grid-template-columns: repeat(2, 1fr); }
  .coverage-grid { grid-template-columns: repeat(2, 1fr); }
  .infra-grid { grid-template-columns: repeat(4, 1fr); }
  .footer-grid { grid-template-columns: 2fr 1fr 1.5fr 1.2fr; }
  .footer-bottom { flex-direction: row; justify-content: space-between; text-align: left; }
}

/* xl: 1280px */
@media (min-width: 1280px) {
  .container { padding: 0 2rem; }
}

html, body { max-width: 100%; overflow-x: hidden; }

/* ============================================================
   EXTENDED COMPONENTS — Multi-page additions
   ============================================================ */

/* ── Page Hero (inner pages) ── */
.page-hero {
  position: relative;
  height: 55vh;
  min-height: 360px;
  max-height: 520px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}
.page-hero-short {
  min-height: 300px;
  max-height: 400px;
}
.page-hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.05);
  transition: transform 8s ease;
}
.page-hero:hover .page-hero-bg { transform: scale(1); }
.page-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10,15,30,.92) 30%, rgba(10,15,30,.55) 70%, rgba(10,15,30,.3) 100%);
}
.page-hero-content {
  position: relative;
  z-index: 2;
  padding-bottom: 3.5rem;
}
.page-hero-content h1 { margin: 0.5rem 0; }
.page-hero-content p { max-width: 600px; margin: 0; font-size: 1.05rem; }

/* ── Section tag light ── */
.section-tag-light {
  background: rgba(245,48,2,0.18);
  color: rgba(255,255,255,0.95);
  border: 1px solid rgba(245,48,2,0.35);
}

/* ── Coverage Stat ── */
.coverage-stat {
  text-align: center;
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--secondary) 100%);
  border-radius: var(--radius-lg);
  padding: 3rem 2rem;
  margin: 3rem 0;
  color: var(--white);
}
.coverage-stat-number {
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 900;
  color: var(--accent);
  line-height: 1;
}
.coverage-stat-label {
  font-size: 1.15rem;
  opacity: .85;
  margin-top: 0.75rem;
}

/* ── Zones Grid ── */
.zones-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin-bottom: 2.5rem;
}
@media (min-width: 640px)  { .zones-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .zones-grid { grid-template-columns: repeat(3, 1fr); } }

.zone-card {
  background: var(--white);
  border: 1px solid var(--gray-mid);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}
.zone-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: rgba(245,48,2,.25); }
.zone-capital { border-top: 3px solid var(--accent); }
.zone-header { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.25rem; }
.zone-icon {
  width: 44px; height: 44px;
  background: var(--accent-light);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  color: var(--accent);
  flex-shrink: 0;
}
.zone-icon svg { width: 22px; height: 22px; }
.zone-header h3 { font-size: 1.05rem; margin: 0; }
.zone-body { display: flex; flex-direction: column; gap: 0.75rem; }
.zone-item { display: flex; align-items: baseline; gap: 0.6rem; }
.zone-num { font-size: 2rem; font-weight: 900; color: var(--accent); line-height: 1; }
.zone-desc { font-size: 0.875rem; color: var(--gray-text); }

/* ── Routes Banner ── */
.routes-banner {
  background: var(--primary-dark);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  color: var(--white);
  margin-top: 1rem;
}
.routes-banner-inner {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  align-items: center;
  text-align: center;
  margin-bottom: 1.5rem;
}
@media (min-width: 768px) {
  .routes-banner-inner { flex-direction: row; justify-content: center; gap: 3rem; }
}
.routes-item { display: flex; flex-direction: column; gap: 0.25rem; }
.routes-num { font-size: 2.2rem; font-weight: 900; color: var(--accent); }
.routes-label { font-size: 0.82rem; opacity: .75; text-transform: uppercase; letter-spacing: 0.07em; }
.routes-divider { display: none; width: 1px; height: 50px; background: rgba(255,255,255,.12); }
@media (min-width: 768px) { .routes-divider { display: block; } }
.routes-tagline { text-align: center; font-size: 0.95rem; opacity: .7; margin: 0; }

/* ── Brands Accordion (red-comercial) ── */
.brands-accordion-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
  margin-bottom: 2rem;
}
@media (min-width: 768px) { .brands-accordion-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .brands-accordion-grid { grid-template-columns: repeat(3, 1fr); } }

.brand-accordion {
  background: var(--white);
  border: 1px solid var(--gray-mid);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}
.brand-accordion:hover { border-color: rgba(245,48,2,.3); box-shadow: var(--shadow-md); }

.brand-accordion-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.1rem 1.25rem;
  cursor: pointer;
  transition: background 0.2s;
  user-select: none;
}
.brand-accordion-header:hover { background: var(--gray-light); }
.brand-accordion-header.open { background: var(--accent); }
.brand-accordion-header.open h4,
.brand-accordion-header.open .brand-acc-count { color: var(--white) !important; }
.brand-accordion-header.open .brand-acc-chevron svg { transform: rotate(180deg); color: var(--white); }

.brand-acc-logo {
  width: 44px; height: 44px;
  border-radius: var(--radius-sm);
  background: var(--gray-light);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}
.brand-acc-logo img { width: 100%; height: 100%; object-fit: contain; padding: 4px; }
.brand-acc-logo-text {
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--accent);
  background: var(--accent-light);
}
.brand-acc-info { flex: 1; min-width: 0; }
.brand-acc-info h4 { font-size: 0.95rem; margin: 0 0 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brand-acc-count { font-size: 0.75rem; color: var(--gray-text); }
.brand-acc-chevron svg { width: 18px; height: 18px; color: var(--gray-text); transition: transform 0.3s ease; }

.brand-accordion-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.3s ease;
  background: var(--gray-light);
}
.brand-accordion-body.open { max-height: 300px; padding: 1rem 1.25rem 1.25rem; }

.sub-brands-grid { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.sub-brand {
  display: inline-block;
  padding: 0.3rem 0.75rem;
  background: var(--white);
  border: 1px solid var(--gray-mid);
  border-radius: 50px;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-main);
  transition: var(--transition);
}
.sub-brand:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-light); }

.brands-note {
  text-align: center;
  padding: 1.5rem;
  background: var(--gray-light);
  border-radius: var(--radius-md);
  font-size: 0.9rem;
}
.brands-note a { color: var(--accent); font-weight: 600; }
.brands-note a:hover { text-decoration: underline; }

/* ── Infra Cards (estructura) ── */
.infra-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin-top: 3rem;
}
@media (min-width: 640px)  { .infra-cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .infra-cards { grid-template-columns: repeat(3, 1fr); } }

.infra-card {
  display: flex;
  gap: 1.25rem;
  background: var(--white);
  border: 1px solid var(--gray-mid);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  align-items: flex-start;
}
.infra-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: rgba(245,48,2,.25); }
.infra-card-icon {
  flex-shrink: 0;
  width: 48px; height: 48px;
  background: var(--accent-light);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  color: var(--accent);
}
.infra-card-icon svg { width: 24px; height: 24px; }
.infra-card-body { flex: 1; }
.infra-num { font-size: 1.5rem; font-weight: 900; color: var(--accent); line-height: 1.1; margin-bottom: 0.2rem; }
.infra-card h4 { font-size: 0.95rem; margin-bottom: 0.4rem; }
.infra-card p { font-size: 0.85rem; margin: 0; }

/* ── Gallery Section (estructura) ── */
.gallery-section { padding: 5rem 0; }
.gallery-grid { margin-top: 2.5rem; }
.gallery-big { grid-column: span 2; }

/* ── Ecosystem Flow ── */
.ecosystem-flow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin: 2.5rem 0 3.5rem;
  padding: 2rem;
  background: var(--gray-light);
  border-radius: var(--radius-lg);
}
.eco-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  text-align: center;
}
.eco-icon {
  width: 56px; height: 56px;
  background: var(--primary-dark);
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  color: var(--white);
}
.eco-icon svg { width: 26px; height: 26px; }
.eco-step span { font-size: 0.85rem; font-weight: 700; color: var(--text-main); }
.eco-step small { font-size: 0.72rem; color: var(--gray-text); }
.eco-result .eco-icon { background: var(--accent); }
.eco-arrow { font-size: 1.5rem; color: var(--accent); font-weight: 700; }
@media (max-width: 639px) { .eco-arrow { display: none; } .ecosystem-flow { gap: 1.25rem; } }

/* ── Tech Cards (estructura) ── */
.tech-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}
@media (min-width: 768px)  { .tech-cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .tech-cards { grid-template-columns: repeat(3, 1fr); } }

.tech-card {
  background: var(--white);
  border: 1px solid var(--gray-mid);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}
.tech-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: var(--accent); }

.tech-card-header { padding: 1.75rem; background: var(--primary-dark); }
.tech-card-header-2 { background: var(--secondary); }
.tech-card-header-3 { background: #1a2a1a; }

.tech-badge {
  display: inline-block;
  background: rgba(255,255,255,.15);
  color: rgba(255,255,255,.9);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.25rem 0.75rem;
  border-radius: 50px;
  margin-bottom: 0.75rem;
}
.tech-card-header h3 { color: var(--white); font-size: 1.5rem; margin: 0 0 0.25rem; }
.tech-subtitle { color: rgba(255,255,255,.6); font-size: 0.85rem; margin: 0; }

.tech-card-body { padding: 1.75rem; flex: 1; }
.tech-card-body > p { font-size: 0.88rem; margin-bottom: 1.25rem; }
.tech-card-body h5 { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.07em; color: var(--gray-text); margin: 1.25rem 0 0.75rem; }

.tech-features { display: flex; flex-direction: column; gap: 0.5rem; margin-bottom: 1.25rem; }
.tech-features li { display: flex; align-items: baseline; gap: 0.6rem; font-size: 0.875rem; color: var(--text-main); }
.feat-check { color: var(--accent); font-weight: 700; flex-shrink: 0; }

.tech-tagline {
  font-size: 0.82rem;
  font-style: italic;
  color: var(--gray-text);
  border-left: 3px solid var(--accent);
  padding-left: 0.75rem;
  margin-top: 1rem;
}

/* ── Tech Banner ── */
.tech-banner {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--secondary) 100%);
  border-radius: var(--radius-lg);
  padding: 3rem 2.5rem;
  color: var(--white);
}
.tech-banner-inner h3 { color: var(--white); font-size: 1.6rem; margin-bottom: 1rem; }
.tech-banner-inner > p { color: rgba(255,255,255,.75); font-size: 0.95rem; max-width: 700px; margin-bottom: 2rem; }
.tech-banner-results {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}
@media (min-width: 768px) { .tech-banner-results { grid-template-columns: repeat(3, 1fr); } }
.tech-result-item { display: flex; align-items: center; gap: 0.5rem; font-size: 0.88rem; }
.result-check { color: var(--accent); font-weight: 700; font-size: 1rem; }

/* ── Service Cards (servicios) ── */
.service-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin-top: 3rem;
}
@media (min-width: 640px)  { .service-cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .service-cards { grid-template-columns: repeat(3, 1fr); } }

.service-card {
  background: var(--white);
  border: 1px solid var(--gray-mid);
  border-radius: var(--radius-md);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}
.service-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.service-card:hover::before { transform: scaleX(1); }

.service-card-num {
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--gray-mid);
  line-height: 1;
  margin-bottom: 1rem;
  transition: color 0.3s;
}
.service-card:hover .service-card-num { color: var(--accent-light); }
.service-card-icon {
  width: 48px; height: 48px;
  background: var(--accent-light);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  color: var(--accent);
  margin-bottom: 1rem;
}
.service-card-icon svg { width: 24px; height: 24px; }
.service-card h4 { margin-bottom: 0.5rem; }
.service-card p { font-size: 0.875rem; margin: 0; }

/* ── Fidelización Section ── */
.fidelizacion-section {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--secondary) 100%);
  padding: 5rem 0;
}
.fidelizacion-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}
@media (min-width: 768px) { .fidelizacion-grid { grid-template-columns: 1fr 1fr; } }

.fidelizacion-text h2 { color: var(--white); }
.fidelizacion-text p { color: rgba(255,255,255,.75); margin-bottom: 1.5rem; }

.fideli-list { display: flex; flex-direction: column; gap: 0.875rem; margin-bottom: 1rem; }
.fideli-list li { display: flex; align-items: center; gap: 0.875rem; }
.fideli-dot {
  width: 8px; height: 8px;
  background: var(--accent);
  border-radius: 50%;
  flex-shrink: 0;
}
.fideli-list span { font-size: 0.9rem; color: rgba(255,255,255,.85); }

.fidelizacion-img { position: relative; }
.fidelizacion-img img {
  width: 100%; height: 380px;
  object-fit: cover;
  border-radius: var(--radius-lg);
}
.fideli-stat {
  position: absolute;
  bottom: 1.5rem; left: 1.5rem;
  background: var(--accent);
  color: var(--white);
  border-radius: var(--radius-md);
  padding: 1rem 1.5rem;
}
.fideli-stat-num { font-size: 1.8rem; font-weight: 900; line-height: 1; }
.fideli-stat-label { font-size: 0.75rem; opacity: .85; margin-top: 2px; }

/* ── Why Grid ── */
.why-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin-top: 3rem;
  margin-bottom: 3rem;
}
@media (min-width: 640px)  { .why-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .why-grid { grid-template-columns: repeat(3, 1fr); } }

.why-card {
  background: var(--white);
  border: 1px solid var(--gray-mid);
  border-radius: var(--radius-md);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}
.why-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: rgba(245,48,2,.25); }
.why-num {
  font-size: 2.8rem;
  font-weight: 900;
  color: var(--accent);
  opacity: .18;
  line-height: 1;
  margin-bottom: 0.75rem;
  transition: opacity 0.3s;
}
.why-card:hover .why-num { opacity: .35; }
.why-card h4 { margin-bottom: 0.5rem; font-size: 1rem; }
.why-card p { font-size: 0.875rem; margin: 0; }

/* ── Scale Banner ── */
.scale-banner {
  background: var(--primary-dark);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  align-items: center;
  text-align: center;
}
@media (min-width: 768px) {
  .scale-banner { flex-direction: row; justify-content: space-around; gap: 0; }
}
.scale-item { display: flex; flex-direction: column; gap: 0.3rem; }
.scale-num { font-size: 2rem; font-weight: 900; color: var(--accent); }
.scale-label { font-size: 0.78rem; color: rgba(255,255,255,.55); text-transform: uppercase; letter-spacing: 0.07em; }
.scale-divider { display: none; width: 1px; height: 44px; background: rgba(255,255,255,.1); }
@media (min-width: 768px) { .scale-divider { display: block; } }

/* ── CTA Section ── */
.cta-section {
  background: var(--primary-dark);
  padding: 5rem 0;
}
.cta-inner {
  text-align: center;
  max-width: 680px;
  margin: 0 auto;
}
.cta-inner h2 { color: var(--white); margin-bottom: 1rem; }
.cta-inner p { color: rgba(255,255,255,.65); margin-bottom: 2.5rem; font-size: 1.05rem; }
.cta-btns { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ── Contact (contacto.html extended) ── */
.contact-items { display: flex; flex-direction: column; gap: 1.5rem; margin: 2rem 0; }
.contact-item { display: flex; gap: 1rem; align-items: flex-start; }
.contact-item-icon {
  width: 44px; height: 44px;
  background: var(--accent-light);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  color: var(--accent);
  flex-shrink: 0;
}
.contact-item-icon svg { width: 20px; height: 20px; }
.contact-item h5 { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.07em; color: var(--gray-text); margin-bottom: 0.25rem; }
.contact-item p, .contact-item a { font-size: 0.95rem; margin: 0; color: var(--text-main); }
.contact-item a:hover { color: var(--accent); }

.form-intro { font-size: 0.9rem; margin-bottom: 1.75rem; }
.form-row { display: grid; grid-template-columns: 1fr; gap: 1rem; }
@media (min-width: 640px) { .form-row { grid-template-columns: 1fr 1fr; } }

.contact-form-wrap select {
  width: 100%;
  padding: 0.75rem 1rem;
  font-family: inherit;
  font-size: 0.9rem;
  border: 1.5px solid var(--gray-mid);
  border-radius: var(--radius-sm);
  background: var(--white);
  color: var(--text-main);
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.875rem center;
  cursor: pointer;
  transition: border-color 0.2s;
}
.contact-form-wrap select:focus { outline: none; border-color: var(--accent); }

.form-success { text-align: center; padding: 3rem 2rem; }
.success-icon {
  width: 64px; height: 64px;
  background: #dcfce7;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1.5rem;
  color: #16a34a;
}
.success-icon svg { width: 32px; height: 32px; }
.form-success h3 { color: var(--primary); margin-bottom: 0.75rem; }
.form-success p { max-width: 360px; margin: 0 auto; }

/* ── Utility Buttons ── */
.btn-wa {
  background: #25D366;
  color: var(--white);
  border-color: #25D366;
}
.btn-wa:hover { background: #1fba57; transform: translateY(-2px); box-shadow: 0 6px 20px rgba(37,211,102,.35); }
.btn-block { width: 100%; }

/* ── Footer Social Link ── */
.footer-social-link {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.875rem;
  color: rgba(255,255,255,.55);
  margin-bottom: 0.75rem;
  transition: var(--transition);
}
.footer-social-link svg { width: 18px; height: 18px; flex-shrink: 0; }
.footer-social-link:hover { color: var(--white); }

/* ── Footer list li (plain text) ── */
.footer-col ul li:not(:has(a)) { font-size: 0.88rem; color: rgba(255,255,255,.45); }

/* ================================================================
   GLASSMORPHISM DESIGN SYSTEM — 2026
   ================================================================ */

/* ── CSS Variables for glass ── */
:root {
  --glass-bg:        rgba(255, 255, 255, 0.07);
  --glass-bg-dark:   rgba(10, 15, 30, 0.55);
  --glass-border:    rgba(255, 255, 255, 0.12);
  --glass-border-sm: rgba(255, 255, 255, 0.07);
  --glass-blur:      blur(16px);
  --glass-blur-sm:   blur(8px);
  --glass-shadow:    0 8px 32px rgba(0,0,0,0.18), 0 2px 8px rgba(0,0,0,0.12);
}

/* ── Navbar glass refinement ── */
#navbar.scrolled {
  background: rgba(7, 9, 18, 0.88) !important;
  backdrop-filter: blur(28px) saturate(180%) !important;
  -webkit-backdrop-filter: blur(28px) saturate(180%) !important;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  box-shadow: 0 1px 0 rgba(255,255,255,.05), 0 8px 32px rgba(0,0,0,.35) !important;
}

/* ── Stats bar glass ── */
.stats-bar {
  background: linear-gradient(135deg, rgba(10,15,30,0.98) 0%, rgba(20,30,60,0.98) 100%) !important;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid rgba(255,255,255,0.06) !important;
  border-bottom: 1px solid rgba(255,255,255,0.06) !important;
  position: relative;
}
.stats-bar::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 0%, rgba(245,48,2,0.04) 50%, transparent 100%);
  pointer-events: none;
}
.stat-item {
  position: relative;
}
.stat-item::after {
  content: '';
  position: absolute;
  right: -0.75rem; top: 20%; bottom: 20%;
  width: 1px;
  background: rgba(255,255,255,0.08);
}
.stats-grid .stat-item:last-child::after { display: none; }

/* ── Cards glass upgrade ── */
.card {
  background: #ffffff !important;
  border: 1px solid rgba(226,232,240,0.8) !important;
  box-shadow: 0 2px 12px rgba(0,0,0,0.05), 0 1px 3px rgba(0,0,0,0.04) !important;
}
.card:hover {
  background: linear-gradient(135deg, #ffffff 0%, rgba(245,48,2,0.02) 100%) !important;
  border-color: rgba(245,48,2,0.18) !important;
  box-shadow: 0 20px 60px rgba(0,0,0,0.12), 0 4px 16px rgba(245,48,2,0.08) !important;
}
.section-alt .card {
  background: rgba(255,255,255,0.85) !important;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

/* ── Hero glass content panel ── */
.hero-content .container > *:not(.hero-ctas) {
  /* Subtle text shadow for readability over photos */
  text-shadow: 0 2px 12px rgba(0,0,0,0.4);
}

/* ── About section glass image ── */
.about-img {
  position: relative;
}
.about-img::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, rgba(245,48,2,0.08) 0%, transparent 60%);
  pointer-events: none;
}
.about-img img {
  border-radius: var(--radius-xl);
  box-shadow: 0 24px 64px rgba(0,0,0,0.18), 0 8px 24px rgba(245,48,2,0.08);
}

/* ── Page hero glass refinement ── */
.page-hero-overlay {
  background: linear-gradient(
    to bottom,
    rgba(10,15,30,0.6) 0%,
    rgba(10,15,30,0.45) 40%,
    rgba(10,15,30,0.75) 100%
  ) !important;
}
.page-hero-content {
  /* Glass panel behind hero text on inner pages */
  background: transparent;
}

/* ── Zone cards glass (red-comercial) ── */
.zone-card {
  background: rgba(255,255,255,0.92) !important;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(226,232,240,0.7) !important;
  box-shadow: 0 4px 24px rgba(0,0,0,0.07) !important;
  transition: all 0.3s ease !important;
}
.zone-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(0,0,0,0.12), 0 4px 16px rgba(245,48,2,0.1) !important;
  border-color: rgba(245,48,2,0.2) !important;
}
.zone-capital {
  background: linear-gradient(135deg, rgba(245,48,2,0.06) 0%, rgba(245,48,2,0.02) 100%) !important;
  border-color: rgba(245,48,2,0.2) !important;
}

/* ── Infra cards glass (estructura) ── */
.infra-card {
  background: rgba(255,255,255,0.9) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(226,232,240,0.6) !important;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06) !important;
  transition: all 0.3s ease !important;
  border-top: 3px solid var(--accent) !important;
}
.infra-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 50px rgba(0,0,0,0.12), 0 4px 16px rgba(245,48,2,0.1) !important;
}

/* ── Tech cards glass (estructura) ── */
.tech-card {
  background: rgba(255,255,255,0.95) !important;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 4px 24px rgba(0,0,0,0.08) !important;
}
.tech-card:hover {
  box-shadow: 0 24px 64px rgba(0,0,0,0.14), 0 8px 24px rgba(245,48,2,0.1) !important;
}

/* ── Service cards glass (servicios) ── */
.service-card {
  background: rgba(255,255,255,0.92) !important;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(226,232,240,0.7) !important;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06) !important;
  transition: all 0.3s ease !important;
}
.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 50px rgba(0,0,0,0.12), 0 4px 16px rgba(245,48,2,0.1) !important;
  border-color: rgba(245,48,2,0.2) !important;
}

/* ── Why-grid cards glass (servicios) ── */
.why-card {
  background: rgba(255,255,255,0.92) !important;
  border: 1px solid rgba(226,232,240,0.7) !important;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06) !important;
  transition: all 0.3s ease !important;
  position: relative;
  overflow: hidden;
}
.why-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(245,48,2,0.0) 0%, rgba(245,48,2,0.04) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}
.why-card:hover::after { opacity: 1; }
.why-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(0,0,0,0.1), 0 4px 16px rgba(245,48,2,0.08) !important;
  border-color: rgba(245,48,2,0.15) !important;
}

/* ── Brand accordion glass (red-comercial) ── */
.brand-accordion {
  background: rgba(255,255,255,0.9) !important;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(226,232,240,0.6) !important;
  box-shadow: 0 2px 12px rgba(0,0,0,0.05) !important;
  transition: all 0.3s ease !important;
}
.brand-accordion:hover,
.brand-accordion-header.open {
  box-shadow: 0 8px 32px rgba(0,0,0,0.1), 0 2px 8px rgba(245,48,2,0.08) !important;
}

/* ── Contact form glass ── */
.contact-form-wrap {
  background: rgba(255,255,255,0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(226,232,240,0.7);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  box-shadow: 0 8px 40px rgba(0,0,0,0.08), 0 2px 8px rgba(0,0,0,0.04);
}

/* ── CTA section glass ── */
.cta-section {
  position: relative;
  overflow: hidden;
}
.cta-inner,
.cta-section > .container > .reveal {
  position: relative;
  z-index: 1;
}
.cta-section::before {
  content: '';
  position: absolute;
  top: -50%; left: -25%;
  width: 150%; height: 200%;
  background: radial-gradient(ellipse at center, rgba(245,48,2,0.15) 0%, transparent 65%);
  pointer-events: none;
}
.cta-section::after {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23f53002' fill-opacity='0.03'%3E%3Ccircle cx='30' cy='30' r='1'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}

/* ── Footer glass separator ── */
footer {
  position: relative;
}
footer::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(245,48,2,0.4), transparent);
}

/* ── Brands marquee glass ── */
.brands-marquee-section {
  position: relative;
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%) !important;
}
.brand-logo {
  background: rgba(255,255,255,0.9) !important;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(226,232,240,0.8) !important;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06) !important;
}
.brand-logo:hover {
  background: rgba(255,255,255,1) !important;
  box-shadow: 0 8px 20px rgba(0,0,0,0.1) !important;
  border-color: rgba(245,48,2,0.25) !important;
}

/* ── Value items glass dots ── */
.value-dot {
  background: var(--accent) !important;
  box-shadow: 0 0 0 4px rgba(245,48,2,0.15);
}

/* ── Section tag glass ── */
.section-tag {
  box-shadow: 0 2px 8px rgba(245,48,2,0.12);
}

/* ── Input/textarea glass ── */
.contact-form input,
.contact-form textarea,
.contact-form select {
  background: rgba(248,250,252,0.9) !important;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border: 1.5px solid rgba(226,232,240,0.8) !important;
  transition: all 0.25s ease !important;
}
.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
  background: rgba(255,255,255,1) !important;
  border-color: var(--accent) !important;
  box-shadow: 0 0 0 3px rgba(245,48,2,0.1) !important;
  outline: none !important;
}

/* ── Gallery items glass (shadow only, layout handled above) ── */
.gallery-item {
  box-shadow: 0 4px 20px rgba(0,0,0,0.12);
}

/* ── Products Showcase Propuesta ── */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.5rem;
  padding: 1rem 0;
}
.product-card {
  background: var(--white);
  border: 1px solid var(--gray-mid);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--accent);
}
.product-brand-tag {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: var(--gray-light);
  color: var(--primary);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  border: 1px solid var(--gray-mid);
  z-index: 10;
}
.product-img {
  width: 100%;
  aspect-ratio: 1 / 1;
  background: var(--gray-light);
  border-radius: var(--radius-sm);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}
.product-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  mix-blend-mode: multiply;
  transition: transform 0.5s ease;
  padding: 1rem;
}
.product-card:hover .product-img img {
  transform: scale(1.08);
}
.product-placeholder {
  color: var(--gray-text);
  font-size: 0.85rem;
  font-weight: 500;
  text-align: center;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}
.product-placeholder svg {
  width: 24px;
  height: 24px;
  color: var(--gray-mid);
}
.product-info {
  width: 100%;
}
.product-info h5 {
  font-size: 0.95rem;
  margin-bottom: 0.2rem;
  color: var(--primary);
  line-height: 1.3;
}
.product-info p {
  font-size: 0.8rem;
  color: var(--gray-text);
  margin: 0;
}

/* ── E-Commerce Catalog Layout ── */
.catalog-section {
  padding: 4rem 0;
  background: var(--bg-alt);
}
.catalog-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 2rem;
  align-items: start;
}
.mobile-filter-btn {
  display: none;
  width: 100%;
  padding: 1rem;
  background: var(--white);
  border: 1px solid var(--gray-mid);
  border-radius: var(--radius-md);
  font-weight: 600;
  color: var(--primary);
  text-align: center;
  margin-bottom: 1rem;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}
.mobile-filter-btn svg {
  width: 20px;
  height: 20px;
}
.catalog-sidebar {
  background: var(--white);
  border-radius: var(--radius-md);
  border: 1px solid var(--gray-mid);
  padding: 1.5rem;
  position: sticky;
  top: 100px;
}
.sidebar-header h3 {
  font-size: 1.2rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--gray-light);
}
.brand-list {
  list-style: none;
  padding: 0;
  margin: 0;
  max-height: 60vh;
  overflow-y: auto;
}
.brand-list::-webkit-scrollbar {
  width: 4px;
}
.brand-list::-webkit-scrollbar-thumb {
  background: var(--gray-mid);
  border-radius: 4px;
}
.brand-list li {
  padding: 0.6rem 0.8rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 0.95rem;
  color: var(--gray-text);
  transition: var(--transition);
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.2rem;
}
.brand-list li:hover {
  background: var(--gray-light);
  color: var(--primary);
}
.brand-list li.active {
  background: var(--accent);
  color: var(--primary);
  font-weight: 600;
}
.brand-count-badge {
  font-size: 0.75rem;
  background: rgba(0,0,0,0.05);
  padding: 2px 8px;
  border-radius: 12px;
}
.brand-list li.active .brand-count-badge {
  background: var(--primary);
  color: var(--accent);
}
.catalog-top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  gap: 1rem;
}
.catalog-title h2 {
  margin: 0;
  font-size: 1.75rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}
.catalog-title .badge {
  font-size: 0.85rem;
  background: var(--gray-light);
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  color: var(--gray-text);
  font-weight: 500;
}
.catalog-search-wrapper {
  position: relative;
  flex-grow: 1;
  max-width: 400px;
}
.catalog-search-wrapper .search-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  color: var(--gray-mid);
}
.catalog-search-input {
  width: 100%;
  padding: 0.8rem 1rem 0.8rem 2.8rem;
  border: 1px solid var(--gray-mid);
  border-radius: 30px;
  font-family: inherit;
  font-size: 0.95rem;
  transition: var(--transition);
}
.catalog-search-input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(187, 255, 0, 0.2);
}
.ecommerce-grid {
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}
.ecommerce-card .product-img {
  background: transparent;
  padding: 0;
  aspect-ratio: auto;
  min-height: 200px;
}
.ecommerce-card .product-img img {
  object-fit: contain;
  max-height: 300px;
  mix-blend-mode: normal;
  border-radius: 4px;
}
.catalog-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 4rem 2rem;
  background: var(--white);
  border-radius: var(--radius-md);
  border: 1px dashed var(--gray-mid);
}
.catalog-empty svg {
  width: 48px;
  height: 48px;
  color: var(--gray-mid);
  margin-bottom: 1rem;
}
.catalog-empty h3 {
  margin-bottom: 0.5rem;
}

@media (max-width: 992px) {
  .catalog-layout {
    grid-template-columns: 1fr;
  }
  .mobile-filter-btn {
    display: flex;
  }
  .catalog-sidebar {
    display: none;
    position: fixed;
    top: 80px;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 100;
    border-radius: 0;
    margin: 0;
  }
  .catalog-sidebar.open {
    display: block;
  }
  .catalog-top-bar {
    flex-direction: column;
    align-items: stretch;
  }
  .catalog-search-wrapper {
    max-width: 100%;
  }
}


/* ── LightBox Modal ── */
.lightbox-modal {
  display: none;
  position: fixed;
  z-index: 9999;
  padding-top: 50px;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.9);
}
.lightbox-modal.show {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.lightbox-close {
  position: absolute;
  top: 15px;
  right: 35px;
  color: #f1f1f1;
  font-size: 40px;
  font-weight: bold;
  transition: 0.3s;
  cursor: pointer;
  z-index: 10000;
}
.lightbox-close:hover,
.lightbox-close:focus {
  color: #bbb;
  text-decoration: none;
  cursor: pointer;
}
.lightbox-content {
  margin: auto;
  display: block;
  max-width: 90%;
  max-height: 80vh;
  object-fit: contain;
  animation-name: zoom;
  animation-duration: 0.6s;
}
#lightbox-caption {
  margin: auto;
  display: block;
  width: 80%;
  max-width: 700px;
  text-align: center;
  color: #ccc;
  padding: 10px 0;
  height: 150px;
}
@keyframes zoom {
  from {transform:scale(0)} 
  to {transform:scale(1)}
}
.product-img {
  cursor: pointer;
}


/* ── Improved E-commerce Cards ── */
.ecommerce-card {
  cursor: pointer;
  background: #fff;
  border: 1px solid #eee;
  padding: 0; /* No padding for full image effect */
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.ecommerce-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 30px rgba(0,0,0,0.1);
  border-color: var(--accent);
}

.ecommerce-card .product-img {
  position: relative;
  width: 100%;
  height: 250px;
  background: #fdfdfd;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
}

.ecommerce-card .product-img img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transition: transform 0.5s ease;
}

.ecommerce-card:hover .product-img img {
  transform: scale(1.05);
}

.product-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  backdrop-filter: blur(2px);
}

.ecommerce-card:hover .product-overlay {
  opacity: 1;
}

.view-btn {
  background: var(--accent);
  color: var(--primary);
  border: none;
  padding: 10px 20px;
  border-radius: 30px;
  font-weight: 700;
  font-size: 0.9rem;
  transform: translateY(20px);
  transition: all 0.4s ease;
}

.ecommerce-card:hover .view-btn {
  transform: translateY(0);
}

.ecommerce-card .product-info {
  padding: 15px;
  border-top: 1px solid #f5f5f5;
  background: #fff;
}

.product-category {
  font-size: 0.75rem;
  color: var(--accent-dark);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 700;
  margin-bottom: 5px;
}

.product-name {
  font-size: 1rem;
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 10px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.4;
  height: 2.8em;
}

.product-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.view-link {
  font-size: 0.8rem;
  color: var(--gray-text);
  font-style: italic;
}

/* Sidebar styles */
.brand-list li span:first-child {
  flex-grow: 1;
}

.brand-list li:after {
  content: '→';
  opacity: 0;
  transform: translateX(-10px);
  transition: all 0.3s ease;
}

.brand-list li:hover:after {
  opacity: 1;
  transform: translateX(0);
}


/* ── Sidebar Brand Links ── */
.brand-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-item-info {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-grow: 1;
}

.download-link {
  color: var(--gray-mid);
  padding: 5px;
  border-radius: 4px;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
}

.download-link:hover {
  color: var(--primary);
  background: rgba(0,0,0,0.05);
}

.download-link svg {
  width: 16px;
  height: 16px;
}

.brand-list li.active .download-link {
  color: var(--primary);
}

/* Brands CTA Banner */
.brands-cta-grid {
  margin-top: 3rem;
  display: flex;
  justify-content: center;
}

.brands-cta-card {
  background: var(--bg-card);
  padding: 4rem 2rem;
  border-radius: 20px;
  text-align: center;
  max-width: 800px;
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 20px 40px rgba(0,0,0,0.3);
  position: relative;
  overflow: hidden;
}

.brands-cta-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--primary-light));
}

.brands-cta-icon {
  width: 80px;
  height: 80px;
  background: rgba(255, 71, 26, 0.1);
  color: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 2rem;
}

.brands-cta-icon svg {
  width: 40px;
  height: 40px;
}

.brands-cta-card h3 {
  font-size: 2.2rem;
  margin-bottom: 1rem;
  color: #fff;
}

.brands-cta-card p {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.brands-cta-card .btn {
  padding: 1.2rem 3rem;
  font-size: 1.1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

@media (max-width: 768px) {
  .brands-cta-card {
    padding: 3rem 1.5rem;
  }
  .brands-cta-card h3 {
    font-size: 1.8rem;
  }
}
