/* =========================================================
   GRUPO GESE — Design System
   Telecomunicaciones Empresariales | Monterrey, México
   ========================================================= */

/* ── Custom Properties ── */
:root {
  /* Colores del logo (azul marino) */
  --primary:       #192B4A;
  --primary-light: #1E3356;
  --primary-glow:  rgba(25,43,74,0.25);

  /* Acento: color de fondo del usuario usado como tono de contraste en secciones oscuras */
  --secondary:     #7F8DA0;
  --accent:        #192B4A;
  --accent-dark:   #0F1E34;

  /* Fondo del sitio */
  --bg:            #7F8DA0;

  /* Capas oscuras (todas basadas en el azul marino del logo) */
  --dark:          #0F1E34;
  --dark-2:        #192B4A;
  --dark-3:        #1E3356;
  --surface:       rgba(25,43,74,0.45);
  --surface-2:     rgba(25,43,74,0.65);
  --surface-glass: rgba(15,30,52,0.85);

  /* Texto */
  --text:          #FFFFFF;
  --text-muted:    #BCC8D8;
  --text-faint:    rgba(255,255,255,0.35);

  /* Bordes */
  --border:        rgba(255,255,255,0.09);
  --border-bright: rgba(255,255,255,0.18);

  /* Utilidad */
  --success: #10B981;
  --warning: #F59E0B;
  --error:   #EF4444;

  --font-head: 'Poppins', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;

  --ease-out:    cubic-bezier(0,0,0.2,1);
  --ease-spring: cubic-bezier(0.34,1.56,0.64,1);

  --nav-h:     72px;
  --radius:    12px;
  --radius-lg: 20px;
  --shadow:    0 4px 24px rgba(0,0,0,0.35);
  --shadow-lg: 0 12px 48px rgba(0,0,0,0.55);
  --glow-primary: 0 0 40px rgba(25,43,74,0.3);
  --accent-vivid:  #3B74C4;
  --accent-vivid-2: #8BBDE8;
  --glow-vivid:   0 4px 24px rgba(59,116,196,0.35);
}

/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-body);
  background: var(--dark);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
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; }

/* ── Accessibility ── */
:focus-visible { outline: 2px solid var(--secondary); outline-offset: 3px; border-radius: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ── Typography ── */
h1,h2,h3,h4,h5,h6 { font-family: var(--font-head); font-weight: 700; line-height: 1.2; }
h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.75rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); }
p  { line-height: 1.75; color: var(--text-muted); }

.gradient-text {
  background: linear-gradient(120deg, #3B74C4 0%, #5E97DC 45%, #8BBDE8 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ── Layout ── */
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section    { padding: 100px 0; }
.section-sm { padding: 60px 0; }

.section-label {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--secondary);
  margin-bottom: 16px;
}
.section-label::before {
  content: ''; display: block; width: 24px; height: 2px;
  background: linear-gradient(90deg, var(--accent-vivid), var(--accent-vivid-2));
  border-radius: 2px;
}

.section-title { margin-bottom: 16px; }
.section-desc  { max-width: 580px; font-size: 1.05rem; margin-bottom: 56px; }

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 32px; border-radius: 8px;
  font-family: var(--font-head); font-size: 0.95rem; font-weight: 600;
  transition: transform 0.15s var(--ease-out), box-shadow 0.15s var(--ease-out), background 0.2s;
  cursor: pointer;
}
.btn:hover  { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: linear-gradient(135deg, #1E3D73 0%, #192B4A 100%);
  color: #fff;
  border: 1px solid rgba(91,151,220,0.22);
  box-shadow: 0 4px 22px rgba(25,43,74,0.55), inset 0 1px 0 rgba(255,255,255,0.07);
}
.btn-primary:hover {
  background: linear-gradient(135deg, #243F78 0%, #1E3356 100%);
  border-color: rgba(91,151,220,0.38);
  box-shadow: 0 8px 36px rgba(25,43,74,0.7), inset 0 1px 0 rgba(255,255,255,0.1);
}

.btn-accent {
  background: var(--dark);
  color: #fff;
  box-shadow: 0 4px 20px rgba(15,30,52,0.4);
}
.btn-accent:hover { background: var(--primary); box-shadow: 0 8px 32px rgba(25,43,74,0.5); }

.btn-outline {
  border: 1.5px solid var(--border-bright);
  color: var(--text);
  background: transparent;
}
.btn-outline:hover {
  border-color: var(--secondary);
  background: rgba(127,141,160,0.12);
  color: var(--secondary);
}

.btn-sm { padding: 10px 22px; font-size: 0.875rem; }
.btn-lg { padding: 18px 42px; font-size: 1.05rem; }

/* ── Cards ── */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: transform 0.3s var(--ease-out),
              box-shadow 0.3s var(--ease-out),
              border-color 0.3s;
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--border-bright);
}

.card-glass {
  background: var(--surface-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-bright);
  border-radius: var(--radius-lg);
}

/* ── Nav ── */
#navbar {
  position: fixed; top: 0; left: 0; right: 0;
  height: var(--nav-h); z-index: 1000;
  background: #FFFFFF;
  box-shadow: 0 1px 0 rgba(25,43,74,0.08), 0 2px 12px rgba(25,43,74,0.05);
  transition: box-shadow 0.4s;
}
#navbar.scrolled {
  box-shadow: 0 2px 28px rgba(25,43,74,0.13);
}
.nav-inner {
  height: 100%; display: flex; align-items: center;
  justify-content: space-between; gap: 32px;
}
.nav-logo {
  display: flex; align-items: center; gap: 0;
  font-family: var(--font-head); font-size: 1.3rem; font-weight: 700;
}
.nav-logo-img {
  height: 44px; width: auto; max-width: 180px;
  object-fit: contain; display: block;
}
.nav-logo-mark {
  width: 40px; height: 40px;
  background: var(--primary);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem; font-weight: 800; color: #fff;
}
.nav-links {
  display: flex; align-items: center; gap: 4px; flex: 1; justify-content: center;
}
.nav-link {
  padding: 8px 14px; border-radius: 8px;
  font-size: 0.9rem; font-weight: 500; color: #3A4A5C;
  transition: color 0.2s, background 0.2s;
  cursor: pointer;
}
.nav-link:hover, .nav-link.active { color: var(--primary); background: rgba(25,43,74,0.06); }
.nav-link.active { color: var(--primary); font-weight: 600; }
.nav-actions { display: flex; align-items: center; gap: 12px; }
.nav-actions .btn-outline {
  color: var(--primary);
  border-color: rgba(25,43,74,0.22);
}
.nav-actions .btn-outline:hover {
  background: rgba(25,43,74,0.06);
  border-color: var(--primary);
  color: var(--primary);
}

