/* -----------------------
   REGLAS GENERALES
-------------------------- */
body {
  margin: 0;
  font-family: 'Marope', sans-serif;
}

.nav,
.navbar-left a,
.dropdown li a {
  font-family: 'Fustat', sans-serif;
}

/* -----------------------
   NAVBAR PRINCIPAL
-------------------------- */
.nav {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 1114px;
  background-color: #ffffff;
  border-bottom-left-radius: 8px;
  border-bottom-right-radius: 8px;
  padding: 16px 32px 12px 32px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

/* Contenedor de logo + menú + botones */
.navbar-content {
  width: 100%;
  height: 70px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-radius: 8px;
  padding: 0 16px;
}

/* -----------------------
   LOGO
-------------------------- */
.navbar-left-container {
  display: flex;
  align-items: center;
  gap: 70px;
}

.logo img {
  width: 200px;
  object-fit: cover;
  display: block;
  margin-top: -10px;
}

/* -----------------------
   ENLACES DE MENÚ
-------------------------- */
.navbar-left {
  display: flex;
  list-style: none;
  gap: 24px;
  margin: 0;
  padding: 0;
}

.navbar-left a {
  color: #24336F;
  font-size: 16px;
  text-decoration: none;
  height: 40px;
  display: flex;
  align-items: center;
}

.underline-animada {
  position: relative;
  padding: 10px 0;
}

.underline-animada::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 0;
  height: 1px;
  background-color: #24336F;
  transition: width 0.3s ease;
}

.underline-animada:hover::after {
  width: 100%;
}

/* -----------------------
   BOTONES DERECHA
-------------------------- */
.navbar-right {
  display: flex;
  align-items: center;
  gap: 16px;
  height: 34px;
}

.btn,
.link-siniestro {
  font-size: 14px;
  font-weight: 500;
  padding: 3px 4px;
  width: 190px;
  height: 34px;
  border-radius: 6px;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.3s ease;
}

.btn {
  background-color: #24336F;
  color: white;
}

.btn:hover {
  background-color: #1a2658;
}

.link-siniestro {
  background-color: #ffffff;
  color: #1a2658;
  border: 1px solid #1a2658;
  height: 30px;
}

.link-siniestro:hover {
  background-color: #dddfe4;
}

/* -----------------------
   DROPDOWN
-------------------------- */
.dropdown-container {
  position: relative;
}

.dropdown-toggle {
  display: flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  color: #24336F;
  text-decoration: none;
  font-size: 16px;
}

.dropdown-icon {
  font-size: 10px;
}

.dropdown-container.open .dropdown {
  display: flex;
}

.dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 20px);
  left: 0;
  background-color: rgba(255, 255, 255, 0.9);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  overflow: hidden;
  min-width: 120px;
  z-index: 999;
  flex-direction: column;
  padding: 4px 0;
}

.dropdown li {
  list-style: none;
}

.dropdown li a {
  display: block;
  padding: 6px 12px;
  color: #24336F;
  text-decoration: none;
  font-size: 14px;
  text-align: left;
  background-color: transparent;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.dropdown li a:hover {
  background-color: #24336F;
  color: #ffffff;
}


/* ----------------------------- */
/* Estilos del header con fondo */
/* ----------------------------- */
/* Eliminar márgenes/paddings predeterminados */

header {
  position: relative;
  height: 100vh;
  background-size: cover;
  background-position: center;
  color: #ffffff;
  border-bottom-left-radius: 30px;
  border-bottom-right-radius: 30px;
  overflow: hidden;
   margin-top: -80px;

}

.header-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  border-bottom-left-radius: 30px;
  border-bottom-right-radius: 30px;
  background-color: rgba(10, 27, 93, 0.5);
}

.hero-content {
  z-index: 1;
}

header::before {
  content: '';
  position: absolute;
  height: 100%;
  width: 100%;
  top: 0;
  left: 0;
  background: linear-gradient(
    255.57deg,
    rgba(36, 51, 111, 0) -13.96%,
    #1C348B 58.62%,
    #08398E 115.65%
  );
  z-index: 1;
  border-bottom-left-radius: 30px;
  border-bottom-right-radius: 30px;
}

