/*==================================
  Google Fonts corporativas
==================================*/
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;700&family=Sora:wght@400;500;600;700&display=swap');

/*==================================
  BANNER PRINCIPAL
==================================*/
#cookies-seinto-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: rgba(0, 0, 0, 0.75);
  box-shadow: 0 -2px 8px rgba(0,0,0,0.2);
  padding: 20px 25px;
  display: flex;
  align-items: center;
  z-index: 9999;
  font-family: 'Poppins', sans-serif;
  font-size: 16px;
  color: #fff;
  line-height: 1.4;
}
#cookies-seinto-banner.hide {
  display: none;
}

/* Texto del banner */
.cookies-banner__text {
  flex: 1;
  margin-right: 20px;
}

/* Botón “Cerrar” */
#cookies-seinto-close {
  position: absolute;
  top: 2px; right: 9px;
  background: transparent;
  border: none;
  font-size: 22px;
  color: #fff;
  cursor: pointer;
}
#cookies-seinto-close:hover {
  color: #ddd;
}

/*==================================
  BOTONES DEL BANNER
==================================*/
.cookies-banner__buttons {
  display: flex;
}
.cookies-banner__buttons button {
  font-family: 'Sora', sans-serif;
  font-weight: 500;
  font-size: 16px;
  height: 50px;
  min-width: 130px;
  padding: 0 18px;
  margin-left: 12px;
  border-radius: 25px;
  cursor: pointer;
  transition: background-color .3s, border-color .3s, color .3s;
}

/* — Botón “Acepto” — */
#cookies-seinto-accept {
  background-color: #128c4b;
  color: #fff;
  border: none;
}
#cookies-seinto-accept:hover {
  background-color: white;
  color: #128c4b;
  border: 2px solid #128c4b;
}

/* — Botón “Rechazar todo” — */
#cookies-seinto-reject {
  background-color: #c70a33;
  color: white;
  border: 2px solid #c70a33;
}
#cookies-seinto-reject:hover {
  background-color: #fff;
  color: #c70a33;
  border: 2px solid #c70a33;
}

/* — Botón “Configurar” — */
#cookies-seinto-configure {
  background-color: #ffcb06;
  color: black;
  border: none;
}
#cookies-seinto-configure:hover {
  background-color: white;
  color: black;
  border: 2px solid #ffcb06;
}

/*==================================
  MODAL DE CONFIGURACIÓN
==================================*/
.cookies-modal {
  display: none;
  position: fixed; top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 10000;
}
.cookies-modal__overlay {
  position: absolute; top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.5);
}
.cookies-modal__content {
  position: relative;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  max-width: 720px;
  margin: 60px auto;
  padding: 30px 25px;
  font-family: 'Poppins', sans-serif;
  font-size: 16px;
  line-height: 1.5;
}

/* Header con fecha y “Consentimiento” */
.cookies-modal__header {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
  font-size: 14px;
  color: #555;
}
.cookies-modal__header .timestamp:before {
  content: "\1F553"; /* icono reloj */
  margin-right: 6px;
}
.cookies-modal__header .download {
  color: #00f;
  font-weight: bold;
  text-decoration: none;
}
.cookies-modal__header .download:before {
  content: "\2B07"; /* flecha abajo */
  margin-right: 4px;
}

/* Título global */
.cookies-modal__content h3 {
  font-family: 'Sora', sans-serif;
  font-weight: 600;
  font-size: 20px;
  margin: 0 0 20px;
  color: #222;
}

/* Tarjeta de cada categoría */
.cookies-category {
  background: #fafafa;
  border: 1px solid #eee;
  border-radius: 6px;
  margin-bottom: 20px;
  padding: 15px 20px;
}
.cookies-category__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.cookies-category__title {
  font-family: 'Sora', sans-serif;
  font-weight: 600;
  font-size: 18px;
  color: #222;
}

/* Toggle estilo “No / Sí” */
.cookies-category__header label.switch {
  position: relative;
  width: 50px; height: 24px;
}
.cookies-category__header label.switch input {
  opacity: 0; width: 0; height: 0;
}
.cookies-category__header label.switch .slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: #ccc;
  border-radius: 24px;
  transition: .3s;
}
.cookies-category__header label.switch .slider:before {
  position: absolute;
  content: "";
  height: 20px; width: 20px;
  left: 2px; bottom: 2px;
  background-color: #fff;
  border-radius: 50%;
  transition: .3s;
}
.cookies-category__header label.switch input:checked + .slider {
  background-color: #128c4b;
}
.cookies-category__header label.switch input:checked + .slider:before {
  transform: translateX(26px);
}