/* Mobile hamburger */
.hamburger {
  display: none; flex-direction: column; justify-content: center;
  width: 44px; height: 44px; gap: 5px; padding: 8px;
  border-radius: 8px; transition: background 0.2s;
  cursor: pointer;
}
.hamburger:hover { background: rgba(25,43,74,0.06); }
.hamburger-line {
  width: 100%; height: 2px; background: var(--primary);
  border-radius: 2px; transition: transform 0.3s var(--ease-spring), opacity 0.2s;
  transform-origin: center;
}
.hamburger.open .hamburger-line:nth-child(1) { transform: rotate(45deg) translate(5px,5px); }
.hamburger.open .hamburger-line:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open .hamburger-line:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px); }

/* Mobile menu */
.mobile-menu {
  display: none; position: fixed; inset: 0; top: var(--nav-h);
  background: rgba(15,30,52,0.97); backdrop-filter: blur(20px);
  z-index: 999; flex-direction: column;
  padding: 40px 24px; gap: 8px;
}
.mobile-menu.open { display: flex; }
.mobile-link {
  display: block; padding: 16px 20px; border-radius: 10px;
  font-size: 1.1rem; font-weight: 600; color: var(--text-muted);
  transition: color 0.2s, background 0.2s;
}
.mobile-link:hover { color: var(--text); background: rgba(255,255,255,0.07); }

/* ── Hero — Banner image ── */
#hero {
  min-height: 100vh; position: relative; overflow: hidden;
  display: flex; align-items: center;
  background: url('../images/bannergese.jpg') center/cover no-repeat;
}
#hero::before {
  content: ''; position: absolute; inset: 0;
  background: rgba(15,30,52,0.72);
  z-index: 0;
}
.hero-grid {
  position: absolute; inset: 0; z-index: 1;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 80% at 60% 40%, black 40%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 80% 80% at 60% 40%, black 40%, transparent 100%);
}
.hero-content {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: 1fr 1fr;
  align-items: center; gap: 64px;
  padding: 120px 0 80px;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(127,141,160,0.15); border: 1px solid rgba(127,141,160,0.3);
  color: var(--secondary); padding: 6px 16px; border-radius: 100px;
  font-size: 0.8rem; font-weight: 600; letter-spacing: 0.06em;
  margin-bottom: 24px;
}
.hero-badge-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--secondary);
  animation: pulse-dot 2s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%,100% { opacity:1; transform:scale(1); }
  50% { opacity:0.5; transform:scale(1.4); }
}
.hero-title { margin-bottom: 24px; }
.hero-title span { display: block; }
.hero-desc { font-size: 1.1rem; max-width: 520px; margin-bottom: 40px; line-height: 1.8; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }
.hero-trust {
  display: flex; align-items: center; gap: 12px;
  margin-top: 48px; padding-top: 32px;
  border-top: 1px solid var(--border);
}
.hero-trust-text { font-size: 0.8rem; color: var(--text-faint); }
.hero-trust-logos { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.hero-trust-logo {
  background: var(--surface-2); border: 1px solid var(--border);
  border-radius: 8px; padding: 6px 14px;
  font-size: 0.78rem; font-weight: 700; color: var(--text-muted);
  white-space: nowrap;
}

/* Hero visual side — Logo animado interactivo */
.hero-visual { position: relative; display: flex; align-items: center; justify-content: center; }

.hero-logo-showcase {
  position: relative; width: 420px; height: 420px;
  display: flex; align-items: center; justify-content: center;
}
.logo-ring {
  position: absolute; border-radius: 50%;
  border: 1px solid rgba(127,141,160,0.22);
  animation: logo-ring-pulse 4s ease-in-out infinite;
}
.logo-ring-1 { width: 190px; height: 190px; }
.logo-ring-2 { width: 290px; height: 290px; animation-delay: 0.7s; border-color: rgba(127,141,160,0.13); }
.logo-ring-3 { width: 390px; height: 390px; animation-delay: 1.4s; border-color: rgba(127,141,160,0.07); }
@keyframes logo-ring-pulse {
  0%, 100% { transform: scale(1); opacity: 0.55; }
  50%       { transform: scale(1.04); opacity: 1; }
}
.logo-orbit {
  position: absolute; border-radius: 50%;
  animation: orbit-spin 14s linear infinite;
}
.logo-orbit-1 { width: 240px; height: 240px; }
.logo-orbit-2 { width: 330px; height: 330px; animation-duration: 20s; animation-direction: reverse; }
.logo-orbit-dot {
  position: absolute; top: -5px; left: 50%; transform: translateX(-50%);
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--secondary);
  box-shadow: 0 0 12px var(--secondary), 0 0 28px rgba(127,141,160,0.5);
}
.logo-orbit-dot-2 {
  background: #FFFFFF; opacity: 0.7;
  box-shadow: 0 0 8px rgba(255,255,255,0.6);
}
@keyframes orbit-spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}
.hero-logo-big {
  width: 210px; position: relative; z-index: 2;
  filter: brightness(0) invert(1) drop-shadow(0 0 22px rgba(127,141,160,0.75));
  animation: logo-float 7s ease-in-out infinite;
  transition: filter 0.45s var(--ease-out);
  cursor: pointer;
  -webkit-user-select: none; user-select: none;
}
.hero-logo-big:hover {
  filter: brightness(0) invert(1)
          drop-shadow(0 0 40px rgba(127,141,160,1))
          drop-shadow(0 0 80px rgba(127,141,160,0.5));
}
@keyframes logo-float {
  0%, 100% { transform: translateY(0px) scale(1); }
  50%       { transform: translateY(-18px) scale(1.02); }
}

