:root {
  --primary: #0A4E9B;
  --primary-dark: #163C73;
  --success: #22C55E;
  --light: #F5F7FB;
  --text: #243244;
  --radius: 18px;
  --shadow: 0 15px 40px rgba(0, 0, 0, .08);
}


/* ==========================================================
   RESET / BASE
   ========================================================== */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  color: var(--text);
  background: #fff;
  line-height: 1.7;
}

img {
  max-width: 100%;
  display: block;
}

section {
  padding: 90px 0;
}


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

.navbar {
  transition: .3s;
}

.navbar-brand img {
  max-height: 58px;
}


/* ==========================================================
   HEADER - CLASES ESPECÍFICAS
   ========================================================== */

/*
   Estas reglas funcionan con el HTML actual:

   .navbar
   .navbar-brand
   .header-actions
   .header-btn-call
   .header-btn-whatsapp

   Se mantienen separadas de las reglas antiguas
   .header__* para no romper ninguna estructura existente.
*/

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}


/* ==========================================================
   BUTTONS
   ========================================================== */

.btn {
  border-radius: 12px;
  padding: .85rem 1.6rem;
  font-weight: 600;
  transition: .3s;
}

.btn-primary {
  background: var(--primary);
  border: none;
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
}

.btn-success {
  background: var(--success);
  border: none;
}


/* ==========================================================
   HERO
   ========================================================== */

.hero {
  position: relative;
  min-height: 90vh;

  display: flex;
  align-items: center;

  overflow: hidden;

  background:
    linear-gradient(
      90deg,
      rgba(5, 30, 65, 0.90) 0%,
      rgba(8, 44, 90, 0.82) 45%,
      rgba(8, 44, 90, 0.68) 100%
    ),
    url('../assets/img/banner.png') center / cover no-repeat;

  color: #ffffff;
}


.hero__content {
  position: relative;
  z-index: 2;

  max-width: 760px;
}


.hero h1 {
  color: #ffffff;

  font-size: clamp(3rem, 5vw, 4.5rem);
  font-weight: 800;

  line-height: 1.08;
  letter-spacing: -0.035em;

  margin-bottom: 28px;

  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.18);
}


.hero h1 span {
  color: #3D7CFF;

  text-shadow:
    0 2px 12px rgba(0, 0, 0, 0.25);
}


.hero__description {
  max-width: 680px;

  color: rgba(255, 255, 255, 0.95);

  font-size: 1.15rem;
  font-weight: 400;

  line-height: 1.7;

  text-shadow:
    0 1px 8px rgba(0, 0, 0, 0.25);

  margin-bottom: 32px;
}


.hero .lead {
  opacity: .9;
}


/* ==========================================================
   HERO FEATURES
   ========================================================== */

.feature {
  background: rgba(255, 255, 255, .08);

  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);

  border: 1px solid rgba(255, 255, 255, .12);

  border-radius: 14px;

  padding: 14px 18px;
}


.feature i {
  color: #7cf5b1;
  margin-right: 8px;
}


/* ==========================================================
   CARDS
   ========================================================== */

.card {
  border-radius: var(--radius);

  border: none;

  box-shadow: var(--shadow);

  transition: .35s;
}


.card:hover {
  transform: translateY(-8px);
}


.card-body {
  padding: 2rem;
}


/* ==========================================================
   FORMS
   ========================================================== */

form .form-control,
form .form-select {
  border-radius: 12px;
  min-height: 54px;
}


textarea.form-control {
  min-height: 130px;
}


/* ==========================================================
   TYPOGRAPHY
   ========================================================== */

h2 {
  font-weight: 800;
}


.display-5 {
  color: var(--primary);
}


/* ==========================================================
   BACKGROUNDS
   ========================================================== */

.bg-light {
  background: var(--light) !important;
}


/* ==========================================================
   ACCORDION
   ========================================================== */

.accordion-item {
  border: none;

  border-radius: 14px !important;

  overflow: hidden;

  margin-bottom: 16px;

  box-shadow: var(--shadow);
}


