:root {
    --bg: #080808;
    --bg2: #0F0F0F;
    --bg3: #141414;
    --teal: #00C9A7;
    --teal-dim: rgba(0,201,167,0.12);
    --teal-border: rgba(0,201,167,0.25);
    --white: #FFFFFF;
    --gray: #999999;
    --gray-mid: #666666;
    --border: rgba(255,255,255,0.06);
  }

  *, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }
  html { scroll-behavior: smooth; overflow-x: hidden; }

  body {
    background: var(--bg);
    color: var(--white);
    font-family: 'DM Sans', sans-serif;
    font-size: 15px;
    line-height: 1.65;
    overflow-x: hidden;
    max-width: 100vw;
  }

  /* Prevenir desborde horizontal en todas las secciones */
  section, div {
    max-width: 100%;
  }

  /* NOISE TEXTURE OVERLAY */
  body::after {
    content: '';
    position: fixed;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 9999;
    opacity: 0.4;
  }

  /* SCROLLBAR */
  ::-webkit-scrollbar { width: 4px; }
  ::-webkit-scrollbar-track { background: var(--bg); }
  ::-webkit-scrollbar-thumb { background: var(--teal); border-radius: 2px; }

  /* ── ANIMACIONES GLOBALES ── */
  @keyframes fadeUp {
    from { opacity:0; transform:translateY(32px); }
    to   { opacity:1; transform:translateY(0); }
  }
  @keyframes fadeIn {
    from { opacity:0; }
    to   { opacity:1; }
  }
  @keyframes float {
    0%, 100% { transform:translateY(0); }
    50%       { transform:translateY(-12px); }
  }
  @keyframes glow {
    0%, 100% { box-shadow: 0 0 20px rgba(0,201,167,0.3); }
    50%       { box-shadow: 0 0 40px rgba(0,201,167,0.6), 0 0 80px rgba(0,201,167,0.2); }
  }
  @keyframes ticker {
    from { transform:translateX(0); }
    to   { transform:translateX(-50%); }
  }
  @keyframes pulse {
    0%, 100% { opacity:1; }
    50%       { opacity:0.5; }
  }

  /* SECCIÓN COMÚN */
  section { padding: 100px 48px; }

  @media (max-width: 768px) { section { padding: 72px 24px; } }
  @media (max-width: 480px) { section { padding: 60px 16px; } }
  @media (max-width: 390px) { section { padding: 48px 12px; } }

  .section-eyebrow {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--teal);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
  }
  .section-eyebrow::before {
    content: '';
    width: 24px;
    height: 2px;
    background: var(--teal);
  }
  .section-title {
    font-family: 'Syne', sans-serif;
    font-size: clamp(32px, 4vw, 52px);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin-bottom: 16px;
    word-break: break-word;
    overflow-wrap: break-word;
  }
  .section-desc {
    font-size: 16px;
    color: var(--gray);
    font-weight: 300;
    max-width: 560px;
    line-height: 1.75;
  }

  /* BOTONES GLOBALES */
  .btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--teal);
    color: #000;
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 16px 32px;
    border-radius: 2px;
    text-decoration: none;
    transition: all 0.25s;
    animation: glow 3s ease infinite;
  }
  .btn-primary:hover { background: #00e8c2; transform: translateY(-2px); }

  .btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: transparent;
    color: var(--white);
    font-weight: 500;
    font-size: 14px;
    letter-spacing: 0.05em;
    padding: 16px 32px;
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 2px;
    text-decoration: none;
    transition: all 0.25s;
  }
  .btn-secondary:hover { border-color: var(--teal); color: var(--teal); }

  /* COUNTER ANIMATION */
  .count-up { display: inline-block; }

  nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    padding: 20px 48px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(8,8,8,0.85);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    animation: fadeIn 0.8s ease both;
  }

  /* LOGO — imagen reemplazable */
  .nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
  }

  /*
   * INSTRUCCIÓN WIX:
   * Reemplaza este contenedor con tu logo.
   * Tamaño recomendado: altura máx. 40px.
   * El <img> ya está listo; solo asigna tu src.
   */
  .nav-logo-img {
    height: 40px;
    width: auto;
    display: block;
    object-fit: contain;
  }

  .nav-logo-text {
    font-family: 'Syne', sans-serif;
    font-weight: 800;
    font-size: 16px;
    color: var(--white);
    letter-spacing: 0.01em;
  }
  .nav-logo-text span { color: var(--teal); }

  .nav-links {
    display: flex;
    gap: 36px;
    list-style: none;
  }
  .nav-links a {
    font-size: 13px;
    font-weight: 500;
    color: var(--gray);
    text-decoration: none;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    transition: color 0.2s;
  }
  .nav-links a:hover { color: var(--white); }

  .nav-cta {
    background: var(--teal) !important;
    color: #000 !important;
    padding: 10px 24px !important;
    border-radius: 2px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.08em !important;
    transition: all 0.2s !important;
  }
  .nav-cta:hover {
    background: #00e8c2 !important;
    color: #000 !important;
    transform: translateY(-1px);
  }

  /* ── HAMBURGER BUTTON ── */
  .nav-hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1100;
    padding: 4px;
  }
  .nav-hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--white);
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
    transform-origin: center;
  }
  /* Animación X cuando está activo */
  .nav-hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-hamburger.active span:nth-child(2) { opacity: 0; transform: scaleX(0); }
  .nav-hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  /* ── OVERLAY MÓVIL ── */
  .nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(4px);
    z-index: 900;
    opacity: 0;
    transition: opacity 0.3s ease;
  }
  .nav-overlay.active {
    display: block;
    opacity: 1;
  }

  /* NAV — RESPONSIVE */
  @media (max-width: 768px) {
    nav { padding: 14px 24px; }

    /* Mostrar hamburger, ocultar links en desktop */
    .nav-hamburger { display: flex; }

    /* Menú lateral tipo drawer */
    .nav-links {
      position: fixed;
      top: 0;
      right: -100%;
      width: min(300px, 80vw);
      height: 100vh;
      background: var(--bg2);
      border-left: 1px solid var(--border);
      flex-direction: column;
      align-items: flex-start;
      gap: 0;
      padding: 80px 32px 40px;
      z-index: 1000;
      transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
      overflow-y: auto;
    }
    .nav-links.open { right: 0; }

    .nav-links li { width: 100%; border-bottom: 1px solid var(--border); }
    .nav-links a {
      display: block;
      padding: 16px 0;
      font-size: 15px;
      color: var(--gray);
    }
    .nav-links a:hover { color: var(--white); }

    /* CTA dentro del drawer */
    .nav-cta {
      display: inline-block !important;
      margin-top: 24px !important;
      padding: 14px 28px !important;
      font-size: 14px !important;
      border-radius: 2px !important;
      text-align: center;
    }
    .nav-links li:last-child { border-bottom: none; }
  }

  @media (max-width: 480px) {
    nav { padding: 12px 16px; }
    .nav-logo-text { font-size: 14px; }
    .nav-logo-img { height: 32px; }
  }
  @media (max-width: 390px) {
    nav { padding: 10px 14px; }
    .nav-logo-img { height: 28px; }
  }

  #hero {
  position: relative;
  width: 100vw;
  max-width: 100vw;
  /* --vh se setea via JS como px (ej: 7.5px), entonces: var(--vh) * 100 */
  height: 100vh;
  height: calc(var(--vh, 1vh) * 100);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: var(--bg);
}