/* (keep for reference, replaced in HTML) */
.hero-card-main {
  background: var(--surface-glass); backdrop-filter: blur(20px);
  border: 1px solid var(--border-bright);
  border-radius: var(--radius-lg); padding: 28px; position: relative;
  box-shadow: var(--glow-primary), var(--shadow-lg);
}
.hero-stats-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
}
.hero-stat-card {
  background: var(--dark-3); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 20px 24px; text-align: center;
}
/* Sin gradiente — número en blanco sólido */
.hero-stat-num {
  font-family: var(--font-head); font-size: 2rem; font-weight: 800;
  color: var(--text); line-height: 1;
}
.hero-stat-label { font-size: 0.8rem; color: var(--text-muted); margin-top: 6px; }

.hero-float-card {
  position: absolute;
  background: var(--surface-glass); backdrop-filter: blur(16px);
  border: 1px solid var(--border-bright); border-radius: var(--radius);
  padding: 14px 18px; display: flex; align-items: center; gap: 12px;
  box-shadow: var(--shadow);
}
.hero-float-1 { top: -24px; right: -24px; }
.hero-float-2 { bottom: -24px; left: -32px; }
.hero-float-icon {
  width: 36px; height: 36px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem; flex-shrink: 0;
}
.hero-float-label { font-size: 0.78rem; font-weight: 600; color: var(--text); }
.hero-float-sub   { font-size: 0.7rem; color: var(--text-muted); }

/* ── Sección Light (fondo blanco) ── */
.section-light {
  background: #FFFFFF;
}
.section-light .section-label {
  color: var(--primary);
}
.section-light .section-label::before {
  background: var(--primary);
}
.section-light h2 {
  color: var(--primary);
}
.section-light .gradient-text {
  background: none;
  -webkit-text-fill-color: var(--secondary);
  color: var(--secondary);
}
.section-light > .container > p,
.section-light .section-desc {
  color: #3A4A5C;
}

/* ── Services — Tarjetas con foto, full bleed sin espacio blanco ── */
#servicios {
  background: transparent;
  padding: 0;
}
.srv-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  height: 600px; overflow: hidden;
  position: relative;
}
/* Título superpuesto sobre las fotos */
.srv-label-overlay {
  position: absolute; top: 0; left: 0; right: 0; z-index: 20;
  text-align: center; padding: 44px 24px 0;
  background: linear-gradient(to bottom, rgba(8,16,36,0.72) 0%, transparent 100%);
  pointer-events: none;
}
.srv-label-overlay .section-label { color: var(--secondary); margin-bottom: 10px; }
.srv-label-overlay .section-label::before { background: var(--secondary); }
.srv-label-overlay h2 { color: #FFFFFF; font-size: clamp(1.4rem, 2.5vw, 2.2rem); margin-bottom: 0; }
.srv-label-overlay .gradient-text { background: none; -webkit-text-fill-color: var(--secondary); color: var(--secondary); }
.srv-card {
  position: relative; display: block; overflow: hidden; cursor: pointer;
  border-right: 1px solid rgba(255,255,255,0.08);
}
.srv-card:last-child { border-right: none; }
.srv-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  transition: transform 0.6s var(--ease-out);
}
.srv-card:hover .srv-bg { transform: scale(1.08); }
.srv-overlay {
  position: absolute; inset: 0;
  background: rgba(15,30,52,0.62);
  transition: background 0.4s;
}
.srv-card:hover .srv-overlay { background: rgba(15,30,52,0.40); }
.srv-content {
  position: relative; z-index: 2;
  padding: 32px 28px; height: 100%;
  display: flex; flex-direction: column; justify-content: flex-end;
}
.srv-number {
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--secondary);
  margin-bottom: 12px; opacity: 0.85;
}
.srv-title {
  font-family: var(--font-head); font-size: 1.55rem; font-weight: 800;
  color: #FFFFFF; margin-bottom: 10px; line-height: 1.15;
}
.srv-tags {
  font-size: 0.8rem; color: rgba(255,255,255,0.75);
  line-height: 1.6; margin-bottom: 24px;
}
.srv-btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--primary); color: #FFFFFF;
  padding: 11px 22px; border-radius: 7px;
  font-family: var(--font-head); font-size: 0.875rem; font-weight: 600;
  width: fit-content; border: 1.5px solid rgba(255,255,255,0.2);
  transition: background 0.2s, transform 0.25s var(--ease-out), box-shadow 0.2s;
}
.srv-btn svg { width: 14px; height: 14px; transition: transform 0.2s; }
.srv-card:hover .srv-btn {
  background: var(--secondary); color: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}
.srv-card:hover .srv-btn svg { transform: translateX(4px); }

