@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Inter', sans-serif;
}

body {
  background: #f9f9f9;
}

/* 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; 
  }
}