:root{
    --nomi-green:#008180;
    --nomi-orange:#d87625;
    --nomi-amber:#d39e29;
  
    --soft-green: rgba(0, 129, 128, .14);
    --soft-orange: rgba(216, 118, 37, .14);
    --soft-amber: rgba(211, 158, 41, .14);
  
    --muted: rgba(31, 42, 42, .72);
    --radius-xl: 26px;
  
    --shadow-soft: 0 18px 50px rgba(0,0,0,.10);
    --shadow-hover: 0 22px 70px rgba(0,0,0,.14);
  }

  html {
    scroll-behavior: smooth;
  }



  /* ===== HERO ===== */
  .hero-home{
    position: relative;
    padding: clamp(40px, 7vw, 80px) 0 clamp(36px, 5vw, 64px);
    overflow: hidden;
    font-family: "Poppins", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  }
  
  .hero-container{
    position: relative;
    max-width: 1180px;
  }
  
  /* Head */
  .hero-head{
    text-align: center;
    max-width: 900px;
    margin: 0 auto 34px;
    position: relative;
    z-index: 5; /* arriba de orbs */
  }
  
  .hero-title{
    font-weight: 800;
    line-height: .92;
    letter-spacing: -0.02em;
    margin: 0 0 14px;
    font-size: clamp(44px, 6.2vw, 78px);
    color: rgba(0, 129, 128, .80);
  }
  
  .hero-subtitle{
    margin: 0 auto 18px;
    font-size: clamp(16px, 2.1vw, 20px);
    color: var(--muted);
    line-height: 1.35;
  }
  
  .hero-subtitle .hl{
    color: rgba(216, 118, 37, .90);
    font-weight: 700;
  }
  
  /* CTAs */
  .hero-ctas{
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 18px;
  }
  
  .btn-nomi{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 18px;
    border-radius: 14px;
    font-weight: 700;
    font-size: 15px;
    text-decoration: none;
    transition: transform .18s ease, filter .18s ease, box-shadow .18s ease;
    box-shadow: 0 10px 25px rgba(0,0,0,.08);
    will-change: transform;
  }
  .btn-nomi:active{ transform: translateY(1px) scale(.99); }
  
  .btn-nomi-orange{ background: rgba(216, 118, 37, .92); color:#fff; }
  .btn-nomi-green{ background: rgba(0, 129, 128, .92); color:#fff; }
  
  .btn-nomi:hover{
    transform: translateY(-2px);
    filter: saturate(1.05);
    box-shadow: 0 14px 34px rgba(0,0,0,.12);
  }
  
  /* ===== CARDS ===== */
  .hero-cards{
    position: relative;
    display: grid;
    grid-template-columns: 0.92fr 1.30fr 0.92fr;
    gap: 22px;
    align-items: end;
    margin-top: 34px;
    padding-bottom: 14px;
    z-index: 3;
  }
  
  /* base */
  .hero-card{
    position: relative;
    border-radius: var(--radius-xl);
    background: #fff;
    box-shadow: var(--shadow-soft);
    overflow: visible;
    opacity: 0;
    transform: translateY(18px) scale(.985);
    will-change: transform, opacity;
    transition: opacity .55s ease, transform .65s cubic-bezier(.2,.8,.2,1), box-shadow .22s ease;
  }
  
  .hero-card.is-in{ opacity: 1; transform: translateY(0) scale(1); }
  
  /* ✅ laterales arriba */
  .hero-card-left,
  .hero-card-right{
    transform: translateY(-50px) scale(.985);
  }
  .hero-card-left.is-in,
  .hero-card-right.is-in{
    transform: translateY(-50px) scale(1);
  }
  
  /* ✅ central MÁS ABAJO para que NO tape CTAs */
  .hero-card-center{
    transform: translateY(16px) scale(.985);
  }
  .hero-card-center.is-in{
    transform: translateY(65px) scale(1);
  }
  
  /* hover card */
  .hero-card:hover{
    box-shadow: var(--shadow-hover);
  }
  .hero-card-left:hover,
  .hero-card-right:hover{
    transform: translateY(-58px) scale(1.01);
  }
  .hero-card-center:hover{
    transform: translateY(68px) scale(1.01);
  }
  
  /* tamaños */
  .hero-card-vertical .hero-card-body{
    min-height: 340px;
    padding: 130px 24px 28px;
  }
  .hero-card-horizontal .hero-card-body{
    min-height: 300px;
    padding: 150px 24px 28px;
  }
  
  /* media (imagen sobresale) */
  .hero-card-media{
    position: absolute;
    top: -82px;
    left: 50%;
    transform: translateX(-50%);
    width: min(230px, 70%);
    pointer-events: none;
    will-change: transform;
    transition: transform .28s cubic-bezier(.2,.8,.2,1);
  }
  .hero-card-media-wide{
    top: -112px;
    width: min(760px, 98%);
  }
  
  .hero-card-img{
    width: 100%;
    height: auto;
    display: block;
    filter: drop-shadow(0 18px 35px rgba(0,0,0,.18));
  }
  .hero-card-img-wide{
    max-height: 280px;
    object-fit: contain;
  }

  .hero-card-img-wide-two {
    width: 210px;
  }
  
  /* body */
  .hero-card-body{
    border-radius: var(--radius-xl);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    text-align: center;
    gap: 14px;
  }
  
  /* degradado: blanco arriba, color abajo */
  .hero-grad-green{
    background: linear-gradient(180deg, rgba(255,255,255,1) 0%, rgba(0,129,128,.92) 100%);
  }
  .hero-grad-orange{
    background: linear-gradient(180deg, rgba(255,255,255,1) 0%, rgba(216,118,37,.92) 100%);
  }
  .hero-grad-amber{
    background: linear-gradient(180deg, rgba(255,255,255,1) 0%, rgba(211,158,41,.92) 100%);
  }
  
  .hero-card-title{
    margin: 0;
    color: #fff;
    font-weight: 800;
    line-height: 1.05;
    font-size: clamp(20px, 2.0vw, 28px);
    text-shadow: 0 8px 24px rgba(0,0,0,.18);
  }
  
  /* botón outline */
  .btn-nomi-outline{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 18px;
    border-radius: 16px;
    border: 2px solid rgba(255,255,255,.86);
    color: #fff;
    font-weight: 800;
    text-decoration: none;
    transition: transform .18s ease, background .18s ease, border-color .18s ease;
    backdrop-filter: blur(6px);
    background: rgba(255,255,255,.08);
  }
  .btn-nomi-outline:hover{
    transform: translateY(-2px);
    background: rgba(255,255,255,.14);
    border-color: rgba(255,255,255,.98);
  }
  
  /* ✅ HOVER SOLO EN CARD: imagen se mueve lateral y poquito arriba */
  .hero-card:hover .hero-card-media{
    transform: translateX(calc(-50% - 10px)) translateY(-10px);
  }
  .hero-card-left:hover .hero-card-media{
    transform: translateX(calc(-50% - 14px)) translateY(-10px);
  }
  .hero-card-right:hover .hero-card-media{
    transform: translateX(calc(-50% + 14px)) translateY(-10px);
  }
  .hero-card-center:hover .hero-card-media-wide{
    transform: translateX(-50%) translateY(-12px);
  }
  
  /* ===== ORBS (subidas y sin tapar CTAs/textos) ===== */
  .hero-orbs{
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 4; /* arriba de cards */
  }
  
  .orb{
    position: absolute;
    width: 62px;
    height: 62px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    box-shadow: 0 16px 38px rgba(0,0,0,.10);
    backdrop-filter: blur(8px);
    background: rgba(255,255,255,.70);
    animation: floaty 5.2s ease-in-out infinite;
  }
  
  .orb i{
    font-size: 22px;
    color: rgba(0, 129, 128, .86);
  }
  
  .orb-back{
    position: absolute;
    inset: -10px;
    border-radius: 999px;
    z-index: -1;
  }
  .orb-back-green{ background: radial-gradient(circle, var(--soft-green), transparent 65%); }
  .orb-back-orange{ background: radial-gradient(circle, var(--soft-orange), transparent 65%); }
  .orb-back-amber{ background: radial-gradient(circle, var(--soft-amber), transparent 65%); }
  
  @keyframes floaty{
    0%,100%{ transform: translate3d(0,0,0); }
    50%{ transform: translate3d(0,-10px,0); }
  }
  
  /* posiciones */
  .orb-1{ left: 7%;  top: 16%; animation-delay: .10s; }
  .orb-2{ left: 20%; top: 28%; animation-delay: .50s; }
  
  /* ✅ estas dos van arriba del título:
     una cerca del inicio de “Sistema” (S)
     otra cerca de “de” */
  .orb-s { left: 10%; top: 3%; animation-delay: .22s; }
  .orb-de{ left: 90%; top: 6%; animation-delay: .62s; }
  
  .orb-5{ right: 20%; top: 18%; animation-delay: .35s; }
  .orb-6{ right: 7%;  top: 30%; animation-delay: .80s; }
  
  /* entrada: centro -> izq -> der */
  .hero-card[data-anim="center"]{ transition-delay: .05s; }
  .hero-card[data-anim="left"]  { transition-delay: .18s; }
  .hero-card[data-anim="right"] { transition-delay: .32s; }
  
  /* Responsive */
  @media (max-width: 992px){
    .hero-cards{
      grid-template-columns: 1fr;
      align-items: stretch;
    }
  
    /* en mobile, todo normal */
    .hero-card-left,
    .hero-card-right,
    .hero-card-center{
      transform: translateY(18px) scale(.985);
    }
    .hero-card-left.is-in,
    .hero-card-right.is-in,
    .hero-card-center.is-in{
      transform: translateY(0) scale(1);
    }
  
    .orb{ width: 56px; height: 56px; }
    .orb i{ font-size: 20px; }
  
    .orb-1{ left: 6%; top: 10%; }
    .orb-2{ left: 18%; top: 20%; }
    .orb-s{ left: 40%; top: 8%; }
    .orb-de{ left: 58%; top: 10%; }
    .orb-5{ right: 18%; top: 12%; }
    .orb-6{ right: 6%; top: 22%; }
  }


  /* ===== Aparecer (head) ===== */
.hero-head .hero-title,
.hero-head .hero-subtitle,
.hero-head .hero-ctas{
  opacity: 0;
  transform: translateY(14px);
  filter: blur(6px);
  transition: opacity .7s ease, transform .75s cubic-bezier(.2,.8,.2,1), filter .7s ease;
  will-change: opacity, transform, filter;
}

.hero-head.is-in .hero-title{
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
  transition-delay: .05s;
}

.hero-head.is-in .hero-subtitle{
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
  transition-delay: .18s;
}

.hero-head.is-in .hero-ctas{
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
  transition-delay: .32s;
}

/* Por accesibilidad: si el usuario prefiere menos animación */
@media (prefers-reduced-motion: reduce){
  .hero-head .hero-title,
  .hero-head .hero-subtitle,
  .hero-head .hero-ctas{
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
  }
}




/* ================================
   AJUSTE CELULAR – CARD DERECHA
   ================================ */

/* Contenedor de la imagen */
.hero-card-right .hero-card-media{
    top: -64px;                 /* menos invasivo */
    width: min(180px, 58%);     /* MÁS PEQUEÑO */
    transform: translateX(-44%);/* lo recorre un poco a la derecha */
    z-index: 30;
 
  }
  
  /* Imagen */
  .hero-card-right .hero-card-img{
    max-height: 260px;          /* controla alto real */
    object-fit: contain;
  }
  
  /* Asegura que el texto esté arriba */
  .hero-card-right .hero-card-body{
    position: relative;
    z-index: 2;
  }
  
  /* Hover: movimiento lateral sutil (no invade texto) */
  .hero-card-right:hover .hero-card-media{
    transform: translateX(-38%) translateY(-10px);
  }
  
  






/* =========================================
   Nuestro numeros
   ========================================= */

   .clients-puller{
    --clients-bg: #bebebe25;     /* tu fondo */
    background: var(--clients-bg);
    padding: clamp(44px, 6vw, 84px) 0;
  }
  
  .clients{
    position: relative;
  }
  
  .clients .container{
    max-width: min(1200px, 92vw);
    margin: 0 auto;
    padding: 0 clamp(16px, 4vw, 28px);
  }
  
  .clients-head{
    text-align:center;
    margin-bottom: clamp(26px, 5vw, 44px);
  }
  
  .clients-head h2{
    margin: 0 0 12px;
    font-weight: 800;
    color: var(--nl-green);
    font-size: clamp(26px, 4.2vw, 46px);
    line-height: 1.08;
  }
  
  .clients-head p{
    margin: 0;
    color: var(--nl-muted);
    font-size: clamp(14px, 1.2vw, 16px);
    line-height: 1.45;
  }
  
  /* =========================
     ROW: MATA “CARD” (overrides)
     ========================= */
  .clients .logo-row{
    position: relative;
    width: 100%;
    overflow: hidden;
  
    /* 🔥 adiós card */
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
  
    padding: 16px 0;
    margin-top: 14px;
  
    /* ✅ Fade SOLO a contenido (logos), NO al fondo */
    -webkit-mask-image: linear-gradient(
      to right,
      transparent 0%,
      #000 10%,
      #000 90%,
      transparent 100%
    );
    mask-image: linear-gradient(
      to right,
      transparent 0%,
      #000 10%,
      #000 90%,
      transparent 100%
    );
  }
  
  /* Track animado */
  .clients .track{
    display: inline-flex;
    align-items: center;
    gap: clamp(18px, 3vw, 42px);
    will-change: transform;
  
    /* el JS setea --clientsMove y --clientsDur */
    animation: clients-marquee var(--clientsDur, 26s) linear infinite;
  }
  
  /* Dirección por atributo */
  .clients .logo-row[data-direction="rtl"] .track{
    animation-direction: reverse;
  }
  
  /* Pausa en hover (y JS también fuerza pausa en hover sobre logo) */
  .clients .logo-row.is-paused .track,
  .clients .logo-row:hover .track{
    animation-play-state: paused;
  }
  
  /* Logo wrapper */
  .clients .logo{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 6px;
    border-radius: 12px;
    text-decoration: none;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
  
    /* 🔥 por si alguien tenía background global en <a> */
    background: transparent !important;
    box-shadow: none !important;
  }
  
  /* Imagen de logo */
  .clients .logo img{
    height: clamp(26px, 3.2vw, 46px);
    width: auto;
    max-width: 190px;
    object-fit: contain;
  
    filter: grayscale(1) saturate(0) opacity(.70);
    transition: filter .22s ease, transform .22s ease;
  }
  
  /* Hover: se colorea + “pop” */
  .clients .logo:hover img{
    filter: grayscale(0) saturate(1) opacity(1);
    transform: translateY(-1px) scale(1.02);
  }
  
  /* Separación entre filas */
  .clients .logo-row + .logo-row{
    margin-top: 16px;
  }
  
  /* =========================
     MOBILE: 425px -> 1 sola fila
     ========================= */
  @media (max-width: 425px){
    .clients .logo-row + .logo-row{ display: none; }
  
    .clients .logo-row{
      padding: 12px 0;
      -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 12%, #000 88%, transparent 100%);
      mask-image: linear-gradient(to right, transparent 0%, #000 12%, #000 88%, transparent 100%);
    }
  
    .clients .track{ gap: 18px; }
  
    .clients .logo img{
      height: 34px;
      max-width: 160px;
    }
  }
  
  /* Accesibilidad */
  @media (prefers-reduced-motion: reduce){
    .clients .track{
      animation: none !important;
      transform: none !important;
    }
    .clients .logo img{
      filter: none !important;
      opacity: 1 !important;
    }
  }
  
  /* Animación base: JS define distancia exacta */
  @keyframes clients-marquee{
    from{ transform: translateX(0); }
    to{ transform: translateX(var(--clientsMove, -50%)); }
  }
  
  
  















  /* ===== PUENTE: De clientes -> Funcionalidades (con stack laptop+phone) ===== */

.nl-bridge{
  background:#fff;
  padding: clamp(72px, 10vw, 140px) 0;
  margin: 60px 0;

}

/* === REVEAL ON SCROLL para .nl-bridge === */
/* Estado base: oculto con leve desplazamiento */
.nl-bridge,
.nl-bridge .nlb-copy > *,
.nl-bridge .nlb-bubbles .b,
.nl-bridge .nlb-device {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .55s ease, transform .55s ease;
  will-change: opacity, transform;
}

/* Cuando entra en viewport */
.nl-bridge.is-in { opacity: 1; transform: none; }
.nl-bridge.is-in .nlb-copy > *   { opacity: 1; transform: none; }

/* Stagger suave para elementos de texto */
.nl-bridge .nlb-copy > *:nth-child(1) { transition-delay: .05s; }
.nl-bridge .nlb-copy > *:nth-child(2) { transition-delay: .15s; }
.nl-bridge .nlb-copy > *:nth-child(3) { transition-delay: .25s; }

/* Respeta accesibilidad */
@media (prefers-reduced-motion: reduce){
  .nl-bridge,
  .nl-bridge .nlb-copy > *,
  .nl-bridge .nlb-bubbles .b,
  .nl-bridge .nlb-device {
    transition: none !important;
    transform: none !important;
    opacity: 1 !important;
  }
}

/* === Layout base de la sección === */
.nl-bridge .nlb-container{
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 clamp(16px, 4vw, 28px);
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
}

/* === Texto === */
.nlb-copy h2{
  font-weight: 800;
  color:#008180;
  line-height: 1.06;
  letter-spacing: .2px;
  font-size: clamp(32px, 5vw, 50px);
  margin: 0 0 clamp(22px, 3vw, 34px);
}
.nlb-copy h2 .nlb-accent{ color:#d87625; font-weight: 800; }
.nlb-copy p{
  margin: 0 0 clamp(24px, 3.5vw, 36px);
  color:#385353;
  font-size: clamp(14px, 1.6vw, 16px);
  max-width: 62ch;
}

/* === CTAs === */
.nlb-ctas{ display:flex; gap: clamp(14px, 2vw, 20px); flex-wrap:wrap; }
.nlb-btn{
  display:inline-flex; align-items:center; justify-content:center;
  text-decoration:none; font-weight:700;
  border-radius:12px; padding:14px 22px; border:2px solid transparent;
  transition: transform .2s ease, box-shadow .25s ease, background .25s ease, color .25s ease, border-color .25s ease;
}
.nlb-primary{ background:#008180; color:#fff; box-shadow: 0 12px 28px rgba(0,129,128,.22); }
.nlb-primary:hover{ transform: translateY(-2px); background:#0eb9b9; box-shadow: 0 16px 36px rgba(14,185,185,.28); }
.nlb-ghost{ background:#fff; color:#d87625; border-color:#d87625; }
.nlb-ghost:hover{ background:#d87625; color:#fff; box-shadow: 0 12px 28px rgba(216,118,37,.22); transform: translateY(-2px); }

/* === Media (stack de laptop + teléfono; burbujas delante) === */
.nlb-media{
  position: relative;
  display: grid; place-items: center;
  min-height: 420px;
  isolation: isolate; /* asegura capas independientes */
}

/* Contenedor/escena para posicionar los devices */
.nlb-stack{
  position: relative;
  z-index: 1; /* debajo de las burbujas */
  width: clamp(260px, 42vw, 560px);
  aspect-ratio: 16 / 11;  /* lienzo flexible para posicionamiento */
}

/* Base para ambos dispositivos */
.nlb-device{
  position: absolute;
  display: block;
  width: auto; height: auto;
  max-width: 100%;
  pointer-events: none;
  filter: drop-shadow(0 18px 40px rgba(11,25,45,.18));
  transform-origin: center;
}

/* Laptop detrás, centrada, con ligera rotación */
.nlb-laptop{
  left: 0; right: 0; margin: 0 auto;
  bottom: -35px;
  width: clamp(240px, 38vw, 520px);
  transform: translateY(14px) rotate(-8deg) scale(.98);
  opacity: 0;
  animation: nlb-floatY 6.5s ease-in-out infinite;
  animation-delay: .2s;
}

/* Teléfono delante, a la derecha, más pequeño */
.nlb-phone{
  right: clamp(-6px, -2vw, -20px);
  bottom: -100px;
  width: clamp(120px, 18vw, 220px);
  transform: translateY(1px) rotate(10deg) scale(1);
  opacity: 0;
  z-index: 2;
  animation: nlb-floatY 6.5s ease-in-out infinite;
  animation-delay: .5s;
}

/* Reveal (sección visible): aparecen con stagger */
.nl-bridge.is-in .nlb-laptop{
  opacity: 1;
  transform: rotate(-8deg) scale(1);
  transition-delay: .30s;
}
.nl-bridge.is-in .nlb-phone{
  opacity: 1;
  transform: rotate(10deg) scale(1);
  transition-delay: .45s;
}

/* Flotación vertical sutil (aplicada a ambos) */
@keyframes nlb-floatY{
  0%,100%{ transform: translateY(0) rotate(var(--r,0deg)) }
  50%    { transform: translateY(-10px) rotate(var(--r,0deg)) }
}

/* === Burbujas decorativas al frente === */
.nlb-bubbles .b{
  position: absolute;
  z-index: 3; /* sobre los devices */
  width: 90px; height: 90px;
  border-radius: 50%;
  display:grid; place-items:center;
  font-size: 30px; color:#0b2e2e;
  box-shadow: 0 10px 24px rgba(0,0,0,.08), inset 0 0 0 1px rgba(255,255,255,.55);
  animation: nlb-float 6s ease-in-out infinite;
  will-change: transform;
  pointer-events: none;
  opacity: 0; transform: translateY(14px);
}

/* Reveal de burbujas (con pequeño retraso) */
.nl-bridge.is-in .nlb-bubbles .b { opacity:1; transform:none; }
.nl-bridge.is-in .nlb-bubbles .b1 { transition-delay:.40s; }
.nl-bridge.is-in .nlb-bubbles .b2 { transition-delay:.50s; }
.nl-bridge.is-in .nlb-bubbles .b3 { transition-delay:.60s; }
.nl-bridge.is-in .nlb-bubbles .b4 { transition-delay:.70s; }

/* Posiciones de burbujas (ajustadas al stack) */
.nlb-bubbles .b1{ left:-6%;  top:  2%; background:#e7faf9; color:#008180; animation-delay: .0s; }
.nlb-bubbles .b2{ right:-10%; top:16%; background:#fff2e8; color:#d87625; animation-delay: .4s; }
.nlb-bubbles .b3{ left: 4%;  bottom:-6%; background:#e9fbfb; color:#008180; animation-delay: .8s; }
.nlb-bubbles .b4{ right:-6%; bottom:-10%; background:#fff7ef; color:#d87625; animation-delay: 1.2s; }

@keyframes nlb-float{
  0%,100%{ transform: translateY(0) }
  50%    { transform: translateY(-14px) }
}

/* === Responsive === */
@media (max-width: 992px){
  .nl-bridge .nlb-container{ grid-template-columns: 1fr; }
  .nlb-media{ order: -1; } /* imagen arriba en tablet/móvil */
  .nlb-copy h2, .nlb-copy p{ text-align: center; margin-inline:auto; }
  .nlb-ctas{ justify-content:center; }

  .nlb-stack{
    width: clamp(280px, 56vw, 520px);
    aspect-ratio: 16 / 12;
  }
  .nlb-laptop{
    width: clamp(260px, 52vw, 500px);
  }
  .nlb-phone{
    right: clamp(-10px, -2vw, -16px);
    width: clamp(140px, 24vw, 220px);
  }
}

@media (max-width: 620px){
  /* Menos giro para que no se salga del viewport */
  .nlb-laptop{ transform: rotate(-5deg); }
  .nlb-phone{ right: -6px; transform: rotate(8deg); }
  .nlb-bubbles .b{ transform: scale(.92); }
}

/* Accesibilidad: desactivar animaciones si el usuario lo pidió */
@media (prefers-reduced-motion: reduce){
  .nlb-device{ animation: none !important; }
}


/* =========================================
   FIX DEFINITIVO (PUENTE)
   - Sin espacios raros laterales
   - Sin recortar laptop/phone
   - Todo 100% visible en desktop y mobile
   Pegar al FINAL del CSS
   ========================================= */

/* El área visual debe contener todo SIN empujar el viewport */
.nlb-media{
  position: relative;
  overflow: visible;              /* no recorta */
  padding-inline: 0;              /* evita “aire” raro */
}

/* El lienzo: asegura que TODO quepa dentro del viewport */
.nlb-stack{
  position: relative;
  width: clamp(260px, 42vw, 560px);
  aspect-ratio: 16 / 11;
  overflow: visible;              /* no recortes */
}

/* Los devices: que se adapten bien y NO generen overflow lateral por sombras/transform */
.nlb-device{
  max-width: 100%;
  height: auto;
  will-change: transform;
  transform: translateZ(0);
}

/* ✅ CLAVE: elimina offsets negativos que causan “espacios raros” */
.nlb-phone{ right: 6px; }         /* antes: clamp negativo */
.nlb-bubbles .b1{ left:  2%; }    /* antes: -6% */
.nlb-bubbles .b2{ right: 2%; }    /* antes: -10% */
.nlb-bubbles .b3{ left:  6%; }    /* antes: 4% + bottom negativo */
.nlb-bubbles .b4{ right: 6%; }    /* antes: -6% */

/* Ajuste para que el phone “se sienta” afuera SIN salirse del viewport:
   (usamos translate en vez de right negativo) */
.nlb-phone{
  transform: translate(10%, 0) rotate(10deg) scale(1);
}

/* Laptop centrada OK, pero evita bottoms agresivos que invaden la siguiente sección */
.nlb-laptop{
  bottom: -18px;                  /* antes: -35px */
}

/* MOBILE: aquí es donde más se rompe, así que lo dejamos blindado */
@media (max-width: 992px){
  /* dale más “alto útil” para que no se monten secciones */
  .nlb-media{
    min-height: auto;
    padding-bottom: 110px;        /* ✅ evita que se “coma” la sección de abajo */
  }

  .nlb-stack{
    width: min(520px, 92vw);      /* ✅ nunca más ancho que el viewport */
    aspect-ratio: 16 / 12;
  }

  .nlb-laptop{
    width: min(500px, 90vw);
    bottom: -10px;                /* menos invasivo */
  }

  .nlb-phone{
    width: clamp(140px, 28vw, 220px);
    right: 10px;                  /* dentro */
    bottom: -70px;                /* “flota” sin cortar */
    transform: translate(0, 0) rotate(10deg) scale(1);
  }
}

@media (max-width: 620px){
  .nlb-media{ padding-bottom: 130px; } /* un pelín más */
  .nlb-phone{
    right: 8px;
    bottom: -78px;
  }

  /* burbujas contenidas SIN negativos */
  .nlb-bubbles .b1{ left:  2% !important; }
  .nlb-bubbles .b2{ right: 2% !important; }
  .nlb-bubbles .b3{ left:  2% !important; bottom: 2% !important; }
  .nlb-bubbles .b4{ right: 2% !important; bottom: 2% !important; }
}

/* Extra: por si algún contenedor padre mete overflow raro */
.nl-bridge{
  overflow-x: clip;               /* corta SOLO lo que se salga en X sin crear scroll */
}
@supports not (overflow: clip){
  .nl-bridge{ overflow-x: hidden; }
}




















/* =========================================
   FEATURES PRO (Nomilinea) – PRO/COMPACT
   Fondo verde + cards compactas (3 por fila)
   Hover glass naranja + reveal on scroll
   ========================================= */



   
   .nl-features-pro{
    position: relative;
    background: var(--nl-green);
    padding: clamp(56px, 6vw, 92px) 0;
    overflow: hidden;
    isolation: isolate;
  }
  
  /* blobs decor (súper sutiles, no estorban) */
  .nl-features-pro .nlf-bg{
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    opacity: .35;
  }
  
  .nl-features-pro .nlf-bg .blob{
    position: absolute;
    width: clamp(280px, 40vw, 520px);
    height: clamp(280px, 40vw, 520px);
    border-radius: 999px;
    filter: blur(40px);
    background: radial-gradient(circle, rgba(255,255,255,.14), rgba(255,255,255,0) 60%);
    transform: translateZ(0);
  }
  
  .nl-features-pro .nlf-bg .b1{ left:-12%; top:-18%; }
  .nl-features-pro .nlf-bg .b2{ right:-16%; top:10%;  }
  .nl-features-pro .nlf-bg .b3{ left:12%; bottom:-24%; }
  
  /* container */
  .nl-features-pro .nlf-container{
    position: relative;
    z-index: 1;
    max-width: min(1200px, 92vw);
    margin: 0 auto;
    padding: 0 clamp(16px, 4vw, 28px);
  }
  
  /* head */
  .nl-features-pro .nlf-head{
    text-align: center;
    margin-bottom: clamp(24px, 3.8vw, 44px);
  }
  
  .nl-features-pro .nlf-head h2{
    margin: 0 0 12px;
    color: #fff;
    font-weight: 900;
    letter-spacing: .2px;
    line-height: 1.05;
    font-size: clamp(28px, 4.4vw, 54px);
  }
  
  .nl-features-pro .nlf-head p{
    margin: 0 auto;
    max-width: 70ch;
    color: rgba(255,255,255,.86);
    font-size: clamp(14px, 1.25vw, 16px);
    line-height: 1.55;
  }
  
  /* grid */
  .nl-features-pro .nlf-grid{
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(14px, 2vw, 22px);
  }
  
  /* responsive */
  @media (max-width: 992px){
    .nl-features-pro .nlf-grid{ grid-template-columns: repeat(2, 1fr); }
  }
  @media (max-width: 560px){
    .nl-features-pro .nlf-grid{ grid-template-columns: 1fr; }
  }
  
  /* card (compacta, minimal) */
  .nl-features-pro .nlf-card{
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 10px;
  
    padding: 18px 18px 16px;
    border-radius: 22px;
    text-decoration: none;
  
    /* mismo verde pero con glass */
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.14);
    box-shadow: 0 18px 46px rgba(0,0,0,.18);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
  
    min-height: 220px; /* ✅ compacta */
    transition:
      transform .22s ease,
      box-shadow .25s ease,
      border-color .25s ease,
      background .25s ease;
    overflow: hidden;
  }
  
  /* brillo naranja glass (hover) */
  .nl-features-pro .nlf-card::before{
    content:"";
    position: absolute;
    inset: -40%;
    background: radial-gradient(circle, rgba(216,118,37,.28), rgba(216,118,37,0) 60%);
    opacity: 0;
    transform: translateY(6px);
    transition: opacity .25s ease, transform .25s ease;
    pointer-events: none;
  }
  
  .nl-features-pro .nlf-card:hover{
    transform: translateY(-4px);
    border-color: rgba(216,118,37,.45);
    box-shadow: 0 26px 70px rgba(0,0,0,.22);
    background: rgba(255,255,255,.10);
  }

  .nl-features-pro .nlf-card:hover::before{
    opacity: 1;
    transform: translateY(0);
  }
  
  /* icon badge */
  .nl-features-pro .nlf-icon{
    width: 56px;
    height: 56px;
    border-radius: 18px;
    display: grid;
    place-items: center;
  
    background: rgba(255,255,255,.12);
    border: 1px solid rgba(255,255,255,.16);
    box-shadow: 0 14px 30px rgba(0,0,0,.16);
  
    transition: transform .22s ease, border-color .22s ease, background .22s ease;
  }
  
  .nl-features-pro .nlf-icon i{
    font-size: 28px;
    color: #fff;
    opacity: .92;
  }
  
  /* hover icon naranja */
  .nl-features-pro .nlf-card:hover .nlf-icon{
    transform: translateY(-1px) scale(1.03);
    border-color: rgba(216,118,37,.55);
    background: rgba(216,118,37,.14);
  }
  
  /* title + text */
  .nl-features-pro .nlf-card h3{
    margin: 2px 0 0;
    color: #fff;
    font-weight: 800;
    font-size: 20px;
    line-height: 1.15;
  }
  
  .nl-features-pro .nlf-card p{
    margin: 0;
    color: rgba(255,255,255,.84);
    line-height: 1.55;
    font-size: 14px;
    max-width: 52ch;
  }
  
  /* CTA */
  .nl-features-pro .nlf-link{
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    gap: 8px;
  
    color: rgba(255,255,255,.92);
    font-weight: 800;
    font-size: 14px;
    letter-spacing: .02em;
  }
  
  .nl-features-pro .nlf-link i{
    font-size: 20px;
    transition: transform .22s ease;
  }
  .nl-features-pro .nlf-card:hover .nlf-link i{
    transform: translateX(4px);
  }
  
  /* compact tighter in small */
  @media (max-width: 425px){
    .nl-features-pro{ padding: 52px 0; }
    .nl-features-pro .nlf-card{
      padding: 16px 16px 14px;
      border-radius: 20px;
      min-height: 200px;
    }
    .nl-features-pro .nlf-card h3{ font-size: 18px; }
    .nl-features-pro .nlf-icon{ width: 52px; height: 52px; border-radius: 16px; }
  }
  
  /* =========================
     REVEAL ON SCROLL (states)
     ========================= */
  .nl-features-pro .nlf-head > *{
    opacity: 0;
    transform: translateY(14px);
    transition: opacity .55s ease, transform .55s cubic-bezier(.18,.88,.34,1.1);
  }
  .nl-features-pro .nlf-card{
    opacity: 0;
    transform: translateY(16px) scale(.985);
    transition:
      opacity .55s ease,
      transform .55s cubic-bezier(.18,.88,.34,1.1),
      box-shadow .25s ease,
      border-color .25s ease,
      background .25s ease;
    will-change: transform, opacity;
  }
  
  .nl-features-pro.is-in .nlf-head > *{
    opacity: 1;
    transform: none;
  }
  .nl-features-pro.is-in .nlf-card.is-in{
    opacity: 1;
    transform: none;
  }
  
  /* Accesibilidad */
  @media (prefers-reduced-motion: reduce){
    .nl-features-pro .nlf-head > *,
    .nl-features-pro .nlf-card{
      opacity: 1 !important;
      transform: none !important;
      transition: none !important;
    }
    .nl-features-pro .nlf-card::before{ display:none !important; }
  }

  /* ===== Features: limitar cards por breakpoint + botón ===== */

.features-more-wrap{
  display:flex;
  justify-content:center;
  margin-top: 22px;
}

#featuresMoreBtn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: 14px;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  border: 2px solid #008180;
  color:#008180;
  background:#fff;
  transition: transform .2s ease, box-shadow .25s ease, background .25s ease, color .25s ease, border-color .25s ease;
}

#featuresMoreBtn:hover{
  transform: translateY(-2px);
  background:#008180;
  color:#fff;
  box-shadow: 0 12px 28px rgba(0,129,128,.22);
}

/* clase que el JS aplica para ocultar */
.is-hidden{
  display: none !important;
}




/* ===== Features: limitar cards por breakpoint + botón ===== */

.features-more-wrap{
  display:flex;
  justify-content:center;
  margin-top: 22px;
}

.features-more-btn{
  display:none; /* por default oculto (desktop) */
  align-items:center !important;
  justify-content:center;
  gap: 10px;
  text-align: center;
  padding: 14px 22px;
  border-radius: 14px;
  font-weight: 800;
  cursor: pointer;
  border: 2px solid #008180;
  color:#008180;
  background:#fff;
  transition: transform .2s ease, box-shadow .25s ease, background .25s ease, color .25s ease, border-color .25s ease;
}

.features-more-btn:hover{
  transform: translateY(-2px);
  background:#008180;
  color:#fff;
  box-shadow: 0 12px 28px rgba(0,129,128,.22);
}

/* Clase que el JS aplica para ocultar cards (solo en <=768) */
.nl-features-pro .nlf-card.is-hidden{
  display: none !important;
}

/* El botón SOLO existe en <=768 */
@media (max-width: 768px){
  .features-more-btn{ display:inline-flex; }
}
















/* =========================
   NOMILINEA - TU NÓMINA EN 4 PASOS
========================= */
/* =========================
   NOMILINEA - TU NÓMINA EN 4 PASOS
========================= */

.nl-steps{
  padding: clamp(44px, 6vw, 80px) 0;
  background: #fff;
  margin-top: 70px;
  margin-bottom: 50px;
}

.nl-steps__wrap{
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
}

/* Header layout */
.nl-steps__head{
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  align-items: start;
  gap: clamp(18px, 3vw, 44px);
  margin-bottom: 80px;
}

.nl-steps__title{
  margin: 0;
  line-height: .92;
  letter-spacing: -0.03em;
  font-weight: 800 !important;
  font-size: clamp(44px, 6vw, 86px);
}

.nl-steps__title-orange{
  color: #d87625;
  font-weight: 800 !important;
}

.nl-steps__title-green{
  color: #008180;
  font-weight: 800 !important;
}

.nl-steps__head-left h2{
  font-weight: 800 !important;
}

.nl-steps__desc{
  margin: 0 0 14px;
  color: rgba(0,0,0,.78);
  font-size: clamp(15px, 1.45vw, 20px);
  line-height: 1.45;
}

/* CTA */
.nl-steps__cta{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  border-radius: 999px;
  background: #d87625;
  color: #fff;
  text-decoration: none;
  font-weight: 800;
  box-shadow: 0 14px 34px rgba(216,118,37,.22);
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}
.nl-steps__cta i{ font-size: 22px; }
.nl-steps__cta:hover{
  transform: translateY(-2px);
  box-shadow: 0 20px 52px rgba(216,118,37,.28);
  filter: saturate(1.03);
}

/* Cards grid */
.nl-steps__grid{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(14px, 1.8vw, 18px);
}

/* Card */
.nl-step-card{
  background: var(--card-bg);
  border-radius: 22px;
  padding: 18px 18px 16px;
  box-shadow: 0 18px 50px rgba(0,0,0,.08);
  position: relative;
  overflow: hidden;
  transition: transform .22s ease, box-shadow .22s ease;
}

.nl-step-card:hover{
  transform: translateY(-6px);
  box-shadow: 0 26px 70px rgba(0,0,0,.12);
}

/* (Opcional) glow suave detrás del área de imagen */
.nl-step-card::before{
  content: "";
  position: absolute;
  left: 18px;
  right: 18px;
  top: 120px;
  height: 160px;
  border-radius: 22px;
  background: radial-gradient(60% 70% at 50% 30%, rgba(255,255,255,.55), transparent 70%);
  opacity: .55;
  pointer-events: none;
  z-index: 0;
}

/* top area */
.nl-step-card__top{
  display: flex;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 12px;
  position: relative;
  z-index: 2;
}

.nl-step-card__title{
  margin: 0 0 8px;
  font-weight: 600;
  letter-spacing: -0.02em;
  font-size: 34px;
}

.nl-step-card__text{
  margin: 0;
  color: rgba(0,0,0,.75);
  line-height: 1.5;
  font-size: 15.5px;
  max-width: 28ch;
}

.nl-step-card__top-right{
  display: grid;
  justify-items: end;
  gap: 10px;
  min-width: 52px;
}

/* Icon + color chip */
.nl-step-card__icon{
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: rgba(255,255,255,.55);
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,.7);
  backdrop-filter: blur(6px);
}
.nl-step-card__icon i{
  font-size: 28px;
  color: rgba(0,0,0,.72);
}

.nl-step-card__chip{
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: var(--chip);
  opacity: .95;
}

/* =========================
   MEDIA IMAGE (SIN RECORTE + “FLOTANDO”)
========================= */

.nl-step-card__media{
  margin: 10px 0 12px;
  border-radius: 18px;
  overflow: visible;      /* clave: NO recorta */
  box-shadow: none;       /* quitamos la “caja” */
  position: relative;
  z-index: 2;
}

.nl-step-card__media img{
  width: 100%;
  height: 210px;
  object-fit: contain;     /* clave: se ve completa */
  object-position: center;
  display: block;

  /* Efecto flotante */
  transform: translateY(-10px) scale(1.02);
  filter: drop-shadow(0 18px 26px rgba(0,0,0,.18));
  transition: transform .35s cubic-bezier(.2,.9,.2,1), filter .35s ease;
  will-change: transform;
  pointer-events: none;
}

.nl-step-card:hover .nl-step-card__media img{
  transform: translateY(-18px) rotate(-1.2deg) scale(1.05);
  filter: drop-shadow(0 26px 36px rgba(0,0,0,.22));
}

/* ver detalle */
.nl-step-card__link{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 800;
  color: rgba(0,0,0,.78);
  background: rgba(255,255,255,.62);
  border: 1px solid rgba(255,255,255,.8);
  padding: 8px 12px;
  border-radius: 999px;
  transition: transform .18s ease, background .18s ease, box-shadow .18s ease;
  position: relative;
  z-index: 2;
}

.nl-step-card__arrow{
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: #fff;
  display: grid;
  place-items: center;
  box-shadow: 0 12px 26px rgba(0,0,0,.10);
  transition: transform .18s ease;
}

.nl-step-card__arrow i{
  font-size: 20px;
  color: rgba(0,0,0,.70);
}

.nl-step-card__link:hover{
  transform: translateY(-1px);
  background: rgba(255,255,255,.74);
  box-shadow: 0 14px 30px rgba(0,0,0,.10);
}

.nl-step-card__link:hover .nl-step-card__arrow{
  transform: translateY(-1px) rotate(10deg);
}

/* =========================
   SCROLL REVEAL (Aparecer)
========================= */
.reveal{
  opacity: 0;
  transform: translateY(18px);
  filter: blur(6px);
  transition: opacity .55s ease, transform .55s cubic-bezier(.2,.9,.2,1), filter .55s ease;
  will-change: opacity, transform;
}

.reveal.is-inview{
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

/* stagger para cards */
.nl-step-card.reveal.is-inview{
  transition-delay: var(--delay, 0ms);
}

/* =========================
   DOTS (base: ocultos)
========================= */
.nl-steps__dots{
  display: none;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 14px;
}

.nl-steps__dot{
  width: 10px;
  height: 10px;
  border-radius: 999px;
  border: 0;
  background: rgba(0,0,0,.18);
  cursor: pointer;
  transition: transform .18s ease, width .18s ease, background .18s ease, opacity .18s ease;
  padding: 0;
}

.nl-steps__dot.is-active{
  width: 34px;
  background: rgba(0,129,128,.65);
}

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 1100px){
  .nl-steps__grid{ grid-template-columns: repeat(2, 1fr); }
  .nl-step-card__media img{ height: 220px; }
}

@media (max-width: 860px){
  .nl-steps__head{
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .nl-steps__cta{ width: fit-content; }
  .nl-step-card__text{ max-width: none; }
}

/* 👇 A 768px: centrar título + texto + botón */
@media (max-width: 768px){
  .nl-steps__head{
    text-align: center;
    justify-items: center;
  }
  .nl-steps__head-left,
  .nl-steps__head-right{
    display: grid;
    justify-items: center;
  }
  .nl-steps__desc{
    text-align: center;
  }
}

@media (max-width: 540px){
  .nl-steps__wrap{ width: min(1200px, calc(100% - 20px)); }
  .nl-steps__grid{ grid-template-columns: 1fr; }
  .nl-step-card{ padding: 16px 16px 14px; }
  .nl-step-card__title{ font-size: 30px; }
  .nl-step-card__media img{ height: 230px; }
}

/* 👇 A 425px: CARRUSEL (y todo menor sigue carrusel) */
@media (max-width: 425px){
  .nl-steps__grid{
    display: flex;
    gap: 14px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 6px;
    scrollbar-width: none;
  }
  .nl-steps__grid::-webkit-scrollbar{ display: none; }

  .nl-step-card{
    flex: 0 0 88%;
    scroll-snap-align: center;
    scroll-snap-stop: always;
    transform: none;
  }

  .nl-step-card:hover{
    transform: none;
  }

  /* En carrusel: hover no se usa mucho, bajamos el movimiento para evitar saltos */
  .nl-step-card:hover .nl-step-card__media img{
    transform: translateY(-12px) scale(1.03);
  }

  .nl-steps__dots{
    display: flex;
  }
}

/* ✅ FIX: alinear "Ver detalle" en la misma línea en todas las cards */
.nl-step-card{
  display: flex;              /* vuelve la card un contenedor flexible */
  flex-direction: column;     /* todo en columna */
}

.nl-step-card__media{
  margin-top: auto;           /* empuja la imagen hacia abajo de forma estable */
}

.nl-step-card__link{
  margin-top: 12px;           /* espacio consistente arriba del botón */
  align-self: flex-start;     /* mantiene el botón alineado a la izquierda */
}












/* ===== CERTIFICACIONES (LIMPIO + MINIMAL) ===== */
:root{
  --cert-size: clamp(140px, 22vw, 180px);
  --nomi: #008180;
  --ink: #0e2b2b;
  --shadow: 0 10px 28px rgba(0,0,0,.08);
  --shadow-hover: 0 16px 48px rgba(0,0,0,.14);
}

/* Sección */
.nl-cert{
  background: #00818121; /* #d39e29 con transparencia */
  padding: clamp(48px,7vw,86px) 0;
  overflow: hidden;
}

/* Contenedor */
.nlc-container{
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 clamp(16px,4vw,32px);
}

/* Head */
.nlc-head{
  text-align: center;
}
.nlc-head h2{
  margin: 0 0 8px;
  color: var(--nomi);
  font-weight: 800;
  letter-spacing: .2px;
  font-size: clamp(26px,4.6vw,44px);
  text-transform: uppercase;
}
.nlc-head p{
  margin: 0;
  color: rgba(14,43,43,.86);
  font-size: clamp(14px,1.6vw,18px);
}

/* Grid (2 centradas) */
.nlc-grid{
  margin-top: clamp(18px,4vw,34px);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, var(--cert-size)));
  justify-content: center;
  gap: clamp(10px, 1.6vw, 22px);
}
@media (max-width: 680px){
  .nlc-grid{ grid-template-columns: 1fr; }
}

/* Card */
.nlc-card{
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  background: transparent;
}

/* Círculo */
.nlc-logo{
  width: var(--cert-size);
  height: var(--cert-size);
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255,255,255,.55);
  border: 1px solid rgba(0,0,0,.06);
  box-shadow: var(--shadow);
  transition: transform .22s ease, box-shadow .22s ease;
}

/* Imagen */
.nlc-logo img{
  max-width: 70%;
  max-height: 70%;
  object-fit: contain;
  transition: transform .22s ease;
}

/* Hover (coqueto, sin exagerar) */
.nlc-card:hover .nlc-logo{
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}
.nlc-card:hover .nlc-logo img{
  transform: scale(1.05);
}

/* Nombre */
.nlc-name{
  color: var(--ink);
  font-weight: 800;
  font-size: clamp(13px,1.5vw,15px);
  text-align: center;
}

/* Reveal (tu script agrega .is-in) */
.reveal{
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .5s ease, transform .5s ease;
}
.reveal.is-in{
  opacity: 1;
  transform: none;
}









/* ===== VIDEO SECTION ===== */
.nl-video{
  background: #fff;
  padding: clamp(72px, 9vw, 120px) 0;
}

.nlv-container{
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 clamp(16px, 4vw, 28px);
}

/* Head: título 50px, texto 16px, reveal on scroll */
.nlv-head{
  text-align: center;
  max-width: 900px;
  margin: 0 auto clamp(28px, 4vw, 48px);
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .45s ease, transform .45s ease;
  will-change: opacity, transform;
}
.nlv-head.is-in{
  opacity: 1;
  transform: none;
}
.nlv-head h2{
  margin: 0 0 10px;
  color: #008180;
  font-weight: 900;
  line-height: 1.06;
  font-size: clamp(28px, 5vw, 50px); /* 50px objetivo en desktop */
  letter-spacing: .2px;
}
.nlv-head p{
  margin: 0;
  color: #1f2b2b;
  font-size: clamp(14px, 1.6vw, 16px); /* 16px objetivo en desktop */
  opacity: .9;
}

/* Frame 16:9 responsivo con sombra y hover */
.nlv-frame{
  position: relative;
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  aspect-ratio: 16 / 9;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,.10);
  background: #f7faf9;
  transform: translateY(8px);
  opacity: 0;
  transition: transform .45s ease, opacity .45s ease, box-shadow .35s ease;
  will-change: transform, opacity;
}
.nlv-frame.is-in{
  opacity: 1;
  transform: none;
}
.nlv-frame:hover{
  box-shadow: 0 26px 80px rgba(0,0,0,.14);
}

/* El video/iframe ocupa todo el marco */
.nlv-embed{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

/* Acento sutil al enfocar */
.nlv-frame:focus-within{
  outline: 2px solid rgba(216,118,37,.55); /* naranja Nomi */
  outline-offset: 4px;
  border-radius: 20px;
}



/* Accesibilidad: sin animaciones si el usuario lo pide */
@media (prefers-reduced-motion: reduce){
  .nlv-head,
  .nlv-frame{
    transition: none !important;
    transform: none !important;
    opacity: 1 !important;
  }
}


/* Overlay tenue sobre el poster */
.nlv-frame::before{
  content:"";
  position:absolute; inset:0;
  background: rgba(0,0,0,.22);
  transition: opacity .25s ease;
  pointer-events:none;
  z-index:1;
}
.nlv-frame:hover::before{ opacity:.10; }

/* Botón Play centrado */
.nlv-play{
  position:absolute; left:50%; top:50%;
  transform:translate(-50%,-50%);
  width:78px; height:78px; border-radius:50%;
  border:0; cursor:pointer;
  display:grid; place-items:center;
  background: rgba(255,255,255,.92);
  box-shadow: 0 10px 30px rgba(0,0,0,.18);
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, opacity .2s ease;
  z-index:2;
}
.nlv-play::before{
  content:"";
  width:0; height:0;
  border-left:20px solid #0e2b2b;            /* triángulo play */
  border-top:12px solid transparent;
  border-bottom:12px solid transparent;
  margin-left:4px;
}
.nlv-frame:hover .nlv-play{
  transform:translate(-50%,-50%) scale(1.06);
  box-shadow: 0 14px 44px rgba(0,0,0,.22);
}
.nlv-play:focus-visible{
  outline:3px solid rgba(216,118,37,.7);
  outline-offset:4px;
  background:#fff;
}

/* Cuando el video ya está reproduciendo, ocultamos overlay y botón */
.nlv-frame.is-playing::before{ opacity:0; }
.nlv-frame.is-playing .nlv-play{ opacity:0; pointer-events:none; }

@media (max-width:560px){
  .nlv-play{ width:64px; height:64px; }
  .nlv-play::before{
    border-left-width:18px; border-top-width:11px; border-bottom-width:11px;
  }
}












/* ===== PROMO FULLSCREEN CAROUSEL ===== */
:root{
  --nomi:#008180;
  --accent:#d87625;
  --ink:#0e2b2b;
  --controls-h: 5px;        /* alto de la franja de controles */
  --controls-gap: 20px;      /* aire entre contenido y controles */
}

.nl-promo{
  position:relative;
  min-height: 80vh;          /* pantalla completa */
  background:#fff;
  overflow:hidden;
  isolation:isolate;
}

/* Fondo naranja: cubre slides + controles */
.nlp-overlay{
  position:absolute; inset:-8% -8%;
  background:
    radial-gradient(1100px 520px at 12% 10%, rgba(216,118,37,.14), transparent 55%),
    radial-gradient(950px 460px  at 88% 35%, rgba(216,118,37,.10), transparent 60%),
    rgba(216,118,37,.06);
  z-index:0;
  pointer-events:none;
  filter:saturate(1.02);
}

/* Wrapper principal */
.nlp-carousel{
  position: relative;
  z-index: 1;
  width: 100%;
  min-height: 70svh;        /* o 100vh si prefieres */
  /* height: auto;  <- implícito */
  max-width: 1280px;
  margin: 0 auto;
  padding-inline: clamp(24px, 4vw, 32px);
  padding-top:  clamp(36px, 6vw, 32px);
  display: grid;
  place-items: center;
}

/* Track: limita el área donde se apilan los slides
   y deja una canaleta inferior para los controles */
.nlp-track{
  position:absolute;
  inset: 0 0 calc(var(--controls-h) + var(--controls-gap)) 0;
}

/* Slides apilados (mantienen tu efecto) */
.nlp-slide{
  position:absolute; inset:0;
  padding:clamp(40px,6vw,60px);
  opacity:0;
  transform:translateX(6%) scale(.985);
  transition:opacity .45s ease, transform .45s ease;
  pointer-events:none;
  display:grid;
}
.nlp-slide.is-active{
  opacity:1;
  transform:none;
  pointer-events:auto;
}

/* Layout texto + imagen */
.nlp-grid{
  align-self:center;
  display:grid;
  grid-template-columns:1.05fr .95fr;
  gap:clamp(28px,5vw,80px);
  align-items:center;
}

/* Texto */
.nlp-copy h2{
  margin:0 0 12px;
  color:var(--ink);
  font-weight:700;
  letter-spacing:.2px;
  line-height:1.06;
  font-size:clamp(28px,5vw,50px);
}
.nlp-copy p{
  margin:0 0 18px;
  color:#223e3e;
  font-size:clamp(14px,1.6vw,18px);
  max-width:60ch;
}
.nlp-ctas{ display:flex; gap:14px; flex-wrap:wrap; }

/* CTAs */
.nlb-btn{
  display:inline-flex; align-items:center; justify-content:center;
  text-decoration:none; font-weight:700; border-radius:12px;
  padding:14px 22px; border:2px solid transparent;
  transition:transform .2s ease, box-shadow .25s ease, background .25s ease, color .25s ease, border-color .25s ease;
}
.nlb-primary{ background:#008180; color:#fff; box-shadow:0 12px 28px rgba(0,129,128,.22); }
.nlb-primary:hover{ transform:translateY(-2px); background:#0eb9b9; box-shadow:0 16px 36px rgba(14,185,185,.28); }
.nlb-ghost{ background:#fff; color:var(--accent); border-color:var(--accent); }
.nlb-ghost:hover{ background:var(--accent); color:#fff; box-shadow:0 12px 28px rgba(216,118,37,.22); transform:translateY(-2px); }

/* Imagen */
.nlp-media{ position:relative; display:grid; place-items:center; }
.nlp-media img{
  width:min(460px,80%);
  height:auto;
  filter:drop-shadow(0 18px 40px rgba(11,25,45,.18));
  transform:translateZ(0);
}




/* ===== CONTROLES (centrados abajo, globales) ===== */
.nlp-controls{
  position:absolute;
  left:50%; transform:translateX(-50%);
  bottom: clamp(14px, 2.8vh, 22px);
  display:flex; align-items:center; justify-content:center;
  gap: clamp(16px,3vw,36px);
  height: var(--controls-h);
}

/* ===== DOTS estilo "pill" (igual que testimoniales) ===== */
.nlp-dots{
  display: inline-flex;
  gap: 10px;
  align-items: center;
}

.nlp-dots .dot{
  width: 10px;
  height: 10px;
  border-radius: 999px;
  border: 0;
  background: rgba(14,43,43,.22);
  cursor: pointer;
  padding: 0;
  transition: transform .18s ease, width .18s ease, background .18s ease, opacity .18s ease;
}

.nlp-dots .dot:hover{
  transform: scale(1.12);
}

.nlp-dots .dot.is-active{
  width: 34px;
  background: rgba(0,129,128,.65); /* ✅ verde Nomi pill */
}
@media (max-width:560px){
  .nlp-dots .dot{ width: 10px; height: 10px; }
  .nlp-dots .dot.is-active{ width: 30px; }
}





/* Flechas medianas sin pastilla */
.nlp-arrow{ all:unset; cursor:pointer; display:inline-grid; place-items:center; }
.nlp-arrow i{
  font-size:clamp(28px,3.4vw,36px);
  line-height:1; color:#1f2b2b; opacity:.9;
  transition:transform .18s ease, opacity .18s ease;
}
.nlp-arrow:hover i{ transform:scale(1.08); opacity:1; }


/* ✅ Flechas con fondo blanco + hover tipo testimoniales */
.nlp-arrow{
  all: unset;
  cursor: pointer;
  display: inline-grid;
  place-items: center;

  width: 44px;
  height: 44px;
  border-radius: 999px;

  background: rgba(255,255,255,.65);
  border: 1px solid rgba(0,0,0,.06);
  box-shadow: 0 10px 26px rgba(0,0,0,.08);

  transition: transform .18s ease, box-shadow .22s ease, background .22s ease;
}

.nlp-arrow i{
  font-size: clamp(28px, 3.4vw, 36px);
  line-height: 1;
  color: rgba(14,43,43,.92);
  opacity: .95;
  transition: transform .18s ease, opacity .18s ease;
}

.nlp-arrow:hover{
  transform: translateY(-2px);
  box-shadow: 0 14px 36px rgba(0,0,0,.12);
  background: rgba(255,255,255,.78);
}

.nlp-arrow:hover i{
  transform: scale(1.05);
  opacity: 1;
}

.nlp-arrow:active{
  transform: translateY(0);
}

.nlp-arrow:focus-visible{
  outline: 3px solid rgba(216,118,37,.45);
  outline-offset: 4px;
}




/* ================== RESPONSIVO ================== */
@media (max-width:992px){
  .nlp-grid{ grid-template-columns:1fr; }
  .nlp-copy{ text-align:center; }
  .nlp-copy p{ margin-inline:auto; }
  .nlp-ctas{ justify-content:center; }
}
@media (max-width:560px){
  .nlp-media img{ width:88%; }
  .nlp-arrow i{ font-size:30px; }
  .nlp-dots .dot{ width:11px; height:11px; }
}

/* Accesibilidad */
@media (prefers-reduced-motion: reduce){
  .nlp-slide{ transition:none !important; transform:none !important; opacity:1 !important; }
}













/* =========================================
   TESTIMONIOS — Carrusel Nomilinea (minimal)
   - Snap carousel + dots pill + arrows
   - 768/425/320 responsive
========================================= */
:root{
  --nomi:#008180;
  --ink:#0e2b2b;
  --muted: rgba(14,43,43,.72);

  --card-bg: rgba(255,255,255,.55);
  --card-bd: rgba(255,255,255,.65);
  --shadow: 0 18px 55px rgba(0,0,0,.10);
  --shadow2: 0 26px 80px rgba(0,0,0,.12);

  --r-xl: 26px;
  --r-lg: 22px;

  --controls-h: 54px;
}

.nl-testimonials{
  position: relative;
  background: #fff !important;
  overflow: hidden;
  padding: clamp(56px, 7vw, 96px) 0;
  isolation: isolate;
}

/* overlay tenue */
.nlt-overlay{ display:none; }


.nlt-container{
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 clamp(16px, 4vw, 28px);
}

/* Head */
.nlt-head{
  text-align:center;
  max-width: 920px;
  margin: 0 auto clamp(22px, 4vw, 36px);
}
.nlt-head h2{
  margin: 0 0 10px;
  color: #0b2222;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.02;
  font-size: clamp(32px, 5.4vw, 64px);
}
.nlt-head h2 span{
  color: var(--nomi);
}
.nlt-head p{
  margin: 0;
  color: var(--muted);
  font-size: clamp(14px, 1.6vw, 18px);
}

/* Carousel shell */
.nlt-carousel{
  display: grid;
  gap: 16px;
}

/* TRACK — scroll snap */
.nlt-track{
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  display: flex;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;

  border-radius: var(--r-xl);
  background: rgba(255,255,255,.35);
  border: 1px solid rgba(255,255,255,.6);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow);

  scrollbar-width: none;
}
.nlt-track::-webkit-scrollbar{ display:none; }

.nlt-slide{
  flex: 0 0 100%;
  width: 100%;
  scroll-snap-align: start;
  scroll-snap-stop: always;

  padding: clamp(18px, 3.5vw, 28px);
}

/* Card interior */
.nlt-card{
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;

  border-radius: var(--r-xl);
  background: var(--card-bg);
  border: 1px solid var(--card-bd);
  box-shadow: var(--shadow);
  overflow: hidden;

  display: grid;
  grid-template-columns: 1.05fr .95fr;
  align-items: stretch;
}

.nlt-photo{
  margin: 0;
  position: relative;
  min-height: 360px;
  background: rgba(0,0,0,.03);
}
.nlt-photo img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display:block;
}

/* Copy */
.nlt-copy{
  padding: clamp(18px, 3.4vw, 42px);
  display: grid;
  align-content: center;
  gap: 16px;
}

.nlt-stars{
  display: inline-flex;
  gap: 6px;
  align-items: center;
}
.nlt-stars i{
  font-size: 22px;
  color: var(--nomi);
}

.nlt-quote{
  margin: 0;
  color: rgba(14,43,43,.92);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.18;
  font-size: clamp(18px, 2.6vw, 32px);
}

.nlt-meta{
  display: grid;
  gap: 2px;
}
.nlt-meta strong{
  color: #0b2222;
  font-weight: 600;
  font-size: 16px;
}
.nlt-meta span{
  color: rgba(14,43,43,.70);
  font-size: 14px;
}

/* Controls */
.nlt-controls{
  height: var(--controls-h);
  display:flex;
  align-items:center;
  justify-content:center;
  gap: clamp(12px, 3vw, 28px);
}

.nlt-arrow{
  all: unset;
  cursor: pointer;
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  background: rgba(255,255,255,.65);
  border: 1px solid rgba(0,0,0,.06);
  box-shadow: 0 10px 26px rgba(0,0,0,.08);
  transition: transform .18s ease, box-shadow .22s ease, background .22s ease;
}
.nlt-arrow i{
  font-size: 30px;
  color: rgba(14,43,43,.92);
}
.nlt-arrow:hover{
  transform: translateY(-2px);
  box-shadow: 0 14px 36px rgba(0,0,0,.12);
  background: rgba(255,255,255,.78);
}
.nlt-arrow:active{ transform: translateY(0); }

.nlt-dots{
  display: inline-flex;
  gap: 10px;
  align-items: center;
}
.nlt-dots .dot{
  width: 10px;
  height: 10px;
  border-radius: 999px;
  border: 0;
  background: rgba(14,43,43,.22);
  cursor: pointer;
  padding: 0;
  transition: transform .18s ease, width .18s ease, background .18s ease, opacity .18s ease;
}
.nlt-dots .dot:hover{ transform: scale(1.12); }
.nlt-dots .dot.is-active{
  width: 34px;
  background: rgba(0,129,128,.60);
}

/* Focus */
.nlt-arrow:focus-visible,
.nlt-dots .dot:focus-visible{
  outline: 3px solid rgba(216,118,37,.45);
  outline-offset: 4px;
}

/* ============ RESPONSIVE ============ */

/* 768px: apila foto arriba + texto abajo */
@media (max-width: 768px){
  .nlt-card{
    grid-template-columns: 1fr;
  }
  .nlt-photo{
    min-height: 300px;
  }
  .nlt-copy{
    text-align: center;
    justify-items: center;
  }
  .nlt-stars{ justify-content: center; }
}

/* 425px: compacta */
@media (max-width: 425px){
  .nlt-photo{ min-height: 240px; }
  .nlt-stars i{ font-size: 20px; }
  .nlt-arrow{ width: 42px; height: 42px; }
  .nlt-arrow i{ font-size: 28px; }
}

/* 320px: aún más tight */
@media (max-width: 320px){
  .nlt-slide{ padding: 14px; }
  .nlt-copy{ padding: 16px; }
  .nlt-quote{ font-size: 18px; line-height: 1.22; }
}

/* Accesibilidad */
@media (prefers-reduced-motion: reduce){
  .nlt-track{ scroll-behavior: auto; }
}