/* ── Stats ── */
#estadisticas {
  background: url('https://images.unsplash.com/photo-1544197150-b99a580bb7a8?auto=format&fit=crop&w=1600&q=80') center/cover scroll;
  position: relative; overflow: hidden;
}
#estadisticas::before {
  content: ''; position: absolute; inset: 0;
  background: rgba(8,16,38,0.77);
}
.stats-grid {
  display: grid; grid-template-columns: repeat(4,1fr); gap: 40px;
  position: relative; z-index: 1;
}
.stat-item { text-align: center; }
.stat-number {
  font-family: var(--font-head); font-size: clamp(2.5rem, 5vw, 3.8rem);
  font-weight: 800; line-height: 1;
  background: linear-gradient(120deg, #FFFFFF 0%, #C0D8F0 55%, #8BBDE8 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.stat-suffix { font-size: 0.75em; }
.stat-label { font-size: 0.95rem; color: var(--text-muted); margin-top: 8px; font-weight: 500; }

/* ── Why Us — misma imagen que Stats en parallax para unidad visual ── */
#por-que {
  background: url('../images/REDES-YMANT.webp') center/cover scroll;
  position: relative;
}
#por-que::before {
  content: ''; position: absolute; inset: 0;
  background: rgba(8,15,36,0.93);
}
#por-que > .container { position: relative; z-index: 1; }
.why-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center;
}
.why-feature {
  display: flex; gap: 20px; margin-bottom: 36px;
}
.why-feature:last-child { margin-bottom: 0; }
/* Sin gradiente — fondo sólido marino */
.why-feature-icon {
  width: 48px; height: 48px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  background: var(--primary);
}
.why-feature-icon svg { width: 22px; height: 22px; color: #fff; }
.why-feature-title { font-size: 1rem; font-weight: 700; margin-bottom: 6px; }
.why-feature-desc  { font-size: 0.875rem; color: var(--text-muted); }

.why-visual-box {
  background: rgba(15,30,52,0.88);
  border: 1px solid rgba(127,141,160,0.22);
  border-radius: var(--radius-lg); padding: 36px;
  box-shadow: 0 12px 48px rgba(0,0,0,0.55), 0 0 0 1px rgba(255,255,255,0.04) inset;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  position: relative;
}
.why-visual-box::before {
  content: ''; position: absolute; top: -1px; left: 40px; right: 40px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--secondary), transparent);
}
.cert-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 24px; }
.cert-item {
  background: rgba(30,51,86,0.75); border: 1px solid rgba(127,141,160,0.18);
  border-radius: var(--radius); padding: 14px 16px;
  display: flex; align-items: center; gap: 12px;
  transition: border-color 0.2s, background 0.2s;
}
.cert-item:hover {
  background: rgba(30,51,86,0.95);
  border-color: rgba(127,141,160,0.38);
}
.cert-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.cert-name { font-size: 0.8rem; font-weight: 700; }

