@font-face {
  font-family: "ABCFavorit Light";
  src: url("../font/ABCFavorit-Light.otf") format("truetype");
}

body {
  margin: 0;
  font-family: "ABCFavorit Light", sans-serif;
  background-color: #e0e2e4;
}

.navbar {
  display: flex;
  align-items: center;
  background-color: transparent;
  padding: 30px 60px;
  justify-content: space-between;
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: transparent;
  padding: 30px 60px;
}

.hamburger-logo-container {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}

.hamburger-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
}

.hamburger-btn svg {
  width: 24px;
  height: 24px;
  color: #616873;
}

.mobile-logo {
  display: none;
  height: 30px;
}

.desktop-logo {
  display: block;
  height: 50px;
}

.menu {
  display: flex;
  gap: 20px;
  background-color: #c4cdd6;
  padding: 6px 28px;
  border-radius: 5px;
  margin-left: auto;
  margin-right: 100px;
}

.login {
  margin-left: auto;
}

.login a {
  text-decoration: none;
  background: #bd8fff;
  border-radius: 5px;
  color: #fff;
  padding: 12px 22px;
  font-size: 18px;
}

.navbar .logo img {
  height: 50px;
}

.navbar .menu {
  display: flex;
  gap: 20px;
  background-color: #c4cdd6;
  padding: 0px 28px;
  border-radius: 5px;
  margin-left: auto;
  margin-right: 100px;
}

.navbar .menu a {
  text-decoration: none;
  color: #616873;
  padding: 14px 15px;
  border-radius: 5px;
  font-size: 18px;
}

.navbar .menu a.active {
  color: #000;
}

.navbar .menu a.contacto {
  color: #ffffff;
  background: #bd8fff;
}

.navbar .menu a.contacto:hover {
  background-color: #c691d6;
}

.navbar .login {
  margin-left: 20px;
}

.navbar .login a {
  text-decoration: none;
  background: #bd8fff;
  border-radius: 5px;
  color: #fff;
  padding: 12px 22px;
  font-size: 18px;
  white-space: nowrap;
}

.navbar .login a:hover {
  background-color: #c691d6;
}

.lang-switch-container {
  display: flex;
  align-items: center;
}

.lang-switch {
  background: none;
  border: none;
  color: #616873;
  font-size: 16px;
  cursor: pointer;
  padding: 0px 8px;
  transition: all 0.3s ease;
}

.lang-switch:hover,
.lang-switch.active {
  color: #bd8fff;
}

.lang-divider {
  color: #616873;
  font-size: 16px;
}

@media (max-width: 1440px) {
  .navbar .menu {
    margin-right: 65px;
  }
}
@media (max-width: 1360px) {
  .navbar .menu {
    margin-right: 60px;
  }
}
.navbar .menu {
  gap: 10px;
}

@media (max-width: 1120px) {
  .navbar {
    padding: 20px 20px;
  }
  .navbar .login {
    margin-left: 0px !important;
  }
  .navbar .login a {
    font-size: 14px !important;
    padding: 10px 20px;
  }

  .navbar .menu {
    gap: 0px !important;
    padding: 2px 10px;
  }

  .desktop-logo {
    height: 30px !important;
  }

  .navbar .menu a {
    font-size: 14px !important;
  }

  .lang-switch {
    font-size: 14px !important;
  }
}

/* Laptops pequeñas */
@media (max-width: 1300px) {
  .navbar .login {
    margin-left: 10px;
  }
  .navbar .login a {
    font-size: 16px;
  }

  .navbar .menu {
    gap: 10px;
    margin: 0px;
  }

  .menu {
    margin: 0px;
  }

  .desktop-logo {
    height: 40px;
  }

  .navbar .menu a {
    font-size: 16px;
  }
}

@media (max-width: 860px) {
  .menu {
    display: none !important;
  }

  .login a {
    padding: 6px 14px !important;
    font-size: 14px !important;
  }

  .desktop-logo {
    display: none !important;
  }

  .hamburger-btn {
    display: block !important;
  }

  .mobile-logo {
    display: block !important;
    height: 72px;
  }

  .navbar {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 5px 20px;
  }

  .hamburger-logo-container {
    display: flex;
    align-items: center;
    gap: 0px;
  }

  .login {
    margin-left: auto;
  }
}

