/* Estilos Básicos del Body */
/*body {
  margin: 0;
  font-family: Arial, sans-serif;

  /* Espacio para que el contenido no quede oculto por el aviso *
}*/







/* =========================================================
   SISTEMA DE COOKIES ANTI-BRINCO (ESTRUCTURA RÍGIDA)
   ========================================================= */
#cookie-notice {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  min-height: 130px;
  /* Altura fija para evitar saltos de crecimiento */
  background-color: #1a202c;
  color: white;
  z-index: 2147483647 !important;
  box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.4);

  /* Centrado Infalible */
  display: flex !important;
  align-items: center;
  justify-content: center;

  /* Animación Limpia */
  transform: translateY(100%);
  transition: transform 0.5s ease-out;
  box-sizing: border-box;
}

#cookie-notice.show {
  transform: translateY(0);
}

/* Contenedor que mantiene el texto y botones alineados */
.cookie-content-wrapper {
  width: 100%;
  max-width: 800px;
  /* Reducimos para que el texto no se estire tanto */
  padding: 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.cookie-content-wrapper p {
  margin: 0 0 15px 0 !important;
  font-size: 15px;
  line-height: 1.4;
  width: 100%;
  display: block;
}

/* Botones en una sola linea centrada */
.buttons {
  display: flex !important;
  gap: 15px;
  justify-content: center;
  width: 100%;
}

.btn-accept,
.btn-reject {
  width: 130px;
  padding: 8px 0;
  border-radius: 6px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: 0.3s;
  text-align: center;
}

.btn-accept {
  background-color: #1b9848;
  color: white;
}

.btn-reject {
  background-color: #e53e3e;
  color: white;
}








/*#cookie-notice {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 2147483647 !important; /* El valor máximo para que nada lo mueva *
    background: rgba(18, 22, 31, 0.98);
    padding: 20px 0;
    
    /* ESTO EVITA EL BRINCO *
    display: none; /* Se cambia a 'flex' vía JS *
    align-items: center;
    justify-content: center;
    flex-direction: column;
    text-align: center;
}


#cookie-notice.show {
  transform: translateY(0);
}

.cookie-content-wrapper {
  max-width: 1200px;
  width: 100%;
  /* ⭐ CORRECCIÓN DE CENTRADO: Usar block para que los elementos se apilen
       y text-align: center para centrar todo el contenido (texto y botones) *
  display: block;
  text-align: center;
}

.cookie-content-wrapper p {
  margin: 0 auto;
  /* Centra el bloque de texto si es más corto *
  line-height: 1.5;
  padding-right: 0;
  /* Elimina padding que interfiere con el centrado *
  padding-bottom: 1rem;
  width: fit-content;
  /* Permite que el margen automático funcione *
}

.info-link {
  color: #4299e1;
  text-decoration: underline;
  margin-left: 0.5rem;
}

.buttons {
  /* ⭐ CORRECCIÓN: Usamos inline-flex para centrar los botones como un grupo *
  display: inline-flex;
  gap: 1rem;
  margin-top: 0;
  justify-content: center;
  /* Centra los botones dentro del grupo *
}

.btn-accept,
.btn-reject {
  padding: 0.3rem 0.5rem;
  border: none;
  border-radius: 8px;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s;
  color: white;
  /* Color de texto común *
}

.btn-accept {
  width: 125px;
  background-color: #1b9848;
  /* Verde *
}

.btn-accept:hover {
  background-color: #207f4b;
}

.btn-reject {
  width: 125px;
  background-color: #e53e3e;
  /* Rojo *
}

.btn-reject:hover {
  background-color: #c53030;
}*/

/* ======================================================= */
/* 2. MODAL DE POLÍTICA (Visibilidad y Animación)          */
/* ======================================================= */

.policy-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  z-index: 10000;
  /* Debe estar por encima de todo */

  /* ⭐ ESTADO INICIAL: OCULTO Y SIN OPACIDAD */
  display: none;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease-out;
}

/* ⭐ ESTADO VISIBLE: SE MUESTRA CUANDO JS AÑADE LA CLASE 'open' */
.policy-modal-overlay.open {
  display: flex;
  /* Esto lo hace visible */
  opacity: 1;
  /* Desvanecimiento */
}

.policy-modal-content {
  background-color: white;
  padding: 2rem;
  max-width: 90%;
  width: 700px;
  max-height: 90vh;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  position: relative;
  display: flex;
  flex-direction: column;

  /* Animación de entrada */
  transform: scale(0.95);
  transition: transform 0.3s ease-out;
}

/* Animación de la entrada del modal */
.policy-modal-overlay.open .policy-modal-content {
  transform: scale(1);
  /* Al abrir, el modal escala a su tamaño normal */
}

.close-btn {
  position: absolute;
  top: 15px;
  right: 25px;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  color: #333;
  line-height: 1;
}

.close-btn:hover {
  color: #e53e3e;
}

.policy-scroll-area {
  flex-grow: 1;
  overflow-y: auto;
  margin-top: 1rem;
  padding-right: 15px;
}