/* =========================
   COMMON - ESTILO MINIMALISTA NALS
   ========================= */

:root{
  --azul-nals: #1daf96;
  --azul-nals-dark: #15947f;
  --azul-claro: #93cfba;
  --azul-cielo: #edf9f6;
  --gris: #ecf1ef;
  --gris-claro: #f5f8f7;
  --text-dark: #37484D;
  --gris-texto: #546d72;
  --muted: rgba(17,17,17,.65);
  --white: #ffffff;
  --border-soft: rgba(17,17,17,.08);
  --shadow-soft: 0 16px 40px #afffe3c9;
  --shadow-hover: 0 22px 55px #a4dfcaaf;
}

/* =========================
   MODULUS FONT
========================= */

@font-face {
  font-family: "Modulus";
  src: url("/assets/fonts/ModulusPro-Medium.woff2") format("woff2"),
       url("/assets/fonts/ModulusPro-Medium.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Modulus-Bold";
  src: url("/assets/fonts/ModulusPro-Bold.woff2") format("woff2"),
       url("/assets/fonts/ModulusPro-Bold.woff") format("woff");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Boska-Bold";
  src: url("/assets/fonts/Boska-Bold.woff2") format("woff2"),
       url("/assets/fonts/Boska-Bold.woff") format("woff");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Boska-MediumItalic";
  src: url("/assets/fonts/Boska-MediumItalic.woff2") format("woff2"),
       url("/assets/fonts/Boska-MediumItalic.woff") format("woff");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Satoshi-Black';
  src: url('../fonts/Satoshi-Black.woff2') format('woff2'),
       url('../fonts/Satoshi-Black.woff') format('woff'),
       url('../fonts/Satoshi-Black.ttf') format('truetype');
  font-weight: 900;
  font-display: swap;
  font-style: normal;
}

@font-face {
  font-family: "Satoshi-Bold";
  src: url("/assets/fonts/Satoshi-Bold.woff2") format("woff2"),
       url("/assets/fonts/Satoshi-Bold.woff") format("woff");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Satoshi-Medium";
  src: url("/assets/fonts/Satoshi-Medium.woff2") format("woff2"),
       url("/assets/fonts/Satoshi-Medium.woff") format("woff");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Satoshi-Regular';
  src: url('../fonts/Satoshi-Regular.woff2') format('woff2'),
       url('../fonts/Satoshi-Regular.woff') format('woff');
  font-weight: 400;
  font-display: swap;
  font-style: normal;
}

html{
  scroll-behavior: smooth;
}

body{
  font-family: "Satoshi-Regular", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--text-dark);
  background: var(--white);
}

h1,h2,
.section-title,
.hero-title,
.page-hero__title,
.service-block__title,
.service-intro__title,
.service-cta__title,
.footer-title,
.confianza-title,
.contact-pill__title{
  font-family: "Boska-Bold", sans-serif;
  color: var(--text-dark);
}

h3,h4,h5,h6{
 font-family: "Satoshi-Black", sans-serif;
  color: var(--text-dark);
}

.section{
  position: relative;
}

.section-title{
  font-weight: 800;
  letter-spacing: -.5px;
  color: var(--text-dark);
  font-size: clamp(36px, 4vw, 54px);
  line-height: 1;
}

.bg-soft{
  background-color:  var(--gris-claro);
}

.bg-section-a{
  background: var(--white) !important;
}

.bg-section-b{
  background: var(--azul-cielo) !important;
}

.bg-section-c{
  background: var(--gris-claro) !important;
}

/* =========================
   NAVBAR
========================= */

.nav-logo{
  height: 58px;
  width: auto;
}

#mainNav{
  padding-top: 12px;
  padding-bottom: 12px;
  background: var(--white) !important;
  box-shadow: 0 8px 26px rgba(0,0,0,.06) !important;
  border-bottom: 1px solid var(--border-soft);
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 9998;
  transition: transform .32s ease, box-shadow .25s ease, background-color .25s ease;
}

