/* ===================== MODAL DE PRIVACIDAD ===================== */
#privacyModal {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.85);
  z-index: 9999;
  justify-content: center;
  align-items: center;
  padding: 20px;
  overflow-y: auto; /* Scroll en todo el modal si es muy largo en mobile */
  animation: fadeIn 0.4s ease-out;
}

.modal-content {
  background: white;
  max-width: 580px;
  width: 100%;
  border-radius: 16px;
  box-shadow: 0 15px 40px rgba(0,0,0,0.3);
  overflow: hidden;
  font-family: 'Segoe UI', Arial, sans-serif;
  max-height: 90vh; /* Máximo 90% de la pantalla para mobile, evita overflow fuera */
  display: flex;
  flex-direction: column;
  transform: scale(0.95); /* Animación inicial para "wow" */
  animation: popIn 0.5s ease-out forwards;
}

.logo-container-modal {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 15px;
  flex-wrap: wrap;
}

.logo-modal {
  height: 40px; /* Tamaño ajustado para modal */
  filter: brightness(1.2); /* Un poco más brillante para "wow" */
  transition: transform 0.3s;
}

.logo-modal:hover {
  transform: scale(1.1); /* Efecto hover genial */
}

.modal-header {
  background: linear-gradient(to right, #600000, #9D0000); /* Degradado del header principal */
  color: white;
  padding: 20px 25px;
  text-align: center;
  border-top-left-radius: 16px;
  border-top-right-radius: 16px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2); /* Sombra para profundidad */
}

.modal-header i {
  font-size: 42px;
  margin-bottom: 10px;
  animation: pulse 1.5s infinite; /* Animación "wow" de pulso */
}

@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.1); }
  100% { transform: scale(1); }
}

.modal-header h2 {
  margin: 0;
  font-size: 24px;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.4); /* Sombra para texto "wow" */
}

.modal-body {
  padding: 25px;
  line-height: 1.6;
  color: #333;
  flex-grow: 1; /* Crece para ocupar espacio */
  overflow-y: auto; /* Scroll interno si el contenido es largo (ej. mobile) */
  max-height: 50vh; /* Limita altura para que quepa en mobile y active scroll */
  background: #f9f9f9; /* Fondo suave para legibilidad */
  border-left: 5px solid #600000; /* Barra lateral para estilo genial */
}

.modal-body p {
  margin: 12px 0;
  transition: color 0.3s;
}

.modal-body p:hover {
  color: #600000; /* Hover para interactividad "wow" */
}

.modal-footer {
  padding: 20px 25px;
  background: #f8f9fa;
  text-align: center;
  border-bottom-left-radius: 16px;
  border-bottom-right-radius: 16px;
  box-shadow: 0 -4px 10px rgba(0,0,0,0.1); /* Sombra superior */
}

.btn-primary {
  background: linear-gradient(to right, #600000, #9D0000); /* Degradado rojo genial */
  color: white;
  border: none;
  padding: 12px 32px;
  font-size: 16px;
  border-radius: 8px;
  cursor: pointer;
  margin: 0 8px;
  transition: all 0.3s;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.btn-primary:hover {
  background: linear-gradient(to right, #9D0000, #600000); /* Invertido para "wow" */
  transform: translateY(-3px);
  box-shadow: 0 6px 12px rgba(0,0,0,0.3);
}

.btn-secondary {
  background: transparent;
  color: #600000;
  border: 2px solid #600000;
}

.btn-secondary:hover {
  background: #ffebee;
  color: #9D0000;
}

.link-pdf {
  color: #600000;
  font-weight: 600;
  text-decoration: underline;
  display: inline-flex;
  align-items: center;
  transition: color 0.3s;
}

.link-pdf:hover {
  color: #9D0000;
}

/* Para mobile: ajusta paddings y tamaños */
@media (max-width: 600px) {
  .modal-content {
    max-width: 95%;
    max-height: 95vh;
  }

  .logo-modal {
    height: 30px;
  }

  .modal-header {
    padding: 15px 20px;
  }

  .modal-header i {
    font-size: 32px;
  }

  .modal-header h2 {
    font-size: 20px;
  }

  .modal-body {
    padding: 20px;
    max-height: 40vh; /* Más scroll en mobile para caber */
  }

  .modal-footer {
    padding: 15px 20px;
  }

  .btn-primary {
    padding: 10px 24px;
    font-size: 14px;
    width: 100%; /* Botones full-width en mobile */
    margin: 8px 0;
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes popIn {
  from { transform: scale(0.8); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

/* Bloquear scroll del body mientras el modal está activo */
body.modal-open {
  overflow: hidden;
}