/* ── Slide list ── */
.hero-slides {
  position: relative;
  flex: 1;
  width: 100%;
  min-height: 0;
  overflow: hidden;
}

/* ── Single slide ── */
.hero-slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 0;
  /* Por defecto: estilo texto (slide 1) */
  padding: 120px 48px 80px;
}
.hero-slide.active {
  opacity: 1;
  pointer-events: auto;
  z-index: 2;
}
.hero-slide.prev {
  opacity: 0;
  z-index: 1;
  pointer-events: none;
}

/* ════════════════════════════════
   SLIDES DE IMAGEN (2-5)
   Desktop: cover normal
   Móvil: contain para ver imagen completa
════════════════════════════════ */
.hero-slide.is-image {
  padding: 0;
  background-color: #000;           /* fondo negro mientras carga / en contain */
  background-size: contain;
  background-position: center center;
  background-repeat: no-repeat;
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Overlay oscuro — más ligero en móvil para no tapar */
.slide-img-overlay {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  background: linear-gradient(
    to bottom,
    rgba(8,8,8,0.05) 0%,
    rgba(8,8,8,0.20) 60%,
    rgba(8,8,8,0.45) 100%
  );
}

/* Ya no se usa img tag */
.slide-img-bg { display: none; }

/* ── MÓVIL: imagen completa ──
   Las imágenes son 16:9. En portrait las mostramos completas
   centradas verticalmente con contain + fondo negro */
@media (max-width: 768px) and (orientation: portrait) {
  .hero-slide.is-image {
    background-size: contain;
    background-position: center center;
  }
  .slide-img-overlay {
    background: linear-gradient(
      to bottom,
      rgba(8,8,8,0.0) 0%,
      rgba(8,8,8,0.15) 100%
    );
  }
}

/* Para pantallas muy altas en landscape que también recorten */
@media (max-width: 480px) {
  .hero-slide.is-image {
    background-size: contain;
    background-position: center center;
  }
}

/* ══ Background layer — slide 1 ── */
.slide-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.slide-bg-gradient {
  position: absolute;
  inset: 0;
}
.hero-slide:nth-child(1) .slide-bg-gradient {
  background:
    radial-gradient(ellipse 70% 60% at 80% 50%, rgba(0,201,167,0.10) 0%, transparent 60%),
    radial-gradient(ellipse 40% 40% at 15% 80%, rgba(0,201,167,0.05) 0%, transparent 60%);
}

/* Grid lines (solo slide 1) */
.hero-grid-lines {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 80px 80px;
}

/* ── Slide 1 content ── */
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 820px;
  width: 100%;
  padding: clamp(72px, 10vh, 120px) 48px clamp(16px, 2vh, 32px);
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow-y: auto;
  scrollbar-width: none;
}
.hero-content::-webkit-scrollbar { display: none; }

/* ── Hero stats (barra inferior dentro del slide 1) ── */
.hero-stats {
  position: relative;
  z-index: 2;
  display: flex;
  gap: 0;
  border-top: 1px solid var(--border);
  margin-top: auto;
  padding: 0 48px;
  flex-shrink: 0;
}
.hero-stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 22px 36px 22px 0;
  margin-right: 36px;
  border-right: 1px solid var(--border);
}
.hero-stat:last-child {
  border-right: none;
  margin-right: 0;
}
.hero-stat-num {
  font-family: 'Bebas Neue', cursive;
  font-size: 38px; color: var(--teal); line-height: 1;
}
.hero-stat-label {
  font-size: 10px; color: var(--gray-mid);
  letter-spacing: 0.14em; text-transform: uppercase;
}

/* Animaciones entrada slide 1 */
.hero-slide.active .hero-badge      { animation: slideInContent 0.7s 0.05s ease both; }
.hero-slide.active .hero-title      { animation: slideInContent 0.7s 0.18s ease both; }
.hero-slide.active .hero-desc       { animation: slideInContent 0.7s 0.32s ease both; }
.hero-slide.active .hero-ctas       { animation: slideInContent 0.7s 0.44s ease both; }
.hero-slide.active .hero-stats      { animation: slideInContent 0.7s 0.56s ease both; }

