@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

* {
  box-sizing: border-box;
  font-family: 'Inter', sans-serif;
}

body {
    background-color: #f4f4f4;
    margin: 0;
    padding: 0;
}

.top-bar {
  background: #242424;
  color: #ffffff;
  text-align: center;
  padding: 12px;
  font-size: 14px;
}

.navbar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 12px 100px;
  border-bottom: 1px solid #ddd;
}

.nav-left {
  justify-self: start;
}

.nav-left .search {
  padding: 8px 12px;
  border-radius: 20px;
  border: 1px solid #ccc;
  width: 220px;
}

.logo {
  height: 70px;
  width: 140px;
  display: block;
  margin: 0 auto 8px auto;
}

.nav-center {
  justify-self: center;
  text-align: center;
}

/* Flex para los íconos */
.nav-right {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 12px; /* espacio más controlado */
}

.menu {
  list-style: none;
  display: flex;
  gap: 25px;
  justify-content: center;
}

.menu li {
  position: relative;
}

.menu a {
  text-decoration: none;
  color: #000;
  font-weight: 500;
}

.nav-right img {
  width: 22px;
  cursor: pointer;
}

.search-box {
  position: relative;
  display: flex;
  align-items: center;
}

.search {
  padding: 8px 40px 8px 14px; /* espacio para el icono */
  border-radius: 20px;
  border: 1px solid #ccc;
  width: 22px;
  font-size: 14px;
}

.search:focus + .search-icon {
  opacity: 1;
}


/* Icono */
.search-icon {
  position: absolute;
  right: 14px;
  width: 16px;
  height: 16px;
  cursor: pointer;
  opacity: 0.6;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

/* Hover */
.search-box:hover .search-icon {
  opacity: 1;
  transform: scale(1.05);
}


/* MEGA DROPDOWN */
.dropdown-menu {
  position: absolute;
  top: 38px;
  left: 50%;
  transform: translateX(-50%);
  top: 100%;
  margin-top: 10px;
  pointer-events: auto;

  background: #ffffff;
  border-radius: 18px;
  padding: 18px;

  display: grid;
  grid-template-columns: repeat(4, 1fr); /* 👈 columnas */
  gap: 8px 16px;

  min-width: 520px;
  max-width: 1500px;

  box-shadow: 0 18px 40px rgba(0,0,0,0.14);

  opacity: 0;
  visibility: hidden;
  transition: all 0.25s ease;
  z-index: 9999;

  list-style: none;
  margin: 0;
}




/* Ítems */
.dropdown-menu li a {
  display: block;
  padding: 10px 14px;
  font-size: 14px;
  color: #1f2937;
  border-radius: 10px;
  transition: background 0.2s ease, color 0.2s ease;
}

.dropdown-menu li a:hover {
  background: #f4f6f8;
  color: #000;
}

.dropdown-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  transition: color 0.25s ease;
}

/* Flecha */
.dropdown-toggle .arrow {
  font-size: 15px;
  transition: transform 0.25s ease;
}

/* Cuando está abierto */
.dropdown:hover .dropdown-toggle {
  color: #E66400; /* azul elegante */
}

.dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
}

.dropdown:hover .dropdown-toggle .arrow {
  transform: rotate(180deg);
}

.dropdown-title {
  grid-column: 1 / -1;
  font-size: 13px;
  font-weight: 600;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 4px 8px 12px;
  margin-bottom: 8px;
  border-bottom: 1px solid #e5e7eb;
}

/* HAMBURGUESA */
.burger {
  display: none;
  width: 28px;
  height: 20px;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
}

.burger img {
  width: 24px;
  height: 24px;
}

.menu-overlay{
  display: none;
}

/* ===============================
   OVERLAY BLUR
================================ */
.nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);

  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease;

  z-index: 900;
}

/* ACTIVO */
.nav-overlay.active {
  opacity: 1;
  visibility: visible;
}

body.menu-open {
  overflow: hidden;
}

/* ===============================
   SEARCH OVERLAY - PANTALLA COMPLETA
================================ */
/* ===============================
   SEARCH OVERLAY PROFESIONAL
================================ */
.search-overlay {
  position: fixed;
  inset: 0;
  background: #fff; /* pantalla blanca completa */
  display: flex;
  flex-direction: column; /* input arriba */
  align-items: center; /* centrado horizontal */
  justify-content: flex-start; /* input arriba */
  padding-top: 40px; /* más arriba que antes */
  opacity: 0;
  visibility: hidden;
  transition: all 0.25s ease;
  z-index: 1500;
}