.accordion-button {
  font-weight: 600;
}


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

footer {
  background: #14273F !important;
}


footer a {
  text-decoration: none;
}


/* ==========================================================
   FLOATING WHATSAPP
   ========================================================== */

.position-fixed.btn-success {
  width: 68px;
  height: 68px;

  display: flex;

  align-items: center;
  justify-content: center;

  box-shadow:
    0 10px 30px rgba(34, 197, 94, .4);

  z-index: 999;
}


/* ==========================================================
   TABLET
   ========================================================== */

@media (max-width: 991px) {

  .navbar .btn {
    padding: .6rem 1rem;
    font-size: .9rem;
  }

  section {
    padding: 70px 0;
  }

  .card-body {
    padding: 1.5rem;
  }

}


/* ==========================================================
   MOBILE
   ========================================================== */

@media (max-width: 768px) {

  /* ========================================================
     HEADER REAL DEL HTML
     ======================================================== */

  .navbar.navbar-expand-lg {
    width: 100%;

    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;

    align-items: center !important;
    justify-content: space-between !important;

    gap: 8px;

    padding-top: 12px !important;
    padding-bottom: 12px !important;
  }


  /* ========================================================
     LOGO REAL DEL HTML
     ======================================================== */

  .navbar-brand {
    flex: 0 0 auto;

    margin-right: 0 !important;

    padding: 0;

    display: flex;
    align-items: center;
  }


  .navbar-brand img {
    width: 125px;
    max-width: 125px;

    height: auto;

    max-height: none;

    display: block;
  }


  /* ========================================================
     BOTONES REALES DEL HEADER
     ======================================================== */

  .header-actions {
    flex: 0 0 auto;

    margin-left: auto !important;

    display: flex !important;

    flex-direction: row !important;
    flex-wrap: nowrap !important;

    align-items: center !important;
    justify-content: flex-end !important;

    gap: 6px;
  }


  /* ========================================================
     BOTÓN LLAMAR
     ======================================================== */

  .header-btn-call {
    width: 76px;
    min-width: 76px;
    max-width: 76px;

    height: 40px;
    min-height: 40px;

    display: inline-flex !important;

    align-items: center;
    justify-content: center;

    flex: 0 0 76px;

    padding: 0 6px !important;
    margin: 0 !important;

    border-radius: 10px;

    font-size: 12px;

    line-height: 1;

    white-space: nowrap;
  }


  .header-btn-call i {
    margin-right: 4px;

    font-size: 13px;
  }


  /* ========================================================
     BOTÓN WHATSAPP
     ======================================================== */

  .header-btn-whatsapp {
    width: 96px;
    min-width: 96px;
    max-width: 96px;

    height: 40px;
    min-height: 40px;

    display: inline-flex !important;

    align-items: center;
    justify-content: center;

    flex: 0 0 96px;

    padding: 0 6px !important;
    margin: 0 !important;

    border-radius: 10px;

    font-size: 12px;

    line-height: 1;

    white-space: nowrap;
  }


  .header-btn-whatsapp i {
    margin-right: 4px;

    font-size: 14px;
  }


  /* ========================================================
     HERO MOBILE
     ======================================================== */

  .hero {
    min-height: auto;

    padding: 55px 0 70px;

    background:
      linear-gradient(
        180deg,
        rgba(4, 25, 55, 0.94),
        rgba(6, 35, 72, 0.90)
      ),
      url('../assets/img/banner.png') center / cover no-repeat;
  }


  .hero__content {
    width: 100%;
    max-width: 100%;

    text-align: center;
  }


  .hero h1 {
    font-size: 2.3rem;

    line-height: 1.08;

    letter-spacing: -0.025em;

    margin-bottom: 24px;
  }


  .hero__description {
    max-width: 340px;

    margin-left: auto;
    margin-right: auto;

    font-size: 1rem;

    line-height: 1.65;
  }


  /* ========================================================
     HERO FEATURES - HTML REAL
     ======================================================== */

  .hero .row.gy-3 {
    margin-top: 0;
  }


  .hero .row.gy-3 > .col-md-6 {
    width: 100%;
  }


  .hero .feature {
    width: 100%;

    min-height: 54px;

    display: flex;

    align-items: center;

    justify-content: flex-start;

    gap: 0;

    padding: 15px 18px;

    text-align: left;

    background: rgba(255, 255, 255, 0.14);

    border: 1px solid rgba(255, 255, 255, 0.22);

    border-radius: 14px;

    color: #fff;
  }


  .hero .feature i {
    width: 18px;
    min-width: 18px;

    display: inline-flex;

    align-items: center;
    justify-content: center;

    margin-right: 12px;

    color: #7cf5b1;

    font-size: 16px;
  }


  /* ========================================================
     HERO BUTTONS
     ======================================================== */

  .hero .d-flex.gap-3.flex-wrap {
    width: 100%;

    flex-direction: column;

    gap: 10px !important;
  }


  .hero .d-flex.gap-3.flex-wrap .btn-lg {
    width: 100%;

    margin-bottom: 0;
  }


  /* ========================================================
     TRUST
     ======================================================== */

  .trust {
    margin-top: 35px !important;
  }


  .trust .d-flex {
    display: flex !important;

  flex-direction: row !important;
  flex-wrap: wrap !important;

  align-items: center !important;
  justify-content: center !important;

  gap: 10px !important;

  text-align: center;
  }

  .trust .d-flex > div:first-child {
  width: 100%;

  display: flex !important;

  flex-direction: row !important;
  flex-wrap: nowrap !important;

  align-items: center !important;
  justify-content: center !important;

  gap: 6px !important;
}

.trust .d-flex > div:first-child i {
  display: inline-block !important;

  flex: 0 0 auto !important;

  width: auto !important;
  min-width: auto !important;

  margin: 0 !important;

  font-size: 18px !important;

  line-height: 1 !important;

  color: #FFC83D;
}

  .trust strong {
    display: block;

  width: 100%;
  max-width: 280px;

  margin: 4px auto 0;

  text-align: center;
  }


  /* ========================================================
     CARDS
     ======================================================== */

  .card-body {
    padding: 1.5rem;
  }


  /* ========================================================
     FLOATING WHATSAPP
     ======================================================== */

  .position-fixed.btn-success {
    width: 60px;
    height: 60px;

    right: 12px !important;
    bottom: 12px !important;

    margin: 0 !important;
  }

}