/* ── Partners Carousel — fondo blanco, logos a color ── */
#socios { background: #FFFFFF; overflow: hidden; padding: 80px 0; }
#socios .section-label { color: var(--primary); }
#socios .section-label::before { background: var(--primary); }
#socios h2 { color: var(--primary); }
#socios .gradient-text { background: none; -webkit-text-fill-color: var(--secondary); color: var(--secondary); }
#socios p { color: #3A4A5C; }
.partners-track-wrapper { position: relative; overflow: hidden; }
.partners-track-wrapper::before,
.partners-track-wrapper::after {
  content: ''; position: absolute; top: 0; bottom: 0; width: 120px; z-index: 2;
}
.partners-track-wrapper::before { left: 0; background: linear-gradient(90deg, #FFFFFF, transparent); }
.partners-track-wrapper::after  { right: 0; background: linear-gradient(-90deg, #FFFFFF, transparent); }

.partners-track {
  display: flex; gap: 24px; width: max-content;
  animation: partners-scroll 30s linear infinite;
}
.partners-track:hover { animation-play-state: paused; }
@keyframes partners-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.partner-logo {
  background: #F5F7FA; border: 1px solid rgba(25,43,74,0.08);
  border-radius: var(--radius); padding: 14px 28px;
  display: flex; align-items: center; justify-content: center;
  min-width: 140px; white-space: nowrap;
  transition: border-color 0.3s, box-shadow 0.3s, background 0.3s, transform 0.3s;
  cursor: default;
}
.partner-logo img {
  height: 36px; width: auto; max-width: 120px;
  object-fit: contain; display: block;
  filter: none;
  transition: transform 0.3s;
}
.partner-logo:hover {
  border-color: rgba(25,43,74,0.2);
  background: #FFFFFF;
  box-shadow: 0 4px 20px rgba(25,43,74,0.1);
  transform: translateY(-3px);
}
.partner-logo:hover img { transform: scale(1.05); }

/* ── CTA Band ── */
#cta-band {
  background: url('../images/REDES-YMANT.webp') center/cover scroll;
  padding: 80px 0;
  position: relative; overflow: hidden;
}
#cta-band::before {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 60% 100% at 15% 50%, rgba(25,55,120,0.28) 0%, transparent 58%),
    rgba(8,16,38,0.88);
  z-index: 0;
}
#cta-band > .container { position: relative; z-index: 1; }
.cta-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 40px;
  flex-wrap: wrap; position: relative; z-index: 1;
}
.cta-text h2 { margin-bottom: 12px; }
.cta-actions { display: flex; gap: 16px; flex-wrap: wrap; align-items: center; }

/* ── Contact Preview ── */
#contacto-preview { background: var(--dark-2); }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.contact-info-item {
  display: flex; gap: 16px; margin-bottom: 28px;
  align-items: flex-start;
}
.contact-info-icon {
  width: 44px; height: 44px; border-radius: 10px;
  background: rgba(127,141,160,0.15); border: 1px solid rgba(127,141,160,0.25);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.contact-info-icon svg { width: 20px; height: 20px; color: var(--secondary); }
.contact-info-label { font-size: 0.78rem; font-weight: 600; color: var(--text-faint); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 4px; }
.contact-info-value { font-size: 0.95rem; color: var(--text); font-weight: 500; }
.contact-info-value a:hover { color: var(--secondary); }

/* ── Forms ── */
.form-group { margin-bottom: 20px; }
.form-label {
  display: block; font-size: 0.82rem; font-weight: 600;
  color: var(--text-muted); margin-bottom: 8px;
}
.form-control {
  width: 100%; background: var(--surface);
  border: 1px solid var(--border); border-radius: 8px;
  color: var(--text); font-family: var(--font-body); font-size: 0.95rem;
  padding: 12px 16px;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}
.form-control:focus { border-color: var(--secondary); box-shadow: 0 0 0 3px rgba(127,141,160,0.2); }
.form-control::placeholder { color: var(--text-faint); }
textarea.form-control { resize: vertical; min-height: 120px; }
select.form-control { appearance: none; cursor: pointer; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-error { font-size: 0.78rem; color: var(--error); margin-top: 6px; display: none; }
.form-control.is-invalid { border-color: var(--error); }
.form-control.is-invalid + .form-error { display: block; }
.form-control.is-valid { border-color: var(--success); }

.form-submit-wrap { position: relative; }
/* Sin gradiente — botón sólido */
.submit-btn {
  width: 100%; padding: 15px; border-radius: 8px; font-size: 1rem; font-weight: 600;
  font-family: var(--font-head); cursor: pointer;
  background: var(--primary);
  color: #fff; border: none;
  transition: transform 0.15s, box-shadow 0.15s, background 0.2s;
  box-shadow: 0 4px 20px var(--primary-glow);
}
.submit-btn:hover  { transform: translateY(-2px); background: var(--primary-light); box-shadow: 0 8px 32px rgba(25,43,74,0.45); }
.submit-btn:active { transform: translateY(0); }
.submit-btn:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

.form-success {
  display: none; background: rgba(16,185,129,0.1);
  border: 1px solid rgba(16,185,129,0.3); border-radius: var(--radius);
  padding: 16px 20px; color: var(--success); font-weight: 500;
  margin-top: 16px;
}

/* ── CTA Light Button (alta visibilidad en fondos oscuros) ── */
.btn-cta-light {
  background: #FFFFFF;
  color: var(--primary);
  box-shadow: 0 4px 24px rgba(255,255,255,0.2);
  font-weight: 700;
}
.btn-cta-light:hover {
  background: rgba(255,255,255,0.92);
  box-shadow: 0 8px 36px rgba(255,255,255,0.32);
  color: var(--primary);
}

/* ── Trust Bar ── */
.trust-bar {
  background: #FFFFFF;
  border-bottom: 1px solid rgba(25,43,74,0.08);
  padding: 14px 0;
}
.trust-bar-inner {
  display: flex; align-items: center; justify-content: center;
  flex-wrap: wrap; gap: 8px 24px;
}
.trust-bar-item {
  display: flex; align-items: center; gap: 8px;
  font-size: 0.82rem; font-weight: 600; color: var(--primary);
}
.trust-bar-item svg { color: var(--secondary); flex-shrink: 0; }
.trust-bar-sep {
  width: 1px; height: 20px; background: rgba(25,43,74,0.12);
  flex-shrink: 0;
}
@media (max-width: 768px) {
  .trust-bar-sep { display: none; }
  .trust-bar-inner { gap: 8px 16px; }
  .trust-bar-item { font-size: 0.78rem; }
}

/* ── FAQ Accordion ── */
.faq-grid {
  max-width: 860px; margin: 0 auto;
  display: flex; flex-direction: column; gap: 12px;
}
.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.3s;
}
.faq-item.open { border-color: var(--secondary); }
.faq-question {
  width: 100%; display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding: 20px 24px;
  font-family: var(--font-head); font-size: 0.95rem; font-weight: 600;
  color: var(--text); text-align: left;
  background: none; border: none; cursor: pointer;
  transition: color 0.2s;
}
.faq-question:hover { color: var(--secondary); }
.faq-item.open .faq-question { color: var(--secondary); }
.faq-chevron {
  width: 20px; height: 20px; flex-shrink: 0;
  transition: transform 0.35s var(--ease-out);
}
.faq-item.open .faq-chevron { transform: rotate(180deg); }
.faq-answer {
  max-height: 0; opacity: 0;
  overflow: hidden;
  transition: max-height 0.4s var(--ease-out), opacity 0.3s;
}
.faq-answer p {
  padding: 0 24px 22px;
  font-size: 0.9rem; line-height: 1.8;
  color: var(--text-muted);
}
.faq-answer a { color: var(--secondary); font-weight: 600; }
.faq-answer strong { color: var(--text); font-weight: 600; }

/* ── Sticky Mobile CTA ── */
.sticky-cta-mobile {
  display: none;
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 200;
  background: rgba(15,30,52,0.97); backdrop-filter: blur(12px);
  border-top: 1px solid var(--border-bright);
  padding: 12px 16px;
  flex-direction: row; gap: 10px;
}
.sticky-cta-btn {
  flex: 1; display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 16px; border-radius: 8px;
  font-family: var(--font-head); font-size: 0.9rem; font-weight: 700;
  cursor: pointer; text-align: center; transition: opacity 0.2s;
}
.sticky-cta-btn:hover { opacity: 0.88; }
.sticky-cta-call {
  background: rgba(127,141,160,0.18);
  border: 1.5px solid rgba(127,141,160,0.35);
  color: var(--text);
  flex: 0 0 auto; padding: 13px 18px;
}
.sticky-cta-quote {
  background: var(--primary);
  color: #FFFFFF;
}
@media (max-width: 768px) {
  .sticky-cta-mobile { display: flex; }
  .wa-float { bottom: 76px; }
}

/* ── WhatsApp Float ── */
.wa-float {
  position: fixed; bottom: 28px; right: 28px; z-index: 100;
  width: 58px; height: 58px; border-radius: 50%;
  background: #25D366; color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 24px rgba(37,211,102,0.45);
  transition: transform 0.3s var(--ease-spring), box-shadow 0.3s;
  cursor: pointer;
}
.wa-float:hover {
  transform: scale(1.12);
  box-shadow: 0 10px 32px rgba(37,211,102,0.6);
}
.wa-float svg { width: 30px; height: 30px; }
.wa-pulse {
  position: absolute; inset: -4px; border-radius: 50%;
  background: rgba(37,211,102,0.35);
  animation: wa-pulse 2s ease-out infinite;
}
@keyframes wa-pulse {
  0%  { transform: scale(1); opacity: 0.7; }
  100%{ transform: scale(1.6); opacity: 0; }
}

/* ── Footer ── */
footer {
  background: var(--dark); border-top: 1px solid var(--border);
  padding: 80px 0 0;
}
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px;
  padding-bottom: 60px; border-bottom: 1px solid var(--border);
}
.footer-brand p { font-size: 0.9rem; margin-top: 16px; max-width: 300px; }
.footer-col h4 { font-size: 0.85rem; font-weight: 700; color: var(--text); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 20px; }
.footer-link {
  display: block; font-size: 0.875rem; color: var(--text-muted);
  padding: 5px 0; transition: color 0.2s; cursor: pointer;
}
.footer-link:hover { color: var(--secondary); }
.footer-bottom {
  padding: 24px 0; display: flex; justify-content: space-between;
  align-items: center; flex-wrap: wrap; gap: 16px;
}
.footer-copy { font-size: 0.82rem; color: var(--text-faint); }
.footer-social { display: flex; gap: 12px; }
.social-btn {
  width: 36px; height: 36px; border-radius: 8px;
  background: var(--surface); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted); transition: color 0.2s, background 0.2s, border-color 0.2s;
  cursor: pointer;
}
.social-btn:hover { color: var(--text); background: var(--surface-2); border-color: var(--secondary); }
.social-btn svg { width: 16px; height: 16px; }