/* Contenedor del menú deslizante */
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 80%;
  height: 100%;
  background-color: #ffffff;
  box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1);
  transform: translateX(-100%);
  transition: transform 0.3s ease-in-out;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
}

.mobile-menu.open {
  transform: translateX(0); /* Hace visible el menú */
}

.mobile-top {
  padding: 30px;
}
.mobile-header img {
  width: 150px;
  margin-bottom: 20px;
}

.mobile-links {
  display: flex;
  flex-direction: column;
  gap: 10px; /* Espaciado entre cada enlace */
  background-color: #c4cdd6; /* Fondo del contenedor */
  border-radius: 10px;
  width: 140px;
  padding: 0px; /* Solo un pequeño padding general */
  margin-top: 20px;
  box-sizing: border-box;
}

/* Estilos para todos los enlaces */
.mobile-links a {
  text-decoration: none;
  color: #616873;
  font-size: 15px;
  padding: 10px 20px; /* Padding interno en cada <a> */
  background-color: transparent; /* Fondo normal */
  border-radius: 10px; /* Cada enlace con esquinas redondeadas */
  width: 100%;
  box-sizing: border-box;
  text-align: center;
  transition: background-color 0.3s;
}

.mobile-links a.active {
  color: #000;
}

.mobile-links a.contacto {
  background-color: #bd8fff; /* Morado para contacto */
  color: #ffffff; /* Texto blanco */
  font-weight: bold;
}

/* Hover especial para contacto */
.mobile-links a.contacto:hover {
  background-color: #c691d6; /* Morado más claro al pasar mouse */
}

.mobile-links .lang-switch-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  border-radius: 10px;
  width: 100%;
  box-sizing: border-box;
}

/* BOTONES del idioma */
.mobile-links .lang-switch {
  background: none;
  border: none;
  color: #616873;
  font-size: 15px;
  cursor: pointer;
  padding: 10px 20px;
  transition: all 0.3s ease;
}

/* Divider entre botones */
.mobile-links .lang-divider {
  color: #616873;
  font-size: 15px;
}

/* BOTÓN activo de idioma */
.mobile-links .lang-switch.active,
.mobile-links .lang-switch:hover {
  color: #bd8fff;
}

.mobile-login {
  margin-top: 20px;
}

.mobile-login a {
  text-decoration: none;
  display: inline-block; /* Ajusta el botón al contenido */
  background: #bd8fff;
  color: white;
  padding: 10px 25px;
  border-radius: 5px;
  text-align: left;
}
.mobile-footer {
  margin-top: auto;
  padding: 20px 30px; /* Espaciado uniforme */
  text-align: left; /* Alinea el contenido a la izquierda */
}

.mobile-footer .social {
  display: flex;
  flex-direction: column;
  gap: 10px; /* Espaciado entre enlaces */
  padding: 15px; /* Espaciado interno para el contenedor */
  padding-right: 36px;
  background-color: #f0f0f0; /* Fondo del contenedor */
  border-radius: 10px; /* Esquinas redondeadas del contenedor */
  width: fit-content; /* Ajusta el ancho al contenido */
  margin-top: 20px;
}

.mobile-footer .social a {
  text-decoration: none;
  color: #616873;
  font-size: 15px;
}

.mobile-footer p {
  font-size: 15px;
  color: #616873;
  margin: 5px 0; /* Espaciado entre párrafos */
  text-align: left; /* Alinea el texto a la izquierda */
}

/* ==================
   ESTILOS FOOTER
   ================== */

footer {
  background-color: #616873;
  color: #ffffff;
  padding: 50px 60px;
  padding-bottom: 30px;
}

.footer-container {
  width: 100%;
  margin: auto;
  display: flex;
  flex-wrap: nowrap;
  align-items: flex-start;
}

.left-section {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 34px;
}

.white-container {
  width: 500px;
  background-color: #ffffff;
  border-radius: 15px;
  padding: 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-left: 50px;
  padding-right: 50px;
}

.top-section {
  display: flex;
  align-items: center;
  gap: 50px;
}