/* ==========================================================
   SMALL MOBILE
   ========================================================== */

@media (max-width: 360px) {

  /* ========================================================
     HEADER
     ======================================================== */

  .navbar.navbar-expand-lg {
    padding-left: 8px !important;
    padding-right: 8px !important;

    gap: 4px;
  }


  .navbar-brand img {
    width: 108px;
    max-width: 108px;
  }


  .header-actions {
    gap: 4px;
  }


  .header-btn-call {
    width: 68px;
    min-width: 68px;
    max-width: 68px;

    flex-basis: 68px;

    height: 38px;

    font-size: 11px;
  }


  .header-btn-whatsapp {
    width: 86px;
    min-width: 86px;
    max-width: 86px;

    flex-basis: 86px;

    height: 38px;

    font-size: 11px;
  }


  /* ========================================================
     HERO
     ======================================================== */

  .hero h1 {
    font-size: 2.15rem;
  }

}

/* ==========================================================
   HEADER - AJUSTE FINAL DESKTOP + MOBILE
   ========================================================== */

/* ----------------------------------------------------------
   DESKTOP
   Logo a la izquierda / botones a la derecha
   ---------------------------------------------------------- */

@media (min-width: 769px) {

  .navbar.navbar-expand-lg {
    display: flex !important;

    align-items: center !important;
    justify-content: space-between !important;

    width: 100%;

    padding-left: 24px !important;
    padding-right: 24px !important;
  }

  .navbar-brand {
    margin-right: auto !important;
  }

  .header-actions {
    margin-left: auto !important;

    display: flex !important;

    align-items: center !important;
    justify-content: flex-end !important;

    gap: 12px;
  }

}


