/* css/terminos.css */

/* Fondo oscuro que cubre toda la pantalla */
.modal-overlay-tc {
  display: none; /* Oculto por defecto */
  position: fixed; 
  z-index: 10000; /* Muy alto para tapar todo */
  left: 0;
  top: 0;
  width: 100%; 
  height: 100%; 
  overflow: hidden; /* Evita scroll en el fondo */
  background-color: rgba(0,0,0,0.7); 
  backdrop-filter: blur(2px); /* Efecto borroso moderno */
}

/* La caja blanca del contenido */
.modal-caja-tc {
  background-color: #fff;
  margin: 5% auto; /* Centrado vertical */
  width: 90%; /* Ocupa 90% en celulares */
  max-width: 600px; /* No pasa de 600px en PC */
  max-height: 90vh; /* Nunca más alto que el 90% de la pantalla */
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
  display: flex;
  flex-direction: column; 
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* Cabecera del modal */
.modal-header-tc {
  padding: 15px 20px;
  border-bottom: 1px solid #eee;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.modal-header-tc h3 { margin: 0; font-size: 18px; color: #333; }

/* Botón X para cerrar */
.cerrar-x-tc {
  color: #aaa;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  line-height: 1;
  padding: 0 10px;
}
.cerrar-x-tc:hover { color: #000; }

/* Cuerpo con Scroll (Lo más importante para móviles) */
.modal-body-tc {
  padding: 20px;
  overflow-y: auto; /* Habilita scroll solo dentro del texto */
  font-size: 14px;
  line-height: 1.6;
  color: #444;
  text-align: left;
}

/* Pie del modal */
.modal-footer-tc {
  padding: 15px;
  border-top: 1px solid #eee;
  text-align: center;
}

/* Botón grande y táctil */
.btn-entendido-tc {
  background-color: #000; 
  color: #fff; 
  border: none; 
  padding: 12px 25px; 
  border-radius: 25px;
  font-size: 16px;
  cursor: pointer;
  width: 100%; 
  max-width: 200px;
  transition: background 0.3s;
}
.btn-entendido-tc:hover { background-color: #333; }

/* MEDIA QUERY: Ajustes para Celulares muy pequeños */
@media screen and (max-width: 480px) {
  .modal-caja-tc {
    width: 95%; 
    margin: 10% auto;
    max-height: 85vh;
  }
  .modal-body-tc {
    padding: 15px;
    font-size: 13px; 
  }
}