/* Cuando desaparece */
#mainNav.nav-hidden{
  transform: translateY(-110%);
}

/* Cuando aparece después de hacer scroll */
#mainNav.nav-visible{
  transform: translateY(0);
}

/* Sombra un poco más clara al hacer scroll */
#mainNav.nav-scrolled{
  box-shadow: 0 8px 26px rgba(0,0,0,.08) !important;
}

#mainNav.nav-solid{
  background-color: var(--white) !important;
}

/* Links */
#mainNav .nav-link{
  font-size: 19px;
  font-weight: 800;
  font-family: "Satoshi-Medium", sans-serif;
  color: var(--gris-texto) !important;
  transition: color .2s ease;
}

#mainNav .nav-link:hover{
  color: var(--azul-nals) !important;
  text-decoration: none;
  font-family: "Satoshi-Bold", sans-serif !important;
}

/* Activo */
#mainNav .nav-link.nav-active{
  color: var(--azul-nals) !important;
  font-family: "Satoshi-Bold" !important;
  font-size: 20px;
}

/* Dropdown */
#mainNav .dropdown-toggle.nav-active{
  font-weight: 800;
}

#mainNav .dropdown-menu{
  border: 1px solid var(--border-soft);
  border-radius: 16px;
  box-shadow: var(--shadow-soft);
}

#mainNav .dropdown-menu .dropdown-item{
  color: var(--gris-texto);
}

#mainNav .dropdown-menu .dropdown-item.active,
#mainNav .dropdown-menu .dropdown-item:active{
  background-color: rgba(29,175,150,.10);
  color: var(--azul-nals) !important;
  font-family: "Satoshi-Bold";
}

#mainNav .dropdown-menu .dropdown-item:not(.active):hover{
  background-color: rgba(29,175,150,.08);
  color: var(--azul-nals) !important;
}

.nav-mobile-wrap{
  position: relative;
}

.nav-mobile-actions{
  display: none;
}

/* CTA navbar */
.btn-cta {
  background-color: var(--azul-nals);
  border: 0;
  color: #fff;
  font-family: "Satoshi-Bold", sans-serif;
  font-weight: 800;
  padding: 0 16px;
  min-height: 42px;
  border-radius: 7px;
  font-size: 17px;
  letter-spacing: .2px;
  transition: transform .2s ease, background .2s ease;

  display: inline-flex !important;
  align-items: center !important;
  justify-content: center;
  gap: 8px;
  line-height: 1;
  text-decoration: none;
}

.btn-cta:hover {
  background-color: var(--azul-nals-dark);
  color: #fff;
  transform: translateY(-1px);
  text-decoration: none;
}

.btn-cta i {
  color: #fff;
  line-height: 1;
  font-size: 16px;
  position: relative;
  top: 0;
  margin-bottom: 2px;
}

.cta-mobile-text {
  line-height: 1;
  position: relative;
  top: 2px;
}

/* =========================
   BOTONES FLOTANTES
========================= */

.floating-actions {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 9999;
  display: grid;
  gap: 10px;
}

.to-top,
.floating-whatsapp {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 0;
  background-color: var(--azul-nals);
  color: #fff;
  display: inline-grid;
  place-items: center;
  box-shadow: 0 12px 30px rgba(0,0,0,.16);
  text-decoration: none;
  transition: background .2s ease, transform .2s ease, opacity .2s ease;
}

.to-top {
  display: none;
}

.to-top.show {
  display: inline-grid;
}

.to-top:hover,
.floating-whatsapp:hover {
  background-color: var(--azul-nals-dark);
  color: #fff;
  transform: translateY(-2px);
  text-decoration: none;
}

.to-top i,
.floating-whatsapp i {
  font-size: 18px;
  line-height: 1;
}

/* =========================
   FOOTER
========================= */

.site-footer{
  background-color: var(--azul-nals) !important;
  background-image: none !important;
  padding: 52px 0;
}