/* ------------------- */
/* HERO SECTION        */
/* ------------------- */

.hero {
  height: 100%;
  display: flex;
  align-items: flex-start;
  padding: 10rem 10rem 0 100px; /* ← Solo se cambia el padding izquierdo */
  position: relative;
}


.hero-content {
  max-width: 50%;
  z-index: 1;
}

.hero-title {
  font-family: 'Manrope', sans-serif;
  font-size: 48px;
  line-height: 64px;
  margin-bottom: 1rem;
  font-weight: 600;
  color: #FFFFFF;
}

.hero-subtitle {
  font-family: 'Manrope', sans-serif;
  font-size: 20px;
  line-height: 28px;
  margin-bottom: 2rem;
  font-weight: 400;
  color: #FFFFFF;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
}

.hero-btn,
.hero-btn-outline {
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  font-family: 'Manrope', sans-serif;
  font-size: 18px;
  transition: background-color 0.3s ease;
}

.hero-btn {
  background-color: #ffffff;
  color: #172F58;
}

.hero-btn:hover {
  background-color: #dfe7ff;
}

.hero-btn-outline {
  border: 2px solid #ffffff;
  color: #ffffff;
  background-color: transparent;
}

.hero-btn-outline:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

/* -------------------------- */
/* Fondo gris que sobresale  */
/* -------------------------- */
.gray-background {
  width: 100%;
  height: 120px;
  background-color: #f5f5f5;
  margin-top: -80px;
  z-index: -1;
  position: relative;
  border-top-left-radius: 30px;
  border-top-right-radius: 30px;
}




.btn-whatsapp{
      display:block;
      position: fixed;
      right:20px;
      bottom:20px;
      border-radius:50%;
      line-height:10px;
      text-align:center;
      z-index:999;
 }
 .btn-whatsapp img{
      width: 70px;
      height: 70px;
}




@media screen and (max-width: 743px) {
  header {
    height: auto;
    padding-bottom: 3rem;
    margin-top: 60px;
  }

  .hero {
    flex-direction: column;
    align-items: left;
    padding: 5rem 2rem 2rem 2rem;
    text-align: left;
  }

  .hero-content {
    max-width: 100%;
    z-index: 1;
  }

  .hero-title {
    font-size: 28px;
    line-height: 36px;
    margin-bottom: 1rem;
  }

  .hero-subtitle {
    font-size: 16px;
    line-height: 24px;
    margin-bottom: 1.5rem;
  }

.hero-buttons {
  display: flex;
  flex-direction: row;      /* ← cambia de columna a fila */
  align-items: center;      /* ← centra verticalmente */
  gap: 1rem;                /* ← espacio entre los botones */
  flex-wrap: wrap;          /* ← por si no entran en una fila */
}

.hero-btn,
.hero-btn-outline {
  width: 40%;
  max-width: 280px;
  font-size: 16px;
}


  .gray-background {
    height: 80px;
    margin-top: -40px;
  }

  .btn-whatsapp img {
    width: 55px;
    height: 55px;
  }
}


@media screen and (min-width: 744px) and (max-width: 1300px) {
  header {
    height: auto;
    padding-bottom: 4rem;
    margin-top: 10px;
  }

  .hero {
    flex-direction: column;
    align-items: left;
    /* 🔵 Aumentar padding superior */
    padding: 8rem 4rem 2rem 4rem;
    text-align: left;
  }

  .hero-content {
    max-width: 90%;
    text-align: left;
  }

  .hero-title {
    font-size: 40px;
    line-height: 54px;
    margin-top: 1rem; /* 🔵 Añadir margen adicional si aún queda muy arriba */
  }

  .hero-subtitle {
    font-size: 18px;
    line-height: 26px;
  }

  .hero-buttons {
    justify-content: left;
    flex-wrap: wrap;
    margin-top: 2rem;
  }

  .hero-btn,
  .hero-btn-outline {
    font-size: 16px;
    max-width: 220px;
    width: 25%;
  }

  .gray-background {
    height: 100px;
    margin-top: -60px;
  }

  .btn-whatsapp img {
    width: 60px;
    height: 60px;
  }
}