/* ── Page Header ── */
.page-header {
  padding: 160px 0 80px; text-align: center; position: relative;
  background: var(--dark-2);
}
.page-header .container { position: relative; z-index: 1; }
.page-header h1 { margin-bottom: 16px; }
.page-header p  { max-width: 560px; margin: 0 auto; font-size: 1.1rem; }
.breadcrumb {
  display: flex; align-items: center; gap: 8px; justify-content: center;
  font-size: 0.82rem; color: var(--text-faint); margin-bottom: 24px;
}
.breadcrumb a { color: var(--text-faint); transition: color 0.2s; }
.breadcrumb a:hover { color: var(--secondary); }
.breadcrumb-sep { color: var(--text-faint); }

/* ── Soluciones Detail ── */
.solution-detail {
  display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center;
  padding: 80px 0; border-bottom: 1px solid var(--border);
}
.solution-detail:last-child { border-bottom: none; }
.solution-detail.reverse { }
.solution-detail.reverse .sol-col-right { order: -1; }

.solution-feature-list { margin: 20px 0 24px; }
.solution-feature-list li {
  display: flex; align-items: center; gap: 12px;
  font-size: 0.9rem; color: var(--text-muted);
  padding: 9px 0; border-bottom: 1px solid var(--border);
  transition: color 0.2s;
}
.solution-feature-list li:hover { color: var(--text); }
.solution-feature-list li:last-child { border-bottom: none; }
.solution-feature-list li::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%;
  background: var(--secondary); flex-shrink: 0;
}

/* Número decorativo grande */
.sol-num {
  font-family: var(--font-head); font-size: 7rem; font-weight: 900; line-height: 1;
  color: rgba(127,141,160,0.07); margin-bottom: -20px; letter-spacing: -4px;
  user-select: none; pointer-events: none;
}

/* Frame de foto real */
.sol-img-frame {
  position: relative; border-radius: var(--radius-lg); overflow: visible;
  box-shadow: 0 32px 80px rgba(0,0,0,0.5);
}
.sol-img-frame-inner {
  border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 4/3;
}
.sol-img-frame-inner img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform 0.7s var(--ease-out);
}
.sol-img-frame:hover .sol-img-frame-inner img { transform: scale(1.06); }
.sol-img-shine {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.07) 0%, transparent 55%);
  pointer-events: none; border-radius: var(--radius-lg);
  transition: opacity 0.4s;
}
.sol-img-frame:hover .sol-img-shine { opacity: 0.4; }