.search-overlay.active {
  opacity: 1;
  visibility: visible;
}

.search-overlay .search-container {
  width: 90%;
  max-width: 600px;
  background: transparent;
}

.search-overlay input {
  width: 100%;
  padding: 14px 16px 14px; /* espacio para ícono de lupa */
  font-size: 16px;
  border: 1px solid #ddd; /* borde sutil */
  border-radius: 24px; /* más redondeado para estilo moderno */
  outline: none;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05); /* sombra ligera profesional */
  transition: all 0.2s ease;
}

/* Hover y focus para input */
.search-overlay input:focus {
  border-color: #888;
  box-shadow: 0 6px 16px rgba(0,0,0,0.1);
}

/* Icono de lupa dentro del input */
.search-overlay .search-container {
  position: relative;
}

/* AYUDA */
.ayuda {
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding: 0 0 0 8%;
  background: #fff;
  align-items: center;
  gap: 40px;
  margin-top: 10px;
  margin-bottom: 20px;
}

.ayuda-texto{
  margin: 45px;
}

.ayuda-texto h2 {
  font-size: 32px;
  margin-bottom: 15px;
}

.ayuda-texto p {
  color: #555;
  line-height: 1.6;
  margin-bottom: 25px;
}

.btn-ayuda {
  background: #f07f2f;
  color: #fff;
  padding: 12px 22px;
  border-radius: 20px;
  text-decoration: none;
  font-weight: 500;
}

.ayuda-img img {
  width: 100%;
}

/* NEWSLETTER */
.newsletter {
  margin-top: 0; 
  position: relative;
  z-index: 2; 
}

.newsletter-box {
  background: #222;
  color: #fff;
  margin: auto;
  width: 80%;
  padding: 35px 40px;
  border-radius: 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 30px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}

.newsletter-form {
  display: flex;
  gap: 12px;
}

.newsletter-form input {
  padding: 12px 18px;
  border-radius: 25px;
  border: none;
  width: 260px;
}

.newsletter-form button {
  background: #f07f2f;
  color: #fff;
  border: none;
  padding: 12px 25px;
  border-radius: 25px;
  cursor: pointer;
}

/* FOOTER */
.footer {
  background: #000;
  color: #ccc;
  padding: 80px 8% 30px;
  margin-top: -60px;
   position: relative;
  z-index: 1;
}

.footer-contenido {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 40px;
}

.footer-col h4 {
  color: #fff;
  margin-bottom: 15px;
}

.footer-col a {
  color: #aaa;
  text-decoration: none;
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
}

.footer-col p {
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 15px;
}

.logo {
  width: 140px;
  margin-bottom: 10px;
}

.social img {
  width: 22px;
  margin-right: 10px;
  cursor: pointer;
}

.icon {
  width: 16px;
}

.footer-copy {
  text-align: center;
  margin-top: 40px;
  font-size: 13px;
  color: #777;
}

/* MODAL CENTRAL - INICIO OCULTO */
.newsletter-modal {
  display: none; /* 🔹 inicia oculto */
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

/* CAJA DEL MODAL */
.newsletter-modal .modal-content {
  background: #fff;
  padding: 30px 40px;
  border-radius: 16px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.25);
  display: flex;
  align-items: center;
  gap: 15px;
  font-size: 18px;
  color: #ff6a00;
  animation: scaleUp 0.4s ease forwards;
}

/* CHECK ANIMADO */
.newsletter-modal .modal-content img {
  width: 32px;
  height: 32px;
  transform: scale(0);
  animation: pop 0.4s forwards;
}