/* ── Badge ── */
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--teal-dim);
  border: 1px solid var(--teal-border);
  padding: 6px 16px; border-radius: 20px;
  margin-bottom: clamp(14px, 2vh, 28px);
}
.hero-badge-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--teal);
  animation: pulse 2s ease infinite;
  flex-shrink: 0;
}
.hero-badge-text {
  font-size: 11px; font-weight: 500;
  color: var(--teal); letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* ── Title ── */
.hero-title {
  font-family: 'Bebas Neue', cursive;
  font-size: clamp(58px, 8.5vw, 122px);
  line-height: 0.92; letter-spacing: 0.01em;
  margin-bottom: clamp(12px, 2vh, 24px);
}
.hero-title .line-teal { color: var(--teal); }
.hero-title .line-outline {
  -webkit-text-stroke: 2px rgba(255,255,255,0.3);
  color: transparent;
}

/* ── Desc ── */
.hero-desc {
  font-size: 17px; color: var(--gray);
  max-width: 520px; line-height: 1.72;
  margin-bottom: clamp(20px, 3vh, 40px); font-weight: 300;
}
.hero-desc strong { color: var(--white); font-weight: 500; }

/* ── CTAs ── */
.hero-ctas {
  display: flex; gap: 14px;
  align-items: center; flex-wrap: wrap;
  margin-bottom: 0;
}

/* ── Slide 1 layout: flex column para que stats queden abajo ── */
.hero-slide:not(.is-image) {
  flex-direction: column;
  align-items: stretch;
  padding: 0;
}

/* ── Side panel — eliminado en esta versión ── */

/* ═══════════════════════════════
   SLIDER UI — BARRA INFERIOR
═══════════════════════════════ */
.hero-controls {
  flex-shrink: 0;
  position: relative;
  z-index: 10;
  display: flex;
  align-items: stretch;
  height: 3px;
  background: rgba(255,255,255,0.07);
}

.hero-tab {
  flex: 1;
  position: relative;
  overflow: hidden;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
}

.tab-num { display: none; }

.tab-progress {
  position: absolute;
  inset: 0;
  background: transparent;
  transform-origin: left;
  transform: scaleX(0);
}
.hero-tab.active .tab-progress {
  background: var(--teal);
  animation: progressBar var(--slide-duration) linear forwards;
}

/* ── Flechas ── */
.hero-arrows {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  transform: translateY(-50%);
  display: flex;
  justify-content: space-between;
  padding: 0 20px;
  z-index: 20;
  pointer-events: none;
}
.hero-arrow {
  width: 48px; height: 48px;
  border: 1px solid rgba(255,255,255,0.35);
  background: rgba(8,8,8,0.55);
  backdrop-filter: blur(12px);
  color: var(--white);
  font-size: 22px;
  cursor: pointer;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.2s;
  line-height: 1;
  pointer-events: auto;
}
.hero-arrow:hover { border-color: var(--teal); color: var(--teal); background: var(--teal-dim); }

/* ═══════════════════════════════
   RESPONSIVE — TABLET ≤ 768px
═══════════════════════════════ */
@media (max-width: 768px) {
  .hero-content { padding: 90px 24px 0; }
  .hero-stats { padding: 0 24px; }
  .hero-stat { padding: 18px 24px 18px 0; margin-right: 24px; }

  .hero-slide.is-image { padding: 0; align-items: stretch; }

  .hero-title { font-size: clamp(50px, 12vw, 78px); }
  .hero-desc { font-size: 15px; max-width: 100%; }

  .hero-controls { overflow: visible; }
  .hero-tab { min-width: 0; }

  .hero-arrows { padding: 0 14px; }
  .hero-arrow { width: 38px; height: 38px; font-size: 18px; }

  .hero-stat-num { font-size: 30px; }
  .hero-stat-label { font-size: 9px; }
}

/* ═══════════════════════════════
   RESPONSIVE — MÓVIL ≤ 480px
═══════════════════════════════ */
@media (max-width: 480px) {
  .hero-content { padding: 80px 18px 0; }
  .hero-stats { padding: 0 18px; gap: 0; }
  .hero-stat { padding: 16px 18px 16px 0; margin-right: 18px; }
  .hero-stat:last-child { border-right: none; }

  .hero-slide.is-image { padding: 0; }

  .hero-badge { margin-bottom: 20px; }
  .hero-badge-text { font-size: 9px; letter-spacing: 0.06em; }

  .hero-title { font-size: clamp(46px, 13vw, 68px); margin-bottom: 18px; }
  .hero-desc { font-size: 14px; margin-bottom: 28px; }

  .hero-ctas {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
  .btn-primary, .btn-secondary {
    width: 100%;
    justify-content: center;
    padding: 14px 24px;
    font-size: 13px;
  }

  .hero-stat-num { font-size: 28px; }
  .hero-stat-label { font-size: 9px; }

  /* tabs: solo la barra, sin cambios adicionales en móvil */

  .hero-arrows { padding: 0 12px; }
  .hero-arrow { width: 34px; height: 34px; font-size: 16px; }
}

/* ═══════════════════════════════
   RESPONSIVE — ≤ 390px
═══════════════════════════════ */
@media (max-width: 390px) {
  .hero-content { padding: 72px 14px 0; }
  .hero-stats { padding: 0 14px; }
  .hero-stat { padding: 14px 14px 14px 0; margin-right: 14px; }
  .hero-title { font-size: clamp(40px, 14vw, 58px); }
  .hero-badge { padding: 5px 12px; }
  .hero-badge-text { font-size: 8.5px; }
  .hero-desc { font-size: 13.5px; }
  .hero-arrow { width: 30px; height: 30px; font-size: 12px; }
  .hero-stat-num { font-size: 26px; }
}

   .ticker-section {
    background: var(--teal);
    padding: 14px 0;
    overflow: hidden;
  }

  .ticker-track {
    display: flex;
    white-space: nowrap;
    animation: ticker 25s linear infinite;
  }

  .ticker-item {
    display: inline-flex;
    align-items: center;
    gap: 16px;
    padding: 0 32px;
    font-family: 'Syne', sans-serif;
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #000;
  }

  .ticker-dot {
    width: 4px; height: 4px;
    border-radius: 50%;
    background: rgba(0,0,0,0.4);
    flex-shrink: 0;
  }

  /* TICKER — RESPONSIVE */
  @media (max-width: 768px) {
    .ticker-item { font-size: 12px; padding: 0 24px; }
  }
  @media (max-width: 480px) {
    .ticker-item { font-size: 11px; padding: 0 18px; gap: 12px; }
    .ticker-section { padding: 11px 0; }
  }
  @media (max-width: 390px) {
    .ticker-item { font-size: 10px; padding: 0 14px; }
    .ticker-section { padding: 10px 0; }
  }
  #why { background: var(--bg2); }

  .why-header {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: end;
    margin-bottom: 64px;
  }

  .why-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: var(--border);
    border: 1px solid var(--border);
  }

  .why-card {
    background: var(--bg2);
    padding: 36px 32px;
    transition: background 0.3s;
    position: relative;
    overflow: hidden;
  }
  .why-card::before {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 2px;
    background: var(--teal);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
  }
  .why-card:hover { background: var(--bg3); }
  .why-card:hover::before { transform: scaleX(1); }

  .why-icon { font-size: 28px; margin-bottom: 16px; }
  .why-title {
    font-family: 'Syne', sans-serif;
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--white);
  }
  .why-text {
    font-size: 13.5px;
    color: var(--gray);
    line-height: 1.65;
    font-weight: 300;
  }
  .why-num {
    position: absolute;
    top: 24px; right: 24px;
    font-family: 'Bebas Neue', cursive;
    font-size: 48px;
    color: rgba(255,255,255,0.04);
    line-height: 1;
  }

  /* WHY CDM — RESPONSIVE */
  @media (max-width: 768px) {
    #why { padding: 72px 32px; }
    .why-header { grid-template-columns: 1fr; gap: 24px; }
    .why-grid { grid-template-columns: 1fr 1fr; }
    .why-card { padding: 28px 24px; }
    .why-title { font-size: 15px; }
  }
  @media (max-width: 480px) {
    #why { padding: 64px 20px; }
    .why-grid { grid-template-columns: 1fr; }
    .why-card { padding: 24px 20px; }
    .why-num { font-size: 36px; }
  }
  @media (max-width: 390px) {
    #why { padding: 56px 14px; }
    .why-card { padding: 20px 16px; }
    .why-icon { font-size: 24px; }
    .why-title { font-size: 14px; }
    .why-text { font-size: 12.5px; }
  }
   #services { background: var(--bg); }

  .services-layout {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 80px;
    align-items: start;
  }

  .services-sticky {
    position: sticky;
    top: 120px;
  }

  .services-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }

  .service-card {
    background: var(--bg2);
    border: 1px solid var(--border);
    border-radius: 2px;
    padding: 28px 24px;
    transition: all 0.3s;
    cursor: default;
  }
  .service-card:hover {
    border-color: var(--teal-border);
    background: var(--bg3);
    transform: translateY(-4px);
  }
  .service-icon { font-size: 28px; margin-bottom: 14px; }
  .service-name {
    font-family: 'Syne', sans-serif;
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 8px;
  }
  .service-desc {
    font-size: 13px;
    color: var(--gray);
    line-height: 1.6;
    font-weight: 300;
  }

  /* SERVICES — RESPONSIVE */
  @media (max-width: 768px) {
    #services { padding: 72px 32px; }
    .services-layout { grid-template-columns: 1fr; gap: 40px; }
    .services-sticky { position: static; }
    .services-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
    .service-card { padding: 22px 18px; }
  }
  @media (max-width: 480px) {
    #services { padding: 64px 20px; }
    .services-grid { grid-template-columns: 1fr; gap: 10px; }
    .service-card { padding: 20px 16px; }
    .service-icon { font-size: 24px; }
    .service-name { font-size: 15px; }
  }
  @media (max-width: 390px) {
    #services { padding: 56px 14px; }
    .service-card { padding: 18px 14px; }
    .service-name { font-size: 14px; }
    .service-desc { font-size: 12px; }
  }

   #pricing { background: var(--bg2); }

  .pricing-header { text-align: center; margin-bottom: 64px; }
  .pricing-header .section-eyebrow { justify-content: center; }
  .pricing-header .section-eyebrow::before { display: none; }

  .pricing-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    background: var(--border);
    border: 1px solid var(--border);
    margin-bottom: 24px;
  }

  .price-card {
    background: var(--bg2);
    padding: 36px 28px;
    position: relative;
    transition: background 0.3s;
  }
  .price-card:hover { background: var(--bg3); }
  .price-card.featured {
    background: var(--teal-dim);
    border: 1px solid var(--teal-border);
    margin: -1px;
  }

  .price-badge {
    display: inline-block;
    background: var(--teal);
    color: #000;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 1px;
    margin-bottom: 16px;
  }

  .price-plan {
    font-family: 'Syne', sans-serif;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--gray);
    margin-bottom: 8px;
  }

  .price-amount {
    font-family: 'Bebas Neue', cursive;
    font-size: 52px;
    color: var(--white);
    line-height: 1;
    margin-bottom: 4px;
  }
  .price-amount span {
    font-family: 'DM Sans', sans-serif;
    font-size: 16px;
    color: var(--gray);
    font-weight: 300;
  }

  .price-period {
    font-size: 11px;
    color: var(--gray-mid);
    margin-bottom: 24px;
  }

  .price-divider {
    height: 1px;
    background: var(--border);
    margin-bottom: 24px;
  }

  .price-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 28px;
  }
  .price-features li {
    display: flex;
    gap: 10px;
    font-size: 12.5px;
    color: var(--gray);
    font-weight: 300;
    line-height: 1.4;
  }
  .price-features li::before {
    content: '✓';
    color: var(--teal);
    font-weight: 700;
    font-size: 12px;
    flex-shrink: 0;
    margin-top: 1px;
  }

  .price-cta {
    display: block;
    text-align: center;
    padding: 12px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: 2px;
    transition: all 0.25s;
  }
  .price-cta-outline {
    border: 1px solid rgba(255,255,255,0.15);
    color: var(--white);
  }
  .price-cta-outline:hover { border-color: var(--teal); color: var(--teal); }
  .price-cta-solid { background: var(--teal); color: #000; }
  .price-cta-solid:hover { background: #00e8c2; }

  .pricing-note {
    text-align: center;
    font-size: 12px;
    color: var(--gray-mid);
  }

  /* PROYECTO A LA MEDIDA */
  .pricing-medida {
    background: var(--bg2);
    border: 1px solid var(--border);
    border-radius: 2px;
    padding: 40px 48px;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 40px;
    align-items: center;
  }
  .pricing-medida-eyebrow {
    font-size: 9.5px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--teal);
    margin-bottom: 10px;
  }
  .pricing-medida-title {
    font-family: 'Syne', sans-serif;
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 10px;
  }
  .pricing-medida-desc {
    font-size: 14px;
    color: var(--gray);
    font-weight: 300;
    line-height: 1.7;
    max-width: 560px;
  }
  .pricing-medida-desc strong { color: var(--white); }
  .pricing-medida-cta {
    text-align: center;
    flex-shrink: 0;
  }
  .pricing-medida-sub {
    font-size: 11px;
    color: var(--gray-mid);
    margin-top: 10px;
    white-space: nowrap;
  }

  @media (max-width: 768px) {
    .pricing-medida {
      grid-template-columns: 1fr;
      padding: 32px 28px;
      gap: 28px;
      text-align: center;
    }
    .pricing-medida-desc { max-width: 100%; }
    .pricing-medida-cta { text-align: center; }
    .pricing-medida-sub { white-space: normal; }
    .btn-primary { white-space: normal; text-align: center; }
  }
  @media (max-width: 480px) {
    .pricing-medida {
      padding: 24px 18px;
      gap: 20px;
    }
    .pricing-medida-title { font-size: 20px; }
    .pricing-medida-desc { font-size: 13px; }
    .pricing-medida-cta .btn-primary {
      width: 100%;
      justify-content: center;
    }
  }
  @media (max-width: 390px) {
    .pricing-medida { padding: 20px 14px; }
  }

  /* PRICING — RESPONSIVE */
  /* Reemplaza el div inline del HTML */
  .pricing-main-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: var(--border);
    border: 1px solid var(--border);
    margin-bottom: 16px;
  }

  @media (max-width: 768px) {
    #pricing { padding: 72px 32px; }
    .pricing-main-grid { grid-template-columns: 1fr; }
    .pricing-grid { grid-template-columns: 1fr 1fr; }
    .price-card { padding: 28px 20px; }
    .price-amount { font-size: 42px; }
  }
  @media (max-width: 480px) {
    #pricing { padding: 64px 16px; }
    .pricing-main-grid { grid-template-columns: 1fr; }
    .pricing-grid { grid-template-columns: 1fr; }
    .price-card { padding: 24px 18px; }
    .price-amount { font-size: 48px; }
    .pricing-header { margin-bottom: 40px; }
  }
  @media (max-width: 390px) {
    #pricing { padding: 56px 12px; }
    .price-card { padding: 20px 14px; }
    .price-amount { font-size: 42px; }
    .price-features li { font-size: 12px; }
  }
  #servicios { background: var(--bg); }

  .servicios-header {
    text-align: center;
    margin-bottom: 64px;
  }
  .servicios-header .section-eyebrow {
    justify-content: center;
  }
  .servicios-header .section-eyebrow::before { display: none; }

  .servicios-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
  }

  .servicio-category {
    background: var(--bg2);
    border: 1px solid var(--border);
    border-radius: 2px;
    overflow: hidden;
  }

  .servicio-category-header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--border);
    background: var(--bg3);
  }

  .servicio-category-body { padding: 20px 24px; }

  .servicio-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 12px;
  }
  .servicio-row:last-child { border-bottom: none; padding-bottom: 0; margin-bottom: 0; }

  .servicio-nombre {
    font-size: 12.5px;
    font-weight: 600;
    color: var(--white);
  }
  .servicio-detalle {
    font-size: 11px;
    color: var(--gray);
    margin-top: 2px;
  }
  .servicio-precio {
    font-family: 'DM Mono', monospace;
    font-size: 12px;
    color: var(--teal);
    white-space: nowrap;
    margin-left: 12px;
    flex-shrink: 0;
  }

  .servicios-cta {
    text-align: center;
    margin-top: 48px;
  }

  /* SERVICIOS À LA CARTE — RESPONSIVE */
  @media (max-width: 768px) {
    #servicios { padding: 72px 32px; }
    .servicios-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  }
  @media (max-width: 480px) {
    #servicios { padding: 64px 20px; }
    .servicios-grid { grid-template-columns: 1fr; gap: 10px; }
    .servicio-category-header,
    .servicio-category-body { padding: 16px 18px; }
  }
  @media (max-width: 390px) {
    #servicios { padding: 56px 14px; }
    .servicio-category-header,
    .servicio-category-body { padding: 14px 14px; }
    .servicio-nombre { font-size: 12px; }
    .servicio-detalle { font-size: 10.5px; }
    .servicio-precio { font-size: 11px; }
  }
  #clients { background: var(--bg); }

  .clients-header { text-align: center; margin-bottom: 56px; }
  .clients-header .section-eyebrow { justify-content: center; }
  .clients-header .section-eyebrow::before { display: none; }

  .clients-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 1px;
    background: var(--border);
    border: 1px solid var(--border);
    margin-bottom: 16px;
  }

  .client-cell {
    background: var(--bg);
    padding: 22px 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: background 0.3s;
  }
  .client-cell:hover { background: var(--bg2); }

  /*
   * LOGO DEL CLIENTE — 25×25px
   * INSTRUCCIÓN WIX:
   * Cada <img class="client-logo"> apunta a un logo placeholder.
   * Reemplaza el src por la URL real del logo de cada cliente.
   * El tamaño está fijado en CSS: 25px × 25px, object-fit: contain.
   */
  .client-logo {
    width: 80px;
    height: 80px;
    object-fit: contain;
    
    transition: filter 0.3s;
  }
  .client-cell:hover .client-logo {
    filter: brightness(0) invert(1);
  }

  .client-name {
    font-family: 'Syne', sans-serif;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--gray-mid);
    text-align: center;
    transition: color 0.3s;
  }
  .client-cell:hover .client-name { color: var(--white); }

  /* CLIENTS — RESPONSIVE */
  @media (max-width: 1024px) {
    .clients-grid { grid-template-columns: repeat(5, 1fr); }
    .client-logo { width: 60px; height: 60px; }
  }
  @media (max-width: 768px) {
    #clients { padding: 72px 32px; }
    .clients-grid { grid-template-columns: repeat(4, 1fr); }
    .client-cell { padding: 16px 10px; }
    .client-logo { width: 52px; height: 52px; }
  }
  @media (max-width: 480px) {
    #clients { padding: 64px 16px; }
    .clients-grid { grid-template-columns: repeat(3, 1fr); }
    .client-cell { padding: 14px 8px; gap: 5px; }
    .client-logo { width: 44px; height: 44px; }
    .client-name { font-size: 8px; letter-spacing: 0.03em; }
  }
  @media (max-width: 390px) {
    #clients { padding: 56px 12px; }
    .clients-grid { grid-template-columns: repeat(3, 1fr); }
    .client-cell { padding: 10px 6px; }
    .client-logo { width: 36px; height: 36px; }
    .client-name { font-size: 7.5px; letter-spacing: 0.02em; }
  }
  #process { background: var(--bg2); }

  .process-layout {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 80px;
    align-items: start;
  }

  .process-sticky { position: sticky; top: 120px; }

  .process-steps {
    display: flex;
    flex-direction: column;
    gap: 0;
  }

  .process-step {
    display: grid;
    grid-template-columns: 64px 1fr;
    gap: 24px;
    align-items: start;
    padding: 32px 0;
    border-bottom: 1px solid var(--border);
    transition: all 0.3s;
  }
  .process-step:last-child { border-bottom: none; }
  .process-step:hover .step-num { background: var(--teal); color: #000; }

  .step-num {
    width: 48px; height: 48px;
    border: 1px solid var(--border);
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Bebas Neue', cursive;
    font-size: 22px;
    color: var(--teal);
    transition: all 0.3s;
    flex-shrink: 0;
  }

  .step-title {
    font-family: 'Syne', sans-serif;
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--white);
  }
  .step-text {
    font-size: 13.5px;
    color: var(--gray);
    font-weight: 300;
    line-height: 1.65;
  }

  /* PROCESS — RESPONSIVE */
  @media (max-width: 768px) {
    #process { padding: 72px 32px; }
    .process-layout { grid-template-columns: 1fr; gap: 40px; }
    .process-sticky { position: static; }
    .process-step { padding: 24px 0; gap: 18px; }
    .step-title { font-size: 15px; }
  }
  @media (max-width: 480px) {
    #process { padding: 64px 20px; }
    .process-step { grid-template-columns: 48px 1fr; gap: 14px; }
    .step-num { width: 40px; height: 40px; font-size: 18px; }
    .step-title { font-size: 14px; }
    .step-text { font-size: 13px; }
  }
  @media (max-width: 390px) {
    #process { padding: 56px 14px; }
    .process-step { grid-template-columns: 42px 1fr; gap: 12px; padding: 20px 0; }
    .step-num { width: 36px; height: 36px; font-size: 16px; }
    .step-text { font-size: 12.5px; }
  }
   #cta {
    background: var(--bg);
    text-align: center;
    padding: 120px 48px;
    position: relative;
    overflow: hidden;
  }
  #cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 70% 60% at 50% 50%, rgba(0,201,167,0.08) 0%, transparent 65%);
  }

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

  .cta-title {
    font-family: 'Bebas Neue', cursive;
    font-size: clamp(52px, 7vw, 100px);
    line-height: 0.95;
    margin-bottom: 24px;
  }
  .cta-title .teal { color: var(--teal); }

  .cta-desc {
    font-size: 17px;
    color: var(--gray);
    font-weight: 300;
    max-width: 480px;
    margin: 0 auto 44px;
    line-height: 1.7;
  }

  .cta-sub {
    margin-top: 20px;
    font-size: 12px;
    color: var(--gray-mid);
  }

  /* CTA — RESPONSIVE */
  @media (max-width: 768px) {
    #cta { padding: 90px 32px; }
    .cta-desc { font-size: 15px; }
  }
  @media (max-width: 480px) {
    #cta { padding: 72px 20px; }
    .cta-title { font-size: clamp(44px, 11vw, 72px); }
    .cta-desc { font-size: 14px; max-width: 100%; }
  }
  @media (max-width: 390px) {
    #cta { padding: 60px 14px; }
    .cta-title { font-size: clamp(40px, 12vw, 60px); }
    .cta-desc { font-size: 13px; }
  }
  footer {
    background: var(--bg2);
    border-top: 1px solid var(--border);
    padding: 60px 48px 40px;
  }

  .footer-top {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 48px;
  }

  .footer-brand-name {
    font-family: 'Syne', sans-serif;
    font-size: 18px;
    font-weight: 800;
    margin-bottom: 12px;
  }
  .footer-brand-name span { color: var(--teal); }

  .footer-tagline {
    font-size: 13px;
    color: var(--gray);
    font-weight: 300;
    font-style: italic;
    margin-bottom: 20px;
  }

  .footer-locations {
    display: flex;
    flex-direction: column;
    gap: 4px;
  }
  .footer-location {
    font-size: 12px;
    color: var(--gray-mid);
    display: flex;
    align-items: center;
    gap: 6px;
  }
  .footer-location::before { content: '📍'; font-size: 10px; }

  .footer-col-title {
    font-family: 'Syne', sans-serif;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--white);
    margin-bottom: 18px;
  }

  .footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
  }
  .footer-links a {
    font-size: 13px;
    color: var(--gray);
    text-decoration: none;
    font-weight: 300;
    transition: color 0.2s;
  }
  .footer-links a:hover { color: var(--teal); }

  .footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 24px;
    border-top: 1px solid var(--border);
  }

  .footer-copy {
    font-size: 12px;
    color: var(--gray-mid);
  }

  .footer-socials { display: flex; gap: 16px; }

  .social-link {
    width: 36px; height: 36px;
    border: 1px solid var(--border);
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.2s;
    color: var(--gray);
  }
  .social-link:hover {
    border-color: var(--teal);
    color: var(--teal);
    background: var(--teal-dim);
  }
  .social-icon {
  width: 20px;
  height: 20px;
  object-fit: contain;
  filter: brightness(0.6);
  transition: filter 0.2s ease;
}
.social-link:hover .social-icon {
  filter: brightness(1) invert(1); /* blanco puro al hover */
}

  /* FOOTER — RESPONSIVE */
  @media (max-width: 768px) {
    footer { padding: 48px 32px 32px; }
    .footer-top { grid-template-columns: 1fr 1fr; gap: 36px; }
    .footer-bottom { flex-direction: column; gap: 16px; text-align: center; }
  }
  @media (max-width: 480px) {
    footer { padding: 40px 20px 28px; }
    .footer-top { grid-template-columns: 1fr 1fr; gap: 28px; }
    .footer-brand-name { font-size: 16px; }
    .footer-links a { font-size: 12px; }
  }
  @media (max-width: 390px) {
    footer { padding: 36px 14px 24px; }
    .footer-top { grid-template-columns: 1fr; gap: 24px; }
    .footer-brand-name { font-size: 15px; }
    .footer-col-title { font-size: 11px; }
    .footer-copy { font-size: 11px; }
  }
   /*
   * BOTÓN FLOTANTE WHATSAPP
   * INSTRUCCIÓN WIX:
   * El ícono emoji fue removido. Dentro del <a class="wa-float">
   * coloca tu imagen SVG o PNG del ícono de WhatsApp.
   * Ejemplo: <img src="tu-icono-whatsapp.svg" width="28" height="28">
   */
  .wa-float {
    position: fixed;
    bottom: 32px;
    right: 32px;
    width: 58px;
    height: 58px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: 0 4px 24px rgba(37,211,102,0.4);
    z-index: 999;
    transition: all 0.3s;
    animation: float 3s ease infinite;
  }
  .wa-float:hover {
    transform: scale(1.1) translateY(-4px) !important;
    box-shadow: 0 8px 32px rgba(37,211,102,0.5);
  }

  /* El ícono que pongas dentro heredará este tamaño */
  .wa-float img,
  .wa-float svg {
    width: 28px;
    height: 28px;
    display: block;
  }

  .wa-float-tooltip {
    position: absolute;
    right: 68px;
    background: var(--bg2);
    color: var(--white);
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
    padding: 8px 14px;
    border-radius: 2px;
    border: 1px solid var(--border);
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
  }
  .wa-float:hover .wa-float-tooltip { opacity: 1; }

  /* WA FLOAT — RESPONSIVE */
  @media (max-width: 480px) {
    .wa-float { width: 50px; height: 50px; bottom: 20px; right: 20px; }
    .wa-float img, .wa-float svg { width: 24px; height: 24px; }
    .wa-float-tooltip { font-size: 11px; right: 58px; }
  }
  @media (max-width: 390px) {
    .wa-float { width: 46px; height: 46px; bottom: 16px; right: 16px; }
    .wa-float img, .wa-float svg { width: 22px; height: 22px; }
  }