.footer-grid{
  display: grid;
  grid-template-columns: 260px 1fr 260px;
  gap: 42px;
  align-items: start;
}

.footer-badge{
  width: 210px;
  max-width: 100%;
  overflow: hidden;
}

.footer-title{
  font-weight: 800;
  font-size: 26px;
  margin-bottom: 14px;
  color: white !important;
}

.footer-list{
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 12px;
}

.footer-item{
  display: flex;
  gap: 12px;
  align-items: flex-start;
  color: rgba(255,255,255,.92);
}

.footer-item i{
  font-size: 18px;
  line-height: 1.2;
  color: rgba(255,255,255,.92);
}

.footer-item a{
  color: rgba(255,255,255,.92);
  text-decoration: none;
}

.footer-item a:hover{
  text-decoration: underline;
}

.footer-social{
  display: flex;
  gap: 12px;
  margin-top: 10px;
}

.social-btn{
  width: 42px;
  height: 42px;
  border-radius: 999px;
  display: inline-grid;
  place-items: center;
  background-color: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.20);
  color: #fff;
  text-decoration: none;
  transition: transform .2s ease, background .2s ease;
}

.social-btn:hover{
  transform: translateY(-2px);
  background-color: rgba(255,255,255,.22);
  color: #fff;
}

.social-btn i{
  font-size: 18px;
}

.footer-bottom{
  margin-top: 40px;
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,.18);
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  justify-content: space-between;
  color: rgba(255,255,255,.85);
  font-size: 14px;
}

.footer-links a{
  color: rgba(255,255,255,.88);
  text-decoration: none;
  margin-right: 12px;
}

.footer-links a:hover{
  text-decoration: underline;
}

/* =========================
   OLAS
========================= */

.separador-olas {
  width: 100%;
  height: 240px;
  overflow: hidden;
  background: var(--gris-claro);
}

.separador-olas svg {
  width: 100%;
  height: 100%;
  display: block;
}

.ola {
  fill: var(--azul-claro);
}

.ola-central {
  opacity: .75;
}

.ola-media {
  opacity: .35;
}

.ola-suave {
  opacity: .18;
}

.separador-olas-mini {
  height: 150px;
  overflow: hidden;
}

.separador-olas-mini svg {
  width: 100%;
  height: 100%;
  display: block;
}

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 1200px){
  .nav-logo{
    height: 42px;
  }
}
@media (max-width: 992px){

  .footer-grid{
    grid-template-columns: 1fr;
  }

  .nav-logo{
    height: 42px;
  }

  .navbar-collapse{
    background-color: #fff;
    border-radius: 16px;
    padding: 14px;
    margin-top: 10px;
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--border-soft);
  }
}

@media (max-width: 991.98px){

  #mainNav .container{
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  .navbar-brand{
    margin-right: 0;
    z-index: 3;
  }

  .nav-mobile-actions{
    display: flex;
    align-items: center;
    gap: 14px;
    margin-left: auto;
    z-index: 3;
  }

  .navbar-toggler{
    border: 0 !important;
    box-shadow: none !important;
    padding: 0;
    background: transparent;
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    order: 1;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    color: black !important;
  }

  .navbar-toggler:focus{
    box-shadow: none !important;
    outline: none;
  }

  .btn-cta-mobile{
    padding: 8px 12px;
    font-size: 12px;
    border-radius: 999px;
    white-space: nowrap;
    order: 2;
  }

  #mainNav .navbar-collapse{
    width: 100%;
    flex-basis: 100%;
  }

  #mainNav .navbar-collapse .nav-link{
    color: var(--gris-texto) !important;
  }

  #mainNav .navbar-collapse .nav-link:hover{
    color: var(--azul-nals) !important;
  }

  #mainNav .navbar-collapse .nav-link.nav-active{
    color: var(--azul-nals) !important;
    font-weight: 800;
  }

  #mainNav .navbar-collapse .dropdown-menu{
    border-radius: 14px;
    border: 1px solid var(--border-soft);
    box-shadow: var(--shadow-soft);
  }

  #mainNav .navbar-collapse .dropdown-item{
    color: var(--gris-texto);
  }
}