/* ANIMACIONES */
@keyframes scaleUp {
  from { transform: scale(0.7); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

@keyframes pop {
  0% { transform: scale(0); }
  50% { transform: scale(1.4); }
  100% { transform: scale(1); }
}

/* RESPONSIVE */
@media (max-width: 700px) {

    .footer {
    padding: 50px 8% 20px;
    margin-top: -20px;
  }

  .footer-contenido {
    display: grid;
    grid-template-columns: 1fr 1fr; /* dos columnas para las secciones */
    gap: 20px;
  }

  /* Logo centrado en su propia fila */
  .footer-col:first-child {
    grid-column: 1 / -1; /* ocupa todo el ancho */
    text-align: center;
    margin-bottom: 30px; /* separa del resto */
  }

  /* Mantener las otras columnas en 2x1 (lado a lado) */
  .footer-col:not(:first-child) {
    text-align: left;
  }

  .footer-col h4 {
    font-size: 16px;
    margin-bottom: 12px;
  }

  .footer-col a,
  .footer-col p {
    font-size: 13px;
    margin-bottom: 8px;
  }

  .logo {
    width: 120px;
    margin-bottom: 15px;
  }

  .social {
    justify-content: center;
  }

  .social img {
    width: 20px;
    margin: 0 5px;
  }

  .footer-copy {
    font-size: 12px;
    text-align: center;
    margin-top: 30px;
  }
  /* AYUDA */
  .ayuda {
    grid-template-columns: 1fr;
    padding: 20px 8%;
    gap: 20px;
    text-align: center;
  }

  .ayuda-texto {
    margin: 20px 0;
  }

  .ayuda-texto h2 {
    font-size: 26px;
  }

  .ayuda-texto p {
    font-size: 14px;
    line-height: 1.5;
  }

  .btn-ayuda {
    padding: 10px 18px;
    font-size: 14px;
  }

  .ayuda-img img {
    width: 80%;
    margin: 0 auto;
    border-radius: 10px;
  }

  /* NEWSLETTER */
  .newsletter-box {
    flex-direction: column;
    text-align: center;
    gap: 20px;
    padding: 25px 20px;
    width: 90%;
  }

  .newsletter-form {
    flex-direction: column;
    width: 100%;
    gap: 15px;
  }

  .newsletter-form input,
  .newsletter-form button {
    width: 100%;
  }

  /* FOOTER */
  .footer {
    padding: 50px 8% 20px;
    margin-top: -20px;
  }

  .footer-contenido {
    gap: 25px;
  }

  .footer-col h4 {
    font-size: 16px;
    margin-bottom: 12px;
  }

  .footer-col a,
  .footer-col p {
    font-size: 13px;
    margin-bottom: 8px;
  }

  .logo {
    width: 120px;
  }

  .social img {
    width: 20px;
  }

  .footer-copy {
    font-size: 12px;
    margin-top: 30px;
  }
}

/* TABLETS / MEDIANAS (700px–1200px) */
@media (max-width: 1200px) and (min-width: 700px) {
  .footer-contenido {
    grid-template-columns: repeat(4, 1fr); /* 4 columnas: las secciones */
    gap: 30px;
  }

  .footer-col:first-child {
    grid-column: 1 / -1; /* logo centrado arriba */
    text-align: center;
    margin-bottom: 25px;
  }

  .footer-col p {
    text-align: center;
    justify-content: center; 
  }
}


/* ===============================
   RESPONSIVE NAVBAR (MOBILE)
================================ */
@media (max-width: 1024px) {

  .navbar {
    display: flex; /* cambiar grid a flex */
    align-items: center;
    justify-content: center; /* todo en una línea */
    gap: 6vw;
    padding: 12px 16px;
  }

  .nav-left, .nav-center, .nav-right {
    display: flex;
    align-items: center;
  }

  .logo {
    height: 42px;
  }

  .burger {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    z-index: 1200;
  }

  /* MENU LATERAL */
  .menu {
    position: fixed;
    top: 0;
    left: -100%;
    width: 85%;
    max-width: 320px;
    height: 100vh;
    background: #fff;
    flex-direction: column;
    padding: 10px;
    transition: left 0.3s ease;
    z-index: 1000;
    overflow-y: auto;
    padding-bottom: 80px;
  }

  .menu.active {
    left: 0;
  }

  .menu a {
    display: flex;
    justify-content: space-between;
    padding: 14px 6px;
    border-bottom: 1px solid #eee;
  }

  /* DROPDOWN MOBILE */
  .dropdown-menu {
    position: static;
    transform: none;
    box-shadow: none;
    background: #fff;

    display: none;
    grid-template-columns: 1fr;
    padding: 0;
    margin-top: 10px;

    min-width: 100%;
    max-width: 100%;
    max-height: 40vh;
    overflow-y: auto;

    opacity: 1;
    visibility: visible;
  }

  .dropdown.open .dropdown-menu {
    display: block;
  }

  /* DESACTIVAR HOVER EN MOBILE */
  .dropdown:hover .dropdown-menu {
    transform: none;
  }

  .dropdown-title {
    display: none;
  }

  body.menu-open .burger {
    opacity: 0;
    pointer-events: none;
  }

  .burger {
    display: flex;
  }

  .navbar {
    grid-template-columns: auto 1fr auto;
  }

  .nav-left {
    display: block;
  }

  .search-box {
    width: auto;
  }

  .search {
    display: none; /* ocultamos input */
  }

  .search-icon {
    position: static;
    width: 22px;
    height: 22px;
    opacity: 1;
    cursor: pointer;
  }

}