/* ================================================================
   HAMBURGER MENU
   ================================================================ */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 2px;
  cursor: pointer;
  padding: 8px;
  z-index: 1100;
  position: relative;
  transition: border-color 0.2s;
}
.nav-hamburger:hover { border-color: var(--teal); }
.nav-hamburger span {
  display: block;
  height: 1.5px;
  background: var(--white);
  border-radius: 2px;
  transition: all 0.3s ease;
  transform-origin: center;
}
/* X animation */
.nav-hamburger.active span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}
.nav-hamburger.active span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.nav-hamburger.active span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

/* Overlay */
.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(4px);
  z-index: 990;
  opacity: 0;
  transition: opacity 0.3s;
}
.nav-overlay.active {
  opacity: 1;
}

/* Mobile menu panel */
@media (max-width: 768px) {
  .nav-hamburger { display: flex; }
  .nav-overlay { display: block; pointer-events: none; }
  .nav-overlay.active { pointer-events: auto; }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: min(320px, 85vw);
    height: 100dvh;
    background: var(--bg2);
    border-left: 1px solid var(--border);
    flex-direction: column;
    gap: 0;
    padding: 80px 0 40px;
    z-index: 1050;
    transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
  }
  .nav-links.open { right: 0; }

  .nav-links li {
    border-bottom: 1px solid var(--border);
  }
  .nav-links a {
    display: block;
    padding: 18px 32px;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.1em;
    color: var(--gray) !important;
    transition: color 0.2s, background 0.2s, padding-left 0.2s;
  }
  .nav-links a:hover {
    color: var(--teal) !important;
    background: var(--teal-dim);
    padding-left: 40px;
  }
  .nav-cta {
    margin: 24px 32px 0;
    display: block !important;
    text-align: center;
    background: var(--teal) !important;
    color: #000 !important;
    padding: 14px 24px !important;
    border-radius: 2px !important;
  }
}

