/* ========================================================= */
/* 1. RESET Y CONFIGURACIÓN GENERAL */
/* ========================================================= */

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

/* Eliminar estilo de números de teléfono (tel links) */
a[href^="tel:"] {
  color: inherit; /* Toma el color del texto alrededor */
  text-decoration: none; /* Elimina la línea debajo */
}

/* Para evitar subrayados al hacer hover o focus */
a:hover,
a:focus {
  text-decoration: none; /* Asegura que no haya subrayado en el hover */
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", sans-serif;
}

input {
  width: 100%;
  padding: 15px;
  border-radius: 12px;
  margin-bottom: 24px;
  border: 1px solid #1c3661;
}

textarea {
  width: 100%;
  height: 197px;
  padding: 15px;
  border-radius: 12px;
  margin-bottom: 20px;
  border: 1px solid #1c3661;
}

.wa-fixed {
  position: fixed;
  bottom: 40px;
  right: max(20px, calc((100vw - 1440px) / 2));
  width: 170px;
  height: 50px;
  color: white;
  background-color: #0dc143;
  background-image: url(../images/icon-whatsapp.svg);
  background-repeat: no-repeat;
  background-position: left 15px center;
  background-size: 30px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-left: 20px;
  cursor: pointer;
  text-decoration: none;
  font-family: "PT Sans", sans-serif;
  font-size: 18px;
  font-weight: 500;
  z-index: 909;
  transition: opacity 0.4s ease-in-out, transform 0.3s ease-in-out;
  opacity: 1;
}

/* .wa-fixed:hover {
  background-color: #1f1f1f;
  color: white;
  border: 1px solid white;
} */

.wa-hidden {
  opacity: 0;
  transform: translateY(10px); /* Se desliza un poco hacia abajo */
  pointer-events: none; /* Evita que sea clickeable cuando está oculto */
}

@media (max-width: 768px) {
  .wa-fixed {
    width: 50px;
    height: 50px;
    background-color: #0dc143;
    border-radius: 60px;
    background-size: 30px;
    background-position: center;
  }
}

/* ========================================================= */
/* 2. HEADER */
/* ========================================================= */

.header {
  background-image: url(../images/bg-home.webp);
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  text-align: center;
  position: relative;
  width: 100%;
  height: 100vh;
}
.header-overlay {
  width: 100%;
  height: 100vh;
  background-color: #00000095;
  position: absolute;
}
.navbar {
  width: 100%;
  height: 100px;
  display: flex;
  justify-content: center; /* Centra el contenido */
  align-items: center;
  position: fixed;
  transition: background-color 0.3s ease-in-out;
  z-index: 2; /* Asegura que la navbar esté por encima del overlay */
  background-color: transparent; /* Fondo transparente por defecto */
  padding-left: 5%;
}

.navbar ul {
  display: flex;
  width: 940px; /* Fijamos el ancho */
  justify-content: space-evenly;
  list-style: none;
  align-items: center;
}
.navbar ul img {
  width: 150px;
  height: auto;
}
.navbar ul a {
  color: white;
  text-decoration: none;
}
.navbar.scrolled {
  background-color: white; /* Fondo blanco */
  transition: background-color 0.3s ease-in-out;
}

.navbar.scrolled ul a {
  color: #1c3661 !important; /* Color azul */
  transition: color 0.3s ease-in-out;
}

.navbar .logo img {
  transition: opacity 0.3s ease-in-out;
  width: 150px;
}

.navbar.scrolled .logo img {
  opacity: 1;
}

.header main {
  color: white;
  z-index: 1;
  position: absolute;
  width: 100%;
  bottom: 3%;
}

.header main img {
  width: 250px;
  height: auto;
}

.header main h1 {
  font-size: 50px;
  margin: 20px 0;
}

.menu-toggle {
  display: none; /* Ocultamos el botón hamburguesa por defecto */
}

@media (max-width: 425px) {
  .header main h1 {
    line-height: 40px;
    font-size: 40px;
    margin: 0;
  }

  .header {
    height: 95vh;
  }

  .header-overlay {
    height: 95vh;
  }
}

/* ========================================================= */
/* 2. SECCIÓN 'COTIZÁ' */
/* ========================================================= */

.cotiza {
  display: flex;
  width: 100%;
  justify-content: center;
  background-color: #00609a;
  padding: 50px 0px;
}

