/* Pie de página con info y enlaces. */
/* ================================
   EXIT INTENT POPUP – OVERLAY
===================================*/
#exit-popup {
  position: fixed;
  inset: 0; /* top:0; right:0; bottom:0; left:0 */
  display: flex;
  justify-content: center;
  align-items: center;

  background: rgba(0,0,0,0.45); /* Fondo oscuro */
  backdrop-filter: blur(3px);   /* Suaviza el fondo */

  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease;
  z-index: 9999;
}

/* Mostrar overlay + popup */
#exit-popup.active {
  opacity: 1;
  visibility: visible;
}

/* ================================
   POPUP BOX
===================================*/
.exit-popup-content {
  position: relative;
  background: var(--color-bg);
  padding: 2rem;
  width: min(420px, 90vw);
  border-radius: 20px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.12);
  overflow: hidden;
  font-family: var(--font-sans);

  /* animación de entrada del bloque */
  transform: scale(0.95);
  opacity: 0;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

/* Popup cuando está activo */
#exit-popup.active .exit-popup-content {
  transform: scale(1);
  opacity: 1;
}

/* ================================
   CLOSE BUTTON (X)
===================================*/
.exit-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: rgb(251 250 235 / 85%);
  border: 2px dashed rgba(37,44,16,0.06);
  cursor: pointer;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--color-accent);
  transition: transform 0.18s ease, opacity 0.18s ease;
}

.exit-close:hover {
  transform: scale(1.05);
  opacity: 0.95;
}

/* ================================
   TIPOGRAFÍA
===================================*/
.exit-popup-content h3 {
  margin-bottom: 0.6rem;
  font-size: 1.4rem;
  color: var(--color-primary);
  font-weight: 700;
  text-align:center;
}

.exit-popup-content p {
  margin-bottom: 1.4rem;
  color: var(--color-text);
  opacity: 0.9;
  line-height: 1.45;
}

/* ================================
   CTA BUTTON (.btn-filled style)
===================================*/
.popup-btn {
  display: inline-block;
  padding: 0.85rem 1.2rem;
  border-radius: var(--radius);
  background: var(--color-accent);
  border: 2px solid var(--color-accent);
  color: var(--color-white);
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.18s ease, background 0.18s ease;
  white-space: nowrap;
  text-transform: uppercase;
}

.popup-btn:hover {
  transform: translateY(-3px);
  background: var(--color-primary);
  border: 2px solid var(--color-accent);
}

/*===============================
  ANIMACIÓN CTA
================================*/
#exit-popup.active .popup-btn {
  animation: ctaPulse 1.8s ease 0.28s 1;
}

@keyframes ctaPulse {
  0%   { transform: translateY(0) scale(1); }
  50%  { transform: translateY(-4px) scale(1.02); }
  100% { transform: translateY(0) scale(1); }
}

/* ================================
   ACCESSIBILITY
===================================*/
.popup-btn:focus,
.exit-close:focus {
  box-shadow: 0 0 0 4px rgba(168,138,237,0.18);
  outline: none;
}

/* ================================
   RESPONSIVE
===================================*/
@media (max-width: 900px) {
  .exit-popup-content {
    padding: 1.5rem;
    border-radius: 18px;
  }
  .exit-close {
    top: 8px;
    right: 8px;
    width: 34px;
    height: 34px;
  }
  .popup-btn {
    width: 100%;
    text-align: center;
  }
}


/* ==============================================
   ---- FOOTER ----
   ============================================== */
/* ==============================================
   FOOTER MODERNO – VICTORIA CON UVE
============================================== */

.site-footer {
  position: relative;
  background: var(--color-bg); /* Fondo neutro */
  color: var(--color-text);
  padding: 5rem 2rem 2rem;
  font-family: var(--font-sans);
  box-shadow: 0 -4px 20px rgba(40, 225, 218, 0.08);
}

/* Línea animada superior */
.site-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: -10%;
  width: 120%;
  height: 3px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--color-primary),
    var(--color-accent),
    var(--color-primary),
    transparent
  );
  animation: glowLine 3s ease-in-out infinite;
}

@keyframes glowLine {
  0%, 100% { opacity: 0.4; transform: scaleX(0.85); }
  50% { opacity: 1; transform: scaleX(1); }
}

/* Contenedor de columnas */
.footer-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 3rem;
  max-width: var(--max-width);
  margin: 0 auto;
}

/* Columnas */
.footer-col {
  flex: 1 1 280px;
}

/* Logo */
.footer-logo img {
  width: 140px;
  margin-bottom: 1rem;
  filter: drop-shadow(0 4px 10px rgba(40, 225, 218, 0.25));
}

/* Descripción */
.footer-description {
  font-size: 0.95rem;
  line-height: 1.6;
  opacity: 0.8;
}

/* Titulos columnas */
.footer-col h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--color-secondary);
  margin-bottom: 1rem;
  letter-spacing: 0.5px;
}

/* ========================
   BOTÓN SUSCRIPCIÓN
======================== */
.btn-suscribete {
  display: inline-block;
  padding: 0.75rem 1.4rem;
  border-radius: var(--radius);
  background: var(--color-secondary);
  color: var(--color-white2);
  font-weight: 700;
  font-size: 0.95rem;
  text-transform: uppercase;
  text-decoration: none;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  margin-top: 10%;
}

.btn-suscribete:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(40, 225, 218, 0.25);
  background-color: var(--color-orange);
}

/* ========================
   CONTACTO
======================== */
.footer-contact {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem 0;
}

.footer-contact li {
  margin-bottom: 0.5rem;
}

.footer-contact a {
  text-decoration: none;
  color: var(--color-text);
  opacity: 0.85;
  transition: opacity 0.25s ease, color 0.25s ease;
}

.footer-contact a:hover {
  color: var(--color-primary);
  opacity: 1;
}

.footer-contact i {
  margin-right: 0.5rem;
  color: var(--color-secondary);
}

/* ========================
   REDES SOCIALES
======================== */
.social-links a {
  font-size: 1.25rem;
  margin-right: 0.8rem;
  color: var(--color-secondary);
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.social-links a:hover {
  transform: translateY(-3px);
  opacity: 0.8;
}

/* ========================
   FOOTER BOTTOM
======================== */
.footer-bottom {
  text-align: center;
  margin-top: 3rem;
  padding-top: 1.5rem;
  font-size: 0.85rem;
  opacity: 0.75;
  border-top: 1px solid rgba(40, 225, 218, 0.15);
}

.legal-links a {
  color: var(--color-text);
  text-decoration: none;
  margin: 0 0.3rem;
}

.legal-links a:hover {
  color: var(--color-primary);
}

/* ========================
   RESPONSIVE
======================== */
@media (max-width: 800px) {
  .footer-container {
    flex-direction: column;
    text-align: center;
    align-items: center;
  }

  .footer-col {
    flex: 1 1 100%;
    margin-bottom: 2rem;
  }

  .footer-logo img {
    margin: 0 auto 1rem;
  }

  .social-links a {
    margin: 0 0.6rem;
  }

  .btn-suscribete {
    width: 100%;
    text-align: center;
  }
}