/* Detalles expandibles */
.cookies-category__details {
  margin-top: 12px;
}
.toggle-details {
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
  color: #128c4b;
  cursor: pointer;
  display: inline-block;
}
.toggle-details:after {
  content: " \25BC";
  font-size: 12px;
  transition: transform .3s;
}
.toggle-details.open:after {
  transform: rotate(180deg);
}
.details-content {
  display: none;
  margin-top: 12px;
}
.details-content.open {
  display: block;
}

/* Tabla interna de cookies */
.cookies-category__details table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 10px;
}
.cookies-category__details th,
.cookies-category__details td {
  padding: 8px 10px;
  border: 1px solid #e0e0e0;
  font-size: 14px;
  text-align: left;
  color: black;
}
.cookies-category__details th {
  background: #f5f5f5;
  font-weight: 600;
  color: black;
}

/* Botones del pie del modal */
.cookies-modal__actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 20px;
}
.cookies-modal__actions button {
  font-family: 'Poppins', sans-serif;
  font-size: 15px;
  padding: 10px 18px;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color .3s, color .3s;
}
/* Cancelar */
#cookies-seinto-cancel {
  background: #fff;
  color: #333;
  border: 1px solid #ccc;
  border-radius: 50px;
}
/* Rechazar todo */
#cookies-seinto-modal-reject {
  background: #c70a33;
  color: #fff;
  border: 2px solid #c70a33;
  border-radius: 50px;
}
#cookies-seinto-modal-reject:hover {
   background: #fff;
   color: #c70a33;
   border: 2px solid #c70a33;
}
/* Aceptar selección */
#cookies-seinto-modal-save {
  background: #333;
  color: #fff;
  border: 2px solid #333;
  border-radius: 50px;
}
#cookies-seinto-modal-save:hover{
  background: #128c4b;
  color: #fff;
  border: 2px solid #128c4b;
  border-radius: 50px;
}
/* Aceptar todo */
#cookies-seinto-modal-accept-all {
  background: #128c4b;
  color: #fff;
  border: none;
  border-radius: 50px;
  border: 2px solid #128c4b;
}
#cookies-seinto-modal-accept-all:hover {
  background: white;
  color: #128c4b;
  border: 2px solid #128c4b;
}
/*==================================
  RESPONSIVE: MÓVIL & TABLET
==================================*/
@media (max-width: 768px) {
  /* Banner: columna y botones full-width */
  #cookies-seinto-banner {
    flex-direction: column;
    text-align: center;
    padding: 15px 10px;
  }
  .cookies-banner__text {
    margin: 0 0 12px 0;
  }
  .cookies-banner__buttons {
    flex-direction: column;
    width: 100%;
  }
  .cookies-banner__buttons button {
    width: 100%;
    margin: 6px 0;
    min-width: auto;
  }
  #cookies-seinto-close {
    top: 8px;
    right: 12px;
  }

  /* Modal: ancho completo y padding reducido */
  .cookies-modal__content {
    width: 90%;
    margin: 30px auto;
    padding: 20px 15px;
  }
  .cookies-modal__content h3 {
    font-size: 18px;
  }

  /* Categorías: padding y font más pequeños */
  .cookies-category {
    padding: 10px 15px;
  }
  .cookies-category__title {
    font-size: 16px;
  }
  .cookies-category__details .toggle-details {
    font-size: 13px;
  }

  /* Tabla de cookies: fuente más pequeña, scroll horizontal */
  .cookies-category__details table {
    font-size: 12px;
    display: block;
    width: 100%;
    overflow-x: auto;
  }
  .cookies-category__details th,
  .cookies-category__details td {
    padding: 6px 8px;
  }

  /* Botones del modal: columna y full-width */
  .cookies-modal__actions {
    flex-direction: column;
    gap: 8px;
  }
  .cookies-modal__actions button {
    width: 100%;
    margin: 0;
  }
}