.cotiza-container {
  display: flex;
  width: 940px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.cotiza-container h1 {
  color: white;
  margin: 0;
  font-size: 45px;
  text-align: center;
}

.cotiza-container div {
  display: flex;
  width: 100%;
  flex-direction: row;
  align-items: center;
  justify-content: center;
}

.cotiza-container a {
  color: white;
  text-decoration: none;
  border: 2px solid white;
  padding: 15px 10px;
  border-radius: 6px;
  margin: 15px;
  width: 190px;
  display: flex;
  justify-content: center;
}

@media (max-width: 425px) {
  .cotiza-container div {
    flex-direction: column;
  }
}

/* ========================================================= */
/* 3. SECCIÓN 'QUIÉNES SOMOS' */
/* ========================================================= */
.quienes-somos {
  display: flex;
  width: 100%;
  justify-content: center;
  padding: 90px 0px;
  position: relative;
  scroll-margin-top: -100px;
}

.quienes-somos-container {
  display: flex;
  width: 940px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.quienes-somos-container h1 {
  color: #1c3661;
  margin: 0;
  font-size: 45px;
  text-align: center;
  margin-bottom: 40px;
}

.quienes-somos-container div {
  display: flex;
}

.quienes-somos-container div div:nth-child(1) {
  width: 50%;
  margin: 15px;
  background-color: whitesmoke;
  border-radius: 12px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.quienes-somos-container div div:nth-child(2) {
  width: 50%;
  margin: 15px;
}

.quienes-somos-container div div p {
  color: grey;
  line-height: 30px;
}

.seeMore {
  display: flex;
  width: 100%;
  margin: 0;
}

.seeMore a {
  color: #1c3661;
  text-decoration: none;
  border: 2px solid #1c3661;
  padding: 15px 10px;
  border-radius: 6px;
  margin: 15px;
  width: 190px;
  display: flex;
  justify-content: center;
}

@media (max-width: 768px) {
  .quienes-somos-container {
    width: 100%;
  }
  .quienes-somos-container div div:nth-child(1) {
    width: 95%;
  }
  .quienes-somos-container div div:nth-child(2) {
    width: 100%;
  }
  .quienes-somos-container div {
    margin: 20px;
    flex-direction: column;
  }
}

/* ========================================================= */
/* SECCIÓN SUMATE*/
/* ========================================================= */

.sumate {
  display: flex;
  justify-content: center;
  background-color: #00609a;
  padding: 50px 0px;
}

.sumate-container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.sumate-container-h1 {
  color: white;
  text-align: center;
}

.sumate-container-button {
  color: white;
  text-decoration: none;
  border: 2px solid white;
  padding: 15px 10px;
  border-radius: 6px;
  margin: 15px;
  width: 190px;
  display: flex;
  justify-content: center;
}

/* ========================================================= */
/* SECCIÓN SERVICIOS*/
/* ========================================================= */

.servicios {
  background-color: whitesmoke;
  padding: 90px 0;
}

.servicios-container h1 {
  color: #1c3661;
  font-size: 45px;
  text-align: center;
  margin-bottom: 40px;
}

.container-box {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  padding: 0 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.box-container {
  text-align: center;
}

.item-box {
  width: 100%;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 12px;
  background: #ccc;
}

.item-box-final {
  background-color: #1c3661;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1;
  border-radius: 12px;
  padding: 20px;
  box-sizing: border-box;
}

.item-box-final img {
  width: 50px;
  height: auto;
  margin-bottom: 20px; /* separa del botón */
}

.item-box-final a {
  color: white;
  text-decoration: none;
  border: 2px solid white;
  padding: 15px 10px;
  border-radius: 6px;
  width: auto;
  display: flex;
  justify-content: center;
  box-sizing: border-box;
  text-align: center;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.item-box img {
  width: 100%;
  object-fit: cover;
}

.box-container h3 {
  margin-top: 10px;
  color: #1c3661;
  font-size: 20px;
  width: 100%;
  text-align: center;
}

@media (max-width: 768px) {
  .container-box {
    grid-template-columns: 1fr;
  }
  .item-box-final a {
    width: 90%;
  }
}

/* ========================================================= */
/* NOS ACOMPAÑAN */
/* ========================================================= */

.acompanan {
  padding: 40px 0px 90px 0px;
  display: flex;
  justify-content: center;
}

.acompanan-container h1 {
  color: #1c3661;
  font-size: 45px;
  text-align: center;
  margin-bottom: 40px;
}

.acompanan-container-logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  align-items: center;
  padding: 0 20px;
}

.acompanan-container-logos img {
  height: 60px;
  object-fit: contain;
  filter: grayscale(100%);
  opacity: 0.8;
  transition: filter 0.3s ease, opacity 0.3s ease;
}

.acompanan-container-logos img:hover {
  filter: grayscale(0%);
  opacity: 1;
  transform: scale(1.05);
}

/* ========================================================= */
/* SINIESTRO AUTOMOTOR*/
/* ========================================================= */

.siniestro-automotor {
  background-color: whitesmoke;
  padding: 90px 0;
}

.siniestro-automotor-container h4 {
  color: #1c3661;
  font-size: 16px;
  text-align: center;
  margin-bottom: 15px;
}

.siniestro-automotor-container-h1 {
  color: #1c3661;
  font-size: 45px;
  text-align: center;
  margin: 0;
  margin-bottom: 10px;
}

.siniestro-automotor-container p {
  color: grey;
  line-height: 30px;
  text-align: center;
  margin: 0px 10px;
}

.siniestro {
  padding: 60px 20px;
  background-color: #fff;
  text-align: center;
  color: #1c3661;
}

.siniestro-container h2 {
  font-size: 36px;
  margin-bottom: 10px;
}

.siniestro-container p {
  margin-bottom: 40px;
  color: #666;
  font-size: 18px;
  margin: 0px 10px;
}

.siniestro-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin-top: 25px;
}

.siniestro-item {
  background-color: #005b9f;
  color: white;
  border-radius: 12px;
  padding: 20px;
  width: 220px;
  position: relative;
  text-align: left;
}

.siniestro-item .circle {
  width: 35px;
  height: 35px;
  background: white;
  color: #005b9f;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  margin-bottom: 10px;
  font-size: 25px;
}

.siniestro-item .check {
  display: flex;
  height: 35px;
  width: 35px;
  position: absolute;
  right: -15px;
  bottom: 35%;
  font-size: 24px;
  color: white;
  background-color: #4cd964;
  border-radius: 60px;
  align-items: center;
  justify-content: center;
}

.siniestro-item.full {
  width: 100%;
  max-width: 800px;
  margin: 30px auto;
  display: flex;
  align-items: center;
  justify-content: start;
  gap: 20px;
  text-align: left;
}

.legal-msg {
  margin-top: 30px;
  font-size: 24px;
  color: #005b9f;
  text-align: center;
}

@media (max-width: 768px) {
  .siniestro-grid {
    flex-direction: column;
    align-items: center;
  }

  .siniestro-item.full {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    width: 220px;
  }
}

/* ========================================================= */
/* CONTACTO*/
/* ========================================================= */

.contacto {
  background-color: white;
  padding: 90px 0;
  display: flex;
  justify-content: center;
}

.contacto-container {
  display: flex;
  width: 940px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.contacto-container h1 {
  color: #1c3661;
  font-size: 45px;
  text-align: center;
  margin: 0;
  margin-bottom: 10px;
}

.contacto-container p {
  color: grey;
  line-height: 30px;
  text-align: center;
  margin: 0px 10px;
}

.contacto-container a {
  color: grey;
  line-height: 30px;
  text-align: center;
}

#form-reservas {
  width: 940px;
  display: flex;
  justify-content: space-evenly;
  margin-top: 70px;
}

.col-1 {
  width: 45%;
}

.col-2 {
  width: 45%;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.button-form {
  color: white;
  height: 50px;
  width: 100%;
  margin-bottom: 10px;
  background-color: #1c3661;
  border: 1px solid #1c3661;
  border-radius: 12px;
  background-image: url("../images/arrow-up.svg");
  background-repeat: no-repeat;
  background-position: 95%;
  background-size: 30px;
  cursor: pointer;
  transition: background-color 0.2s ease-in-out, color 0.2s ease-in-out;
}

.spinner {
  color: #1c3661;
}

.spinner::after {
  content: "";
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid #1c3661;
  border-top: 2px solid transparent;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

@media (max-width: 768px) {
  #form-reservas {
    width: 90%;
    display: flex;
    margin-top: 70px;
    flex-direction: column;
    align-items: center;
  }

  .col-1 {
    width: 100%;
  }

  .col-2 {
    width: 100%;
  }
}

/* ========================================================= */
/* FOOTER*/
/* ========================================================= */
footer {
  display: flex;
  justify-content: center;
  background-color: #1c3661;
  flex-direction: column;
  align-items: center;
  padding-bottom: 50px;
}

footer p {
  color: white;
  margin: 0;
  font-size: 12px;
  text-align: center;
}
/* ========================================================= */
/* 768 px*/
/* ========================================================= */

/* 🔹 MENÚ HAMBURGUESA: SOLO PARA MÓVILES */
@media (max-width: 768px) {
  /* Ajustamos la navbar */
  .navbar {
    background-color: white !important; /* Fondo blanco fijo */
    justify-content: space-between;
    padding: 0 20px;
  }

  /* Logo azul siempre en móviles */
  .navbar .logo img {
    content: url("../images/brand-blue.svg");
    width: 120px;
  }

  /* 🔹 Botón hamburguesa */
  .menu-toggle {
    display: block;
    font-size: 30px;
    cursor: pointer;
    color: #1c3661;
    position: absolute;
    right: 20px;
    top: 35px;
    z-index: 3;
  }

  /* 🔹 Menú oculto por defecto */
  .navbar ul {
    display: none; /* Ocultamos el menú */
    flex-direction: column;
    position: absolute;
    top: 100px;
    left: 0;
    width: 100%;
    background-color: white;
    text-align: center;
    padding: 20px 0;
    box-shadow: 0px 5px 10px rgba(0, 0, 0, 0.1);
  }

  /* 🔹 Mostrar el menú cuando se active */
  .navbar ul.active {
    display: flex;
  }

  /* 🔹 Ajustamos los links */
  .navbar ul li {
    padding: 15px 0;
  }

  .navbar ul a {
    color: #1c3661;
    font-size: 20px;
    text-decoration: none;
    display: block;
  }

  /* Efecto hover */
  .navbar ul a:hover {
    color: #0f2447;
  }
}
/* ========================================================= */
