/* =========================================================
   LAYOUT FIX ONZAP - HEADER TRANSPARENTE ESTABLE
========================================================= */

:root {
  --header-height: 78px;
}

html {
  scroll-padding-top: var(--header-height);
}

#home,
#about,
#benefits,
#portal,
#faq-section,
#price-section,
.card-section,
.carousel-section,
.colaboradores-section {
  scroll-margin-top: var(--header-height);
}

/* HEADER FIJO SIN SALTOS */
.header-section,
.navbar-fixed-top.header-section {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: var(--header-height) !important;
  padding: 0 !important;
  margin: 0 !important;
  border: none !important;
  z-index: 9999 !important;
  transition: background 0.3s ease, box-shadow 0.3s ease, backdrop-filter 0.3s ease;
}

/* Quitar líneas raras */
.header-section::before,
.header-section::after,
.navbar::before,
.navbar::after,
.header-section .container::before,
.header-section .container::after {
  display: none !important;
  content: none !important;
}

/* TRANSPARENTE AL INICIO */
.header-section {
  background: transparent !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
}

/* BLANCO AL HACER SCROLL */
.navbar-fixed-top.header-section {
  background: rgba(255, 255, 255, 0.97) !important;
  backdrop-filter: blur(12px) !important;
  box-shadow: 0 2px 14px rgba(0, 0, 0, 0.08) !important;
}

/* CONTENEDOR HEADER */
.header-section .container,
.navbar-fixed-top.header-section .container {
  height: var(--header-height) !important;
  display: flex !important;
  align-items: center !important;
}

/* NAVBAR UNA SOLA FILA */
.header-section .navbar,
.navbar-fixed-top.header-section .navbar {
  width: 100% !important;
  height: var(--header-height) !important;
  min-height: var(--header-height) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  flex-wrap: nowrap !important;
  padding: 0 !important;
  margin: 0 !important;
}

/* LOGO */
.navbar-brand.logo-com-nome,
.logo-com-nome {
  max-width: none !important;
  width: auto !important;
  min-width: 180px !important;
  height: var(--header-height) !important;
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  padding: 0 !important;
  margin: 0 !important;
  flex-shrink: 0 !important;
}

.logo-com-nome img {
  width: 42px !important;
  max-width: 42px !important;
  min-width: 42px !important;
  height: auto !important;
  display: block !important;
}

.nome-logo {
  font-size: 26px !important;
  line-height: 1 !important;
  white-space: nowrap !important;
  color: #28a1c5 !important;
  margin: 0 !important;
  padding: 0 !important;
}

.nome-logo span {
  color: #1DAA61 !important;
}

/* MENÚ */
.menu-wrap {
  margin-left: auto !important;
  display: flex !important;
  align-items: center !important;
  height: var(--header-height) !important;
}

.header-section ul.nav,
.navbar-fixed-top.header-section ul.nav {
  height: var(--header-height) !important;
  display: flex !important;
  align-items: center !important;
  flex-wrap: nowrap !important;
  gap: 8px !important;
  margin: 0 !important;
  padding: 0 !important;
}

.header-section ul.nav > li,
.navbar-fixed-top.header-section ul.nav > li {
  height: var(--header-height) !important;
  display: flex !important;
  align-items: center !important;
}

.header-section ul.nav > li > a,
.navbar-fixed-top.header-section ul.nav > li > a {
  height: var(--header-height) !important;
  line-height: var(--header-height) !important;
  padding: 0 16px !important;
  display: flex !important;
  align-items: center !important;
  font-weight: 700 !important;
  font-size: 13px !important;
  letter-spacing: 1px !important;
  white-space: nowrap !important;
}

/* Menú visible sobre hero */
.header-section ul.nav > li > a {
  color: #ffffff !important;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.45) !important;
}

/* Menú verde cuando baja */
.navbar-fixed-top.header-section ul.nav > li > a {
  color: #0F6134 !important;
  text-shadow: none !important;
}

.header-section ul.nav > li > a:hover,
.header-section ul.nav > li > a.active,
.navbar-fixed-top.header-section ul.nav > li > a:hover,
.navbar-fixed-top.header-section ul.nav > li > a.active {
  color: #1DAA61 !important;
}

/* HERO INICIA DETRÁS DEL HEADER TRANSPARENTE */
.initial-carousel {
  margin-top: 0 !important;
  height: 100vh !important;
  padding-top: 0 !important;
  background: #dff7fb !important;
  overflow: hidden !important;
}

.initial-carousel-slide {
  width: 100% !important;
  height: 100% !important;
}

.initial-carousel-slide img,
.initial-carousel-slide video {
  flex: 0 0 100% !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  object-position: center center !important;
  background: #dff7fb !important;
}

/* USA TU VOZ */
.about-section {
  min-height: 100vh;
  padding-top: 120px !important;
  padding-bottom: 80px !important;
}

.about-wrap {
  align-items: center !important;
  justify-content: center !important;
}

.about-heading-container {
  height: auto !important;
  min-height: 520px;
}

.about-heading h2 {
  font-size: clamp(36px, 4vw, 64px) !important;
  line-height: 1.15;
}

.wrapper-audio {
  margin: 0 auto;
}

/* BENEFICIOS */
.card-section {
  padding: 100px 40px !important;
  min-height: 100vh;
}

.card-section .title h2 {
  font-size: 38px !important;
  font-weight: 700;
  color: #0F6134;
}

.card-grid {
  max-width: 1180px !important;
  grid-template-columns: repeat(4, 1fr) !important;
  gap: 28px !important;
}

.card {
  min-height: 210px;
  padding: 30px 22px !important;
  border-radius: 22px !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08) !important;
}

.card img {
  width: 58px !important;
  height: 58px !important;
}

.card p {
  font-size: 16px !important;
  line-height: 1.45;
}

/* EXPERIENCIAS */
.carousel-section {
  min-height: 85vh;
  padding-top: 90px !important;
  padding-bottom: 90px !important;
}

/* PORTAL */
.portal-container {
  min-height: 100vh;
}

.portal-top h2 {
  font-size: clamp(32px, 3vw, 48px) !important;
}

.portal-center {
  margin-left: -25vw !important;
}

.portal-top-right {
  right: 17% !important;
}

#scroll-to-top {
  z-index: 1200;
}

/* TABLET */
@media only screen and (max-width: 991px) {
  :root {
    --header-height: 74px;
  }

  .header-section ul.nav > li > a,
  .navbar-fixed-top.header-section ul.nav > li > a {
    padding: 0 9px !important;
    font-size: 11px !important;
  }

  .card-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    max-width: 760px !important;
  }

  .portal-center {
    margin-left: 0 !important;
  }

  .portal-top-right {
    right: auto !important;
  }
}

/* MÓVIL */
@media only screen and (max-width: 767px) {
  :root {
    --header-height: 70px;
  }

  .initial-carousel {
    height: 65vh !important;
  }

  .card-grid {
    grid-template-columns: 1fr !important;
  }

  .card-section {
    padding: 80px 20px !important;
  }

  .about-section {
    padding-top: 90px !important;
  }

  .about-heading h2 {
    font-size: 32px !important;
  }
}