.footer-logo {
  width: 150px;
  cursor: pointer;
}

.social-links {
  display: flex;
  gap: 10px;
  justify-content: center;
  align-items: center;
}

.social-links span {
  color: #000;
}

.social-links a {
  text-decoration: none;
  color: #333333;
  font-size: 14px;
}

.social-links a:hover {
  text-decoration: underline;
}

.images-container {
  display: flex;
  justify-content: space-evenly;
  align-items: center;
  width: 100%;
}

.footer-image {
  width: 80px;
  height: 80px;
  object-fit: cover;
}

.copyright {
  font-size: 14px;
  margin: 0 !important;
  padding: 0 !important;
}

.right-sections-container {
  flex: 2;
  background-color: #7f858f;
  border-radius: 15px;
  padding: 8px 30px;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  gap: 30px;
  padding-bottom: 8px;
  height: auto;
}

.light-container {
  background-color: #7f858f;
  border-radius: 15px;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  gap: 60px;
  width: 100%;
}

.footer-contact {
  flex: 1;
  margin-left: 30px;
}

.contact-btn {
  background-color: #bd8fff;
  color: #fff;
  border: none;
  border-radius: 5px;
  padding: 12px 22px;
  position: relative;
  top: -36px;
  font-size: 20px;
}
.newsletter-btn {
  background-color: #bd8fff;
  color: #fff;
  border: none;
  border-radius: 5px;
  padding: 12px 22px;
  position: relative;
  top: -36px;
  font-size: 18px;
}

.contact-info {
  position: relative;
  top: -20px;
}
.contact-info p,
.contact-info a {
  margin: 5px 0;
  text-align: left;
  font-size: 14px;
}

.contact-info .email-container {
  display: flex;
  gap: 15px;
  align-items: center;
}

.newsletter-section {
  display: flex;
  justify-content: space-between; /* Separa las secciones */
  align-items: flex-start; /* Alinea desde arriba */
  flex: 1;
  font-size: 14px;
}

/* Contenedor principal */
.footer-content {
  display: flex;
  flex-direction: column; /* Botón, enlaces y certificados en columna */
  align-items: flex-start;
}

/* Botón de Newsletter */
.newsletter-btn {
  margin-bottom: 10px; /* Espaciado entre botón y enlaces */
}

/* Contenedor de enlaces */
.footer-links-container {
  display: flex;
  justify-content: space-between; /* Distribuye las columnas horizontalmente */
  gap: 70px;
  position: relative;
  top: -20px;
  width: 100%; /* Ocupa todo el ancho disponible */
}

/* Listas de enlaces */
.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 5px;
}

.footer-links a {
  text-decoration: none;
  color: #ffffff;
}

.footer-links a:hover {
  text-decoration: underline;
}

.certificados-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0px;
  min-width: 0px;
  text-align: left;
}

.certificados-content {
  display: flex;
  flex-direction: row;
  justify-content: space-evenly;
  width: 100%;
}

.footer-links-title {
  color: #ffffff;
  margin-right: 20px;
}

.certificados-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.certificados-links li {
  margin-bottom: 5px;
}

.certificados-links a {
  text-decoration: none;
  color: #ffffff;
}

.certificados-links a:hover {
  text-decoration: underline;
}

.certificados-image {
  width: 100%;
  display: flex;
  justify-content: center;
}

.footer-cert-image {
  max-width: 100px;
  height: auto;
}

#language-loader {
  display: none;
  position: fixed;
  inset: 0;
  background-color: white;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 1.5s ease;
}

#language-loader.fade-out {
  animation: scaleOut 1.5s ease forwards;
  opacity: 0;
  pointer-events: none;
}

.loader-logo {
  width: 100px;
  height: 100px;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(180deg);
  }
}

@keyframes scaleOut {
  0% {
    transform: scale(1);
  }
  100% {
    transform: scale(2.5);
  }
}