/* Badge flotante sobre la foto */
.sol-float-badge {
  position: absolute; z-index: 10;
  background: rgba(12,22,46,0.88);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,0.13);
  border-radius: 12px; padding: 12px 16px;
  display: flex; align-items: center; gap: 12px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.45);
}
.sol-float-badge-bottom { bottom: -18px; right: 24px; }
.sol-float-badge-top    { top: -18px; left: 24px; }
.sol-badge-icon {
  width: 36px; height: 36px; border-radius: 8px; background: var(--primary);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.sol-badge-icon svg { width: 18px; height: 18px; color: #fff; }
.sol-badge-label { font-size: 0.8rem; font-weight: 700; color: var(--text); white-space: nowrap; }
.sol-badge-sub   { font-size: 0.7rem; color: var(--text-muted); white-space: nowrap; }

/* Brand pills */
.sol-brands { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 26px; }
.sol-brand {
  background: rgba(127,141,160,0.1); border: 1px solid rgba(127,141,160,0.2);
  color: var(--secondary); padding: 4px 12px; border-radius: 6px;
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.06em;
  text-transform: uppercase; transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.sol-brand:hover { background: rgba(127,141,160,0.2); color: #fff; border-color: rgba(127,141,160,0.4); }

/* Icon grande para cada servicio */
.sol-icon-wrap {
  width: 64px; height: 64px; border-radius: 16px;
  background: rgba(25,43,74,0.6); border: 1px solid var(--border-bright);
  display: flex; align-items: center; justify-content: center; margin-bottom: 20px;
}
.sol-icon-wrap svg { width: 32px; height: 32px; }

/* Page header con imagen de fondo */
.page-header.has-bg-img {
  background: url('../images/REDES-YMANT.webp') center/cover no-repeat scroll;
}
.page-header.has-bg-img::before {
  content: ''; position: absolute; inset: 0; background: rgba(6,14,34,0.89); z-index: 0;
}
.page-header.has-bg-img .container { position: relative; z-index: 1; }

/* Columnas — animadas via GSAP (sin auto-play CSS) */
.sol-col-left, .sol-col-right { opacity: 0; }

/* ── About ── */
.timeline { position: relative; padding-left: 32px; }
.timeline::before {
  content: ''; position: absolute; left: 8px; top: 8px; bottom: 0;
  width: 2px; background: var(--primary);
}
.timeline-item { position: relative; padding-bottom: 36px; }
.timeline-dot {
  position: absolute; left: -28px; top: 4px;
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--primary); border: 2px solid var(--dark);
  box-shadow: 0 0 0 4px rgba(25,43,74,0.3);
}
.timeline-year { font-size: 0.78rem; font-weight: 700; color: var(--secondary); margin-bottom: 4px; }
.timeline-title { font-size: 1rem; font-weight: 700; margin-bottom: 6px; }
.timeline-desc  { font-size: 0.875rem; color: var(--text-muted); }

.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.team-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 28px; text-align: center;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.team-card:hover { border-color: var(--secondary); box-shadow: 0 0 30px rgba(127,141,160,0.15); }
/* Sin gradiente — avatar sólido marino */
.team-avatar {
  width: 72px; height: 72px; border-radius: 50%;
  background: var(--primary);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px; font-size: 1.5rem; font-weight: 800;
  color: #fff; font-family: var(--font-head);
}
.team-name { font-size: 1rem; font-weight: 700; margin-bottom: 4px; }
.team-role { font-size: 0.82rem; color: var(--text-muted); }

/* ── Blog ── */
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.blog-card {
  display: block;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); overflow: hidden;
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s, border-color 0.3s;
  cursor: pointer;
}
.blog-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: var(--border-bright); }
.blog-thumb {
  height: 200px; background: var(--dark-3);
  display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden;
}
.blog-thumb img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.55s var(--ease-out);
}
.blog-card:hover .blog-thumb img { transform: scale(1.07); }
.blog-thumb-placeholder {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  color: var(--text-faint);
}
.blog-body { padding: 24px; }
.blog-cat {
  font-size: 0.72rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.1em; color: var(--secondary); margin-bottom: 10px;
}
.blog-title { font-size: 1rem; font-weight: 700; line-height: 1.4; margin-bottom: 10px; }
.blog-excerpt { font-size: 0.85rem; color: var(--text-muted); line-height: 1.7; margin-bottom: 16px; }
.blog-meta { display: flex; justify-content: space-between; align-items: center; font-size: 0.78rem; color: var(--text-faint); }
.blog-read-more { color: var(--secondary); font-weight: 600; }

/* ── Admin Blog ── */
.admin-layout { display: grid; grid-template-columns: 280px 1fr; min-height: 100vh; }
.admin-sidebar {
  background: var(--dark-2); border-right: 1px solid var(--border);
  padding: 32px 20px; position: sticky; top: 0; height: 100vh; overflow-y: auto;
}
.admin-logo { font-family: var(--font-head); font-weight: 700; font-size: 1rem; padding: 0 12px 24px; border-bottom: 1px solid var(--border); margin-bottom: 24px; }
.admin-nav-item {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 12px; border-radius: 8px; margin-bottom: 4px;
  font-size: 0.875rem; font-weight: 500; color: var(--text-muted);
  cursor: pointer; transition: color 0.2s, background 0.2s;
}
.admin-nav-item:hover, .admin-nav-item.active { color: var(--text); background: rgba(255,255,255,0.07); }
.admin-nav-item.active { color: var(--secondary); }
.admin-nav-item svg { width: 18px; height: 18px; }
.admin-content { padding: 40px; background: var(--dark); }
.admin-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 32px; }

/* Image upload zone */
.upload-zone {
  border: 2px dashed var(--border-bright); border-radius: var(--radius);
  padding: 40px; text-align: center; cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}
.upload-zone:hover, .upload-zone.dragover {
  border-color: var(--secondary); background: rgba(127,141,160,0.07);
}
.upload-zone input { display: none; }
.upload-preview { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 16px; }
.upload-thumb {
  width: 100px; height: 80px; border-radius: 8px; overflow: hidden;
  position: relative; border: 1px solid var(--border);
}
.upload-thumb img { width: 100%; height: 100%; object-fit: cover; }
.upload-remove {
  position: absolute; top: 4px; right: 4px; width: 20px; height: 20px;
  background: rgba(239,68,68,0.85); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.7rem; color: #fff; cursor: pointer;
}

/* ── Scroll Reveal Animations ── */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out); }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-left  { opacity: 0; transform: translateX(-40px); transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out); }
.reveal-left.visible  { opacity: 1; transform: translateX(0); }
.reveal-right { opacity: 0; transform: translateX(40px); transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out); }
.reveal-right.visible { opacity: 1; transform: translateX(0); }

.reveal-d1 { transition-delay: 80ms; }
.reveal-d2 { transition-delay: 160ms; }
.reveal-d3 { transition-delay: 260ms; }
.reveal-d4 { transition-delay: 360ms; }

/* ── Service cards: clip-path inicial para GSAP ── */
.srv-card { clip-path: inset(0 0 0 0); }

/* ── Tooltips ── */
[data-tooltip] { position: relative; cursor: pointer; }
[data-tooltip]::after {
  content: attr(data-tooltip);
  position: absolute; bottom: calc(100% + 8px); left: 50%; transform: translateX(-50%);
  background: var(--surface-2); border: 1px solid var(--border);
  padding: 6px 12px; border-radius: 6px; font-size: 0.78rem; white-space: nowrap;
  opacity: 0; pointer-events: none; transition: opacity 0.2s;
}
[data-tooltip]:hover::after { opacity: 1; }