@media (max-width: 431.98px){

  .nav-logo{
    height: 37px;
  }

  .btn-cta-mobile{
    width: 38px;
    height: 38px;
    padding: 0;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .cta-mobile-text{
    display: none;
  }

  .btn-cta-mobile i{
    font-size: 16px;
  }
}

/* =========================
   HEADER AUTO-HIDE + MIGAS DE PAN
   ========================= */

.site-header {
  background: #fff;
  box-shadow: 0 8px 26px rgba(0,0,0,.06);
  border-bottom: 1px solid var(--border-soft);
  z-index: 9998;
  transform: translateY(0);
  transition: transform .32s ease, box-shadow .25s ease, background-color .25s ease;
  will-change: transform;
}

/* El navbar, cuando va dentro de siteHeader, ya no debe ser fixed */
.site-header #mainNav {
  position: relative !important;
  top: auto !important;
  left: auto !important;
  width: 100%;
  box-shadow: none !important;
  border-bottom: 0 !important;
}

/* Ocultar / mostrar navbar + migas juntos */
.site-header.nav-hidden {
  transform: translateY(-110%);
}

.site-header.nav-visible {
  transform: translateY(0);
}

.site-header.nav-scrolled {
  box-shadow: 0 8px 26px rgba(0,0,0,.08);
}

/* Barra de migas */
.breadcrumb-bar {
  background: rgba(255,255,255,.96);
  border-top: 1px solid color-mix(in srgb, var(--azul-claro) 70%, transparent);
  padding: 8px 0 10px 0;
}

.nals-breadcrumb {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  white-space: nowrap;
}

.nals-breadcrumb::-webkit-scrollbar {
  display: none;
}

.nals-breadcrumb li {
  display: inline-flex;
  align-items: center;
  color: var(--gris-texto);
  font-family: "Satoshi-Medium", sans-serif;
  font-size: 14px;
  line-height: 1.2;
}

.nals-breadcrumb li:not(:last-child)::after {
  content: "/";
  margin-left: 8px;
  color: rgba(84,109,114,.45);
}

.nals-breadcrumb a {
  color: var(--gris-texto);
  text-decoration: none;
  transition: color .2s ease;
}

.nals-breadcrumb a:hover {
  color: var(--azul-nals);
  text-decoration: none;
}

.nals-breadcrumb li[aria-current="page"] {
  color: var(--azul-nals);
  font-family: "Satoshi-Bold", sans-serif;
}

/* Más espacio arriba en páginas con migas */
body.has-breadcrumb .course-hero,
body.has-breadcrumb .product-hero {
  padding-top: 175px;
}

@media (min-width: 992px) and (max-width: 1400px) {
  .cta-desktop-text {
    display: none;
  }

  .btn-cta {
    width: 40px;
    height: 44px;
    padding: 0;
    justify-content: center;
  }

  .btn-cta i {
    font-size: 18px;
  }
}

@media (max-width: 991.98px) {
  .breadcrumb-bar {
    padding: 7px 0 9px 0;
  }

  .nals-breadcrumb li {
    font-size: 13px;
  }

  body.has-breadcrumb .course-hero,
  body.has-breadcrumb .product-hero {
    padding-top: 150px;
  }
}

@media (max-width: 575px) {
  .breadcrumb-bar {
    padding: 6px 0 8px 0;
  }

  .nals-breadcrumb li {
    font-size: 12px;
  }

  body.has-breadcrumb .course-hero,
  body.has-breadcrumb .product-hero {
    padding-top: 140px;
  }

  .floating-actions {
    right: 14px;
    bottom: 14px;
    gap: 8px;
  }

  .to-top,
  .floating-whatsapp {
    width: 40px;
    height: 40px;
  }

}