@media (max-width: 1600px) {
  .footer-links-container {
    gap: 60px;
  }
  .light-container {
    gap: 40px;
  }
}
@media (max-width: 1440px) {
  .footer-links-container {
    gap: 40px;
  }
  .light-container {
    gap: 30px;
  }
}
@media (max-width: 1380px) {
  .footer-links-container {
    gap: 30px;
  }

  .white-container {
    width: 440px;
    padding-left: 20px;
    padding-right: 20px;
  }

  .contact-btn,
  .newsletter-btn {
    font-size: 14px;
    top: -32px;
  }

  .footer-contact {
    margin-left: 10px;
  }
  .right-sections-container {
    padding: 8px 20px;
  }

  .social-links a,
  .contact-info p,
  .contact-info a,
  .newsletter-section {
    font-size: 12px;
  }
  .left-section {
    gap: 30px;
  }
}
@media (max-width: 1280px) {
  .footer-container {
    flex-wrap: wrap;
  }
  .left-section {
    flex: 1 1 100%;
    text-align: center;
  }

  .footer-section.left-section {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: stretch;
  }

  .white-container {
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 15px;
    box-sizing: border-box;
  }

  .social-links {
    flex-wrap: wrap;
    gap: 10px;
  }

  .footer-image {
    width: 100px;
    height: 100px;
  }
  .right-sections-container {
    flex: 1 1 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    text-align: center;
    margin-top: 30px;
    height: auto;
  }
  .light-container {
    width: 100%;
  }
  .footer-contact,
  .newsletter-section {
    width: 100%;
    text-align: center;
    margin: 0;
  }

  .footer-links-container {
    justify-content: space-evenly;
  }

  .copyright2 {
    display: block !important;
    font-size: 14px;
  }

  .copyright {
    display: none;
  }

  .contact-btn,
  .newsletter-btn {
    top: -30px;
  }
  footer {
    padding: 0px;
    padding: 40px 60px 0px 60px;
  }

  .light-container {
    gap: 60px;
  }
  .footer-links-container {
    gap: 70px;
  }
}

.footer-large {
  display: block;
}

.footer-small {
  display: none;
}
@media (max-width: 1024px) {
  .light-container {
    gap: 50px;
  }
  .footer-links-container {
    gap: 40px;
  }
}