/* ================================================================
   BANNER SLIDER
   ================================================================ */
.banner-slider {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: var(--bg3);
  border-bottom: 1px solid var(--border);
  margin-top: 81px; /* altura del nav */
}

.banner-track {
  display: flex;
  width: 100%;
  transition: transform 0.55s cubic-bezier(0.4, 0, 0.2, 1);
}

.banner-slide {
  min-width: 100%;
  padding: 0 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 64px;
  position: relative;
}
.banner-slide--1 { background: linear-gradient(90deg, rgba(0,201,167,0.08) 0%, transparent 60%); }
.banner-slide--2 { background: linear-gradient(90deg, rgba(0,201,167,0.05) 0%, transparent 60%); }
.banner-slide--3 { background: transparent; }

.banner-slide-inner {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
}

.banner-tag {
  font-family: 'Syne', sans-serif;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #000;
  background: var(--teal);
  padding: 3px 8px;
  border-radius: 1px;
  white-space: nowrap;
}

.banner-text {
  font-size: 13px;
  color: var(--gray);
  font-weight: 300;
  text-align: center;
}
.banner-text strong { color: var(--white); font-weight: 600; }

.banner-cta {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--teal);
  text-decoration: none;
  white-space: nowrap;
  border-bottom: 1px solid var(--teal-border);
  padding-bottom: 1px;
  transition: color 0.2s, border-color 0.2s;
}
.banner-cta:hover { color: var(--white); border-color: var(--white); }

