/* NAVBAR GENERAL */
.medina-navbar {
  background-color: white;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
}

.navbar-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 10px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-navbar {
  height: 80px;
  width: auto;
}

@media (max-width: 768px) {
  .logo-navbar {
    height: auto;
    width: 430px;
  }
}

/* SOLO para móviles (máx 480px) */
@media (max-width: 480px) {
  .logo-navbar.helvetia {
    height: 30px;
    width: auto;
  }
}

.logo-mobile {
  display: none;
}

@media (max-width: 680px) {
  .logo-desktop {
    display: none;
  }

  .logo-mobile {
    display: block;
    height: 40px;
    width: auto;
  }
}


.nav-hablamos-wrapper {
  display: flex;
  align-items: center;
  gap: 30px;
}

.menu-principal {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 20px;
  margin: 0;
  padding: 0;
}

.menu-principal li {
  position: relative;
}

.menu-principal a {
  text-decoration: none;
  color: #333;
  font-weight: 500;
  padding: 8px 12px;
  border-radius: 4px;
  transition: 0.3s ease;
}

.menu-principal a:hover {
  background-color: #00a2ab;
  color: white;
}

/* Submenú */
.submenu .dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: white;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  list-style: none;
  padding: 0;
  margin: 0;
  min-width: 160px;
  border-radius: 4px;
  z-index: 1000;
}

.submenu:hover .dropdown {
  display: block;
}

.submenu .dropdown li a {
  display: block;
  padding: 10px;
  color: #333;
}

.submenu .dropdown li a:hover {
  background-color: #00a2ab;
  color: white;
}

/* BOTÓN ¿HABLAMOS? */
.btn-hablamos {
  display: flex;
  align-items: center;
  gap: 8px;
  background-color: var(--color-principal);
  color: white;
  padding: 10px 20px;
  border: none;
  border-radius: 30px;
  font-weight: bold;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  transition: background 0.3s ease;
}

.btn-hablamos img {
  width: 18px;
  height: auto;
  margin-right: 8px;
}

.btn-hablamos:hover {
  background-color: #00838a;
}

.btn-escritorio {
  display: inline-flex;
}

.solo-movil {
  display: none;
}

/* HAMBURGUESA */
.hamburguesa {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
  margin-left: auto;
}

.hamburguesa span {
  width: 24px;
  height: 3px;
  background-color: #333;
  border-radius: 2px;
}

/* RESPONSIVE NAVBAR */
@media (max-width: 1080px) {
  .hamburguesa {
    display: flex;
  }

  .nav-hablamos-wrapper {
    display: none;
    flex-direction: column;
    gap: 20px;
    background-color: white;
    padding: 20px;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    z-index: 999;
  }

  .nav-hablamos-wrapper.menu-abierto {
    display: flex;
  }

  .menu-principal {
    flex-direction: column;
    width: 100%;
  }

  .btn-escritorio {
    display: none;
  }

  .solo-movil {
    display: block;
  }

  .solo-movil .btn-hablamos {
    width: 100%;
    justify-content: center;
    padding: 12px;
  }
}

/* POPUP ¿HABLAMOS? */
.popup-hablamos {
  position: fixed;
  top: 0;
  right: -100%;
  width: 350px;
  height: 100vh;
  background-color: white;
  box-shadow: -4px 0 15px rgba(0, 0, 0, 0.2);
  padding: 20px;
  z-index: 1000;
  transition: right 0.4s ease;
  overflow-y: auto;
}

.popup-hablamos.mostrar {
  right: 0;
}

.popup-formulario {
  margin-top: 20px;
}

.popup-formulario input[type="text"],
.popup-formulario input[type="tel"] {
  width: 100%;
  padding: 10px 14px;
  font-size: 15px;
  border: 1px solid #ccc;
  border-radius: 8px;
  margin-bottom: 14px;
  box-sizing: border-box;
}

.popup-formulario .campo-telefono {
  display: flex;
  align-items: center;
  gap: 10px;
}

.popup-formulario .campo-telefono input {
  flex: 1;
  border-radius: 8px 0 0 8px;
  margin: 0;
}

.popup-formulario .boton-enviar {
  background-color: var(--color-secundario);
  color: white;
  border: none;
  border-radius: 0 8px 8px 0;
  font-size: 18px;
  padding: 10px 14px;
  height: 44px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.popup-formulario .boton-enviar:hover {
  background-color: var(--color-hover);
}

.popup-formulario .politica {
  font-size: 13px;
  margin-top: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
  color: #333;
}

.popup-formulario .politica a {
  color: var(--color-secundario);
  text-decoration: underline;
  font-weight: 500;
}

.popup-formulario .grupo-seguros {
  display: grid;
  gap: 8px;
  margin-bottom: 16px;
}

.popup-formulario .grupo-seguros label {
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 6px;
  color: #222;
}

.cerrar-popup {
  position: absolute;
  top: 15px;
  right: 15px;
  background: none;
  border: none;
  font-size: 24px;
  font-weight: bold;
  color: #333;
  cursor: pointer;
  z-index: 1001;
}

.cerrar-popup:hover {
  color: var(--color-secundario);
}