/* ----------------------------------------------------------
   MOBILE
   ---------------------------------------------------------- */

@media (max-width: 768px) {

  .navbar.navbar-expand-lg {
    width: 100% !important;

    padding-left: 16px !important;
    padding-right: 16px !important;

    gap: 10px !important;
  }


  .navbar-brand {
    margin-right: auto !important;

    padding: 0 !important;

    flex-shrink: 1;

    min-width: 0;
  }


  .navbar-brand img {
    width: 120px;
    max-width: 120px;
  }


  .header-actions {
    margin-left: auto !important;

    flex-shrink: 0;

    display: flex !important;

    align-items: center !important;
    justify-content: flex-end !important;

    gap: 8px !important;
  }


  /* --------------------------------------------------------
     BOTÓN LLAMAR
     -------------------------------------------------------- */

  .header-btn-call {
    width: 78px !important;
    min-width: 78px !important;

    height: 42px !important;

    padding: 0 8px !important;

    font-size: 12px !important;

    display: inline-flex !important;

    align-items: center;
    justify-content: center;
  }


  /* --------------------------------------------------------
     BOTÓN WHATSAPP
     -------------------------------------------------------- */

  .header-btn-whatsapp {
    width: 98px !important;
    min-width: 98px !important;

    height: 42px !important;

    padding: 0 8px !important;

    font-size: 12px !important;

    display: inline-flex !important;

    align-items: center;
    justify-content: center;
  }


  /* --------------------------------------------------------
     HERO - MÁS AIRE LATERAL
     -------------------------------------------------------- */

  .hero .container {
    padding-left: 20px !important;
    padding-right: 20px !important;
  }


  .hero__content {
    padding-left: 0;
    padding-right: 0;
  }


  /* --------------------------------------------------------
     HERO TITLE
     -------------------------------------------------------- */

  .hero h1 {
    padding-left: 0;
    padding-right: 0;
  }


  /* --------------------------------------------------------
     HERO DESCRIPTION
     -------------------------------------------------------- */

  .hero__description {
    padding-left: 0;
    padding-right: 0;
  }


  /* --------------------------------------------------------
     BENEFICIOS
     -------------------------------------------------------- */

  .hero .row.gy-3 {
    margin-left: 0;
    margin-right: 0;
  }


  .hero .row.gy-3 > .col-md-6 {
    padding-left: 0;
    padding-right: 0;
  }


  /* --------------------------------------------------------
     BOTONES DEL HERO
     -------------------------------------------------------- */

  .hero .d-flex.gap-3.flex-wrap {
    padding-left: 0;
    padding-right: 0;

    gap: 12px !important;
  }


  .hero .d-flex.gap-3.flex-wrap .btn-lg {
    min-height: 54px;

    display: inline-flex;

    align-items: center;
    justify-content: center;

    padding-top: 14px;
    padding-bottom: 14px;

    border-radius: 12px;
  }

}


/* ==========================================================
   MOBILE PEQUEÑO
   ========================================================== */

@media (max-width: 360px) {

  .navbar.navbar-expand-lg {
    padding-left: 12px !important;
    padding-right: 12px !important;
  }


  .navbar-brand img {
    width: 105px;
    max-width: 105px;
  }


  .header-actions {
    gap: 5px !important;
  }


  .header-btn-call {
    width: 68px !important;
    min-width: 68px !important;

    height: 40px !important;

    font-size: 11px !important;
  }


  .header-btn-whatsapp {
    width: 86px !important;
    min-width: 86px !important;

    height: 40px !important;

    font-size: 11px !important;
  }


  .hero .container {
    padding-left: 16px !important;
    padding-right: 16px !important;
  }

}