/* Controles */
.banner-prev,
.banner-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  color: var(--gray-mid);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  padding: 0 16px;
  transition: color 0.2s;
  z-index: 10;
}
.banner-prev { left: 0; }
.banner-next { right: 0; }
.banner-prev:hover,
.banner-next:hover { color: var(--teal); }

/* Dots */
.banner-dots {
  position: absolute;
  bottom: 6px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
}
.banner-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--gray-mid);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background 0.2s, transform 0.2s;
}
.banner-dot.active {
  background: var(--teal);
  transform: scale(1.3);
}

/* Hero offset ajuste */
#hero { margin-top: 0; }

/* Banner responsive */
@media (max-width: 768px) {
  .banner-slider { margin-top: 69px; }
  .banner-slide { padding: 0 48px; min-height: 58px; }
  .banner-text { font-size: 12px; }
}
@media (max-width: 480px) {
  .banner-slide { padding: 8px 40px; min-height: auto; }
  .banner-slide-inner { gap: 10px; }
  .banner-text { font-size: 11px; }
  .banner-tag { font-size: 8px; }
  .banner-cta { font-size: 10px; }
  .banner-prev, .banner-next { padding: 0 10px; font-size: 18px; }
}

/* ================================================================
   GALLERY SECTION
   ================================================================ */