@media (max-width: 768px) {
  .footer-large {
    display: none;
  }
  .footer-small {
    display: block;
    background-color: #616873;
    color: #ffffff;
    padding: 25px 10px 0px 10px;
  }

  .contact-card p {
    font-size: 14px;
  }
  /* Contenedor principal */
  .footer-container-small {
    display: flex;
    flex-direction: column;
    gap: 30px;
  }

  /* Contenedor blanco */
  .white-container {
    background-color: #ffffff;
    padding: 20px;
    border-radius: 10px;
    display: flex;
    justify-content: left;
    align-items: flex-start;
    flex-direction: column;
    gap: 0px;
  }

  .images-container {
    margin-top: 12px;
  }

  /* Logo */
  .logo-container {
    margin-bottom: 6px;
  }

  .logo-container img {
    display: block;
    max-width: 130px;
  }

  /* Redes sociales */
  .social-links {
    display: flex;
    justify-content: left;
    flex-wrap: wrap;
    gap: 20px;
    font-size: 14px;
  }

  /* Tarjetas de contacto y newsletter */
  .card {
    background-color: #7f858f;
    border-radius: 10px;
    padding: 0px 20px 10px 20px;
    text-align: left;
  }

  /* Botones */
  .contact-btn,
  .newsletter-btn {
    background-color: #bd8fff;
    color: #ffffff;
    border: none;
    border-radius: 5px;
    padding: 10px 20px;
    font-size: 16px;
    margin-bottom: 10px;
    top: -18px;
  }

  /* Contenedor de enlaces */
  .footer-links {
    display: flex;
    gap: 60px;
  }

  /* Listas */
  .footer-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
  }

  .footer-links ul li {
    font-size: 14px;
  }

  .footer-links a {
    text-decoration: none;
    color: #ffffff;
  }

  .footer-links a:hover {
    text-decoration: underline;
  }

  .social-links a {
    font-size: 14px;
  }
  /* Contenedor de Certificados */
  .certificados-container {
    display: flex;
    flex-direction: column; /* Imagen abajo */
    align-items: center;
    gap: 10px;
    min-width: 250px;
    text-align: left;
  }

  /* Contenedor de Certificados y lista en dos columnas */
  .certificados-content {
    display: flex;
    flex-direction: row; /* Certificados a la izquierda, lista a la derecha */
    justify-content: start;
    width: 100%;
    margin-top: 20px;
  }

  /* Columna izquierda (Título de Certificados) */
  .footer-links-title {
    color: #ffffff;
  }

  /* Columna derecha (Lista de Certificados) */
  .certificados-links {
    list-style: none;
    padding: 0;
    margin: 0;
    margin-left: 20px;
  }

  .certificados-links li {
    margin-bottom: 5px;
  }

  .certificados-links a,
  .footer-links-title {
    font-size: 14px;
  }

  /* Contenedor de Derechos Reservados y la Imagen */
  .footer-bottom {
    display: flex;
    justify-content: space-between; /* Texto a la izquierda, imagen a la derecha */
    align-items: center;
    width: 100%;
  }

  /* Derechos reservados */
  .copyright {
    width: 50%;
    font-size: 14px;
    display: block !important;
  }

  /* Imagen en el footer */
  .footer-image-container {
    max-width: 120px;
  }

  .footer-cert-image {
    display: block;
    width: 100%;
    height: auto;
  }
  @media (max-width: 400px) {
    .footer-image {
      width: 60px;
      height: 60px;
    }

    .social-links {
      gap: 8px;
    }
  }
  @media (max-width: 344px) {
    .footer-container-small {
      gap: 24px;
    }
    .footer-image-container {
      max-width: 80px;
    }
    .contact-btn,
    .newsletter-btn {
      margin-bottom: 0px;
    }
    .social-links a {
      font-size: 12px;
    }

    .contact-btn,
    .newsletter-btn {
      font-size: 15px;
    }

    .contact-card p,
    .footer-links a,
    .footer-links-title,
    .certificados-links a {
      font-size: 12px;
    }
    .copyright {
      font-size: 13px;
    }
  }
}

  /* Ícono de WhatsApp */
  
  .whatsapp-float {
      position: fixed;
      bottom: 30px;
      right: 30px;
      z-index: 1000;
  }

  .whatsapp-button {
      width: 65px;
      height: 65px;
      background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      cursor: pointer;
      box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
      transition: all 0.3s ease;
      position: relative;
      text-decoration: none;
  }

  .whatsapp-button:hover {
      transform: scale(1.1);
      box-shadow: 0 6px 30px rgba(37, 211, 102, 0.6);
  }

  .whatsapp-icon {
      width: 35px;
      height: 35px;
      fill: white;
  }

  .whatsapp-tooltip {
      position: absolute;
      right: 80px;
      background: linear-gradient(135deg, #9b6fd8 0%, #7b5ab8 100%);
      color: white;
      padding: 12px 20px;
      border-radius: 25px;
      white-space: nowrap;
      opacity: 0;
      transform: translateX(10px);
      transition: all 0.3s ease;
      font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
      font-size: 14px;
      font-weight: 500;
      box-shadow: 0 4px 15px rgba(155, 111, 216, 0.3);
      pointer-events: none;
  }

  .whatsapp-tooltip::after {
      content: '';
      position: absolute;
      right: -8px;
      top: 50%;
      transform: translateY(-50%);
      width: 0;
      height: 0;
      border-top: 8px solid transparent;
      border-bottom: 8px solid transparent;
      border-left: 8px solid #7b5ab8;
  }

  .whatsapp-float:hover .whatsapp-tooltip {
      opacity: 1;
      transform: translateX(0);
  }

  @keyframes slideIn {
      from {
          transform: translateY(100px);
          opacity: 0;
      }
      to {
          transform: translateY(0);
          opacity: 1;
      }
  }

  .whatsapp-float {
      animation: slideIn 0.5s ease-out;
  }

  @media (max-width: 768px) {
      .whatsapp-float {
          bottom: 20px;
          right: 20px;
      }

      .whatsapp-button {
          width: 55px;
          height: 55px;
      }

      .whatsapp-icon {
          width: 30px;
          height: 30px;
      }

      .whatsapp-tooltip {
          display: none;
      }
  }