/* ── Responsive ── */
@media (max-width: 1024px) {
  .srv-grid { grid-template-columns: repeat(2, 1fr); height: auto; }
  .srv-card { height: 340px; }
  .srv-label-overlay { padding: 28px 16px 0; }
  .srv-label-overlay h2 { font-size: 1.5rem; }
  .hero-logo-showcase { width: 300px; height: 300px; }
  .hero-logo-big { width: 160px; }
  .logo-ring-3 { width: 280px; height: 280px; }
  .logo-ring-2 { width: 210px; height: 210px; }
  .logo-ring-1 { width: 140px; height: 140px; }
  .logo-orbit-2 { width: 240px; height: 240px; }
  .logo-orbit-1 { width: 175px; height: 175px; }
  .stats-grid    { grid-template-columns: repeat(2, 1fr); gap: 32px; }
  .footer-grid   { grid-template-columns: 1fr 1fr; }
  .why-grid      { grid-template-columns: 1fr; }
  .hero-content  { grid-template-columns: 1fr; text-align: center; }
  .hero-visual   { display: none; }
  .hero-trust    { justify-content: center; flex-wrap: wrap; }
  .hero-actions  { justify-content: center; }
  .hero-desc     { margin: 0 auto 40px; }
  .solution-detail { grid-template-columns: 1fr; gap: 40px; }
  .solution-detail.reverse { direction: ltr; }
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid  { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  :root { --nav-h: 64px; }
  .section { padding: 72px 0; }
  .srv-grid { grid-template-columns: 1fr; height: auto; }
  .srv-card { height: 280px; border-right: none; border-bottom: 1px solid rgba(255,255,255,0.08); }
  .srv-label-overlay { padding: 20px 16px 0; }
  .srv-label-overlay h2 { font-size: 1.3rem; }
  .hero-logo-showcase { width: 240px; height: 240px; }
  .hero-logo-big { width: 130px; }
  .logo-ring-1, .logo-ring-2, .logo-ring-3 { display: none; }
  .logo-orbit-1, .logo-orbit-2 { display: none; }
  .stats-grid    { grid-template-columns: 1fr 1fr; gap: 24px; }
  .blog-grid     { grid-template-columns: 1fr; }
  .team-grid     { grid-template-columns: 1fr 1fr; }
  .form-row      { grid-template-columns: 1fr; }
  .footer-grid   { grid-template-columns: 1fr; gap: 32px; }
  .cta-inner     { flex-direction: column; text-align: center; }
  .nav-links, .nav-actions .btn { display: none; }
  .hamburger     { display: flex; }
  .admin-layout  { grid-template-columns: 1fr; }
  .admin-sidebar { display: none; }
  .footer-bottom { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .stats-grid{ grid-template-columns: 1fr 1fr; }
  .team-grid { grid-template-columns: 1fr; }
  .btn-lg    { padding: 15px 28px; font-size: 0.95rem; }
}

/* ── Section Depth & Texture ── */
/* Dot grid overlay for dark sections */
.section, .section-sm {
  position: relative;
}
.section::after, .section-sm::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(127,141,160,0.11) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
  z-index: 0;
}
.section > .container,
.section-sm > .container {
  position: relative;
  z-index: 1;
}
/* Ambient top glow on dark sections */
.section::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 380px;
  background: radial-gradient(ellipse 80% 100% at 50% 0%, rgba(127,141,160,0.12) 0%, transparent 100%);
  pointer-events: none;
  z-index: 0;
}
/* White sections and image-bg sections don't need the dot grid */
#socios::after, #socios::before,
#estadisticas::after,
#por-que::after,
#cta-band::after,
.section-light::after, .section-light::before,
.trust-bar::after, .trust-bar::before { display: none; }
#socios > .container, .section-light > .container { position: relative; z-index: 1; }

/* Hero gradient depth strip at bottom (connects hero to first section) */
#hero::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0; height: 100px;
  background: linear-gradient(to top, var(--dark) 0%, transparent 100%);
  z-index: 1;
  pointer-events: none;
}

/* ── Section Separators ── */
/* Image sections blend into the next dark section via shadow */
#estadisticas, #por-que {
  box-shadow: 0 60px 80px -10px var(--dark);
}
/* Subtle hairline between consecutive dark-on-dark sections */
#soluciones, #blog, #contacto-preview {
  border-top: 1px solid rgba(127,141,160,0.10);
}
/* White socios section gets a top shadow from the image section above */
#socios {
  box-shadow: inset 0 4px 30px -10px rgba(127,141,160,0.08);
}

/* ── Custom Cursor — Circle ── */
.cursor-dot,
.cursor-ring {
  position: fixed;
  top: 0; left: 0;
  pointer-events: none;
  z-index: 99999;
  will-change: transform;
}
.cursor-dot {
  width: 7px; height: 7px;
  background: #C4D4E8;
  border-radius: 50%;
  box-shadow: 0 0 12px rgba(196,212,232,0.95), 0 0 28px rgba(168,186,208,0.55);
  transform: translate(-50%, -50%);
  transition: opacity 0.2s, width 0.18s, height 0.18s, background 0.18s, box-shadow 0.18s;
}
.cursor-ring {
  width: 38px; height: 38px;
  border: 1.5px solid rgba(127,141,160,0.55);
  border-radius: 50%;
  background: transparent;
  transform: translate(-50%, -50%);
  transition:
    width 0.38s var(--ease-out),
    height 0.38s var(--ease-out),
    border-color 0.3s,
    background 0.3s,
    box-shadow 0.3s,
    opacity 0.25s;
}
.cursor-ring.is-hovering {
  width: 58px; height: 58px;
  border-color: rgba(196,212,232,0.85);
  background: rgba(127,141,160,0.08);
  box-shadow: 0 0 22px rgba(168,186,208,0.22), inset 0 0 18px rgba(127,141,160,0.06);
}
.cursor-ring.is-clicking {
  width: 26px; height: 26px;
  background: rgba(127,141,160,0.25);
}
.cursor-dot.is-hovering {
  width: 5px; height: 5px;
  background: #fff;
  box-shadow: 0 0 10px rgba(255,255,255,0.95), 0 0 22px rgba(196,212,232,0.7);
}
.cursor-hidden { opacity: 0 !important; }

/* Hide custom cursor on touch devices */
@media (hover: none), (pointer: coarse) {
  .cursor-dot, .cursor-ring { display: none !important; }
}