#gallery {
  background: var(--bg);
  padding: 100px 48px;
}

.gallery-header {
  text-align: center;
  margin-bottom: 56px;
}
.gallery-header .section-eyebrow {
  justify-content: center;
}
.gallery-header .section-eyebrow::before { display: none; }
.gallery-header .section-desc {
  margin: 0 auto;
  text-align: center;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 48px;
}

.gallery-item { position: relative; }

.gallery-item-wrap {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4/3;
  border: 1px solid var(--border);
  border-radius: 2px;
  cursor: pointer;
  background: var(--bg2);
}

.gallery-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}
.gallery-item-wrap:hover .gallery-img {
  transform: scale(1.06);
}

.gallery-item-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--teal);
  opacity: 0;
  transition: opacity 0.3s;
}
.gallery-item-wrap:hover .gallery-item-overlay {
  opacity: 1;
}

/* Pagination */
.gallery-pagination {
  display: flex;
  gap: 6px;
  list-style: none;
  justify-content: center;
  flex-wrap: wrap;
}

.gallery-page-item {}

.gallery-page-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 10px;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 2px;
  color: var(--gray);
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}
.gallery-page-btn:hover {
  border-color: var(--teal);
  color: var(--teal);
  background: var(--teal-dim);
}
.gallery-page-item.active .gallery-page-btn {
  background: var(--teal);
  border-color: var(--teal);
  color: #000;
  font-weight: 700;
}
.gallery-page-item.disabled .gallery-page-btn {
  opacity: 0.35;
  cursor: default;
  pointer-events: none;
}
.gallery-page-arrow {
  font-size: 18px;
  line-height: 1;
}

/* Lightbox */
.gallery-lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.92);
  backdrop-filter: blur(8px);
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}
.gallery-lightbox.active {
  opacity: 1;
  pointer-events: auto;
}
.gallery-lightbox-inner {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
}
.gallery-lightbox-img {
  max-width: 90vw;
  max-height: 88vh;
  object-fit: contain;
  border: 1px solid var(--border);
  border-radius: 2px;
  display: block;
}
.gallery-lightbox-close {
  position: absolute;
  top: -14px;
  right: -14px;
  width: 32px;
  height: 32px;
  background: var(--teal);
  border: none;
  border-radius: 50%;
  color: #000;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  z-index: 10;
}
.gallery-lightbox-close:hover { background: #00e8c2; }

/* Gallery — responsive */
@media (max-width: 1024px) {
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
  #gallery { padding: 72px 32px; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
}
@media (max-width: 480px) {
  #gallery { padding: 64px 20px; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .gallery-header { margin-bottom: 36px; }
  .gallery-page-btn { min-width: 32px; height: 32px; font-size: 12px; }
}
@media (max-width: 390px) {
  #gallery { padding: 56px 14px; }
  .gallery-grid { gap: 6px; }
}
/* ── INSTAGRAM FEED ── */
#instagram {
  padding: 100px 48px;
  border-top: 1px solid var(--border);
  overflow: hidden;
}

.instagram-header {
  text-align: center;
  margin-bottom: 48px;
}

.instagram-header .section-eyebrow {
  justify-content: center;
}

.instagram-header .section-title {
  word-break: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
}

.instagram-header .section-desc {
  margin: 12px auto 0;
  text-align: center;
  max-width: 560px;
  word-break: break-word;
}

.instagram-widget {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  overflow: hidden;
}

/* Forzar que cualquier iframe/embed no se desborde */
.instagram-widget iframe,
.instagram-widget > * {
  max-width: 100% !important;
}

/* Contenedor del botón centrado */
.instagram-cta {
  text-align: center;
  margin-top: 40px;
}

/* ── TABLET (≤ 1024px) ── */
@media (max-width: 1024px) {
  #instagram {
    padding: 80px 32px;
  }
  .instagram-widget {
    max-width: 100%;
  }
}

/* ── MÓVIL GRANDE (≤ 768px) ── */
@media (max-width: 768px) {
  #instagram {
    padding: 60px 20px;
  }
  .instagram-header {
    margin-bottom: 32px;
  }
  .instagram-header .section-title {
    font-size: clamp(24px, 7vw, 38px);
    word-break: break-word;
    overflow-wrap: break-word;
  }
  .instagram-header .section-desc {
    font-size: 14px;
    max-width: 100%;
  }
  .instagram-cta {
    margin-top: 28px;
  }
  /* Forzar que Elfsight use 2 columnas en tablet */
  .instagram-widget .eapps-instagram-feed-posts-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

/* ── MÓVIL (≤ 480px) ── */
@media (max-width: 480px) {
  #instagram {
    padding: 48px 14px;
  }
  .instagram-header {
    margin-bottom: 24px;
  }
  .instagram-header .section-title {
    font-size: clamp(22px, 8vw, 30px);
  }
  .instagram-cta .btn-secondary {
    width: 100%;
    justify-content: center;
    padding: 14px 24px;
    font-size: 13px;
  }
  /* 1 columna en móvil pequeño */
  .instagram-widget .eapps-instagram-feed-posts-grid {
    grid-template-columns: 1fr !important;
  }
}

/* ── MÓVIL PEQUEÑO (≤ 390px) ── */
@media (max-width: 390px) {
  #instagram {
    padding: 40px 12px;
  }
}