/* ===========================
   Banner inferior
   =========================== */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9998;
  display: none; /* se muestra desde JS */
  background: rgba(0, 0, 0, 0.92);
  border-top: 3px solid #ffcc00;
  color: #fff;
  font-size: 14px;
  line-height: 1.5;
  padding: 14px 18px;
  box-shadow: 0 -10px 25px rgba(0, 0, 0, 0.7);
}

.cookie-banner__content {
  max-width: 980px;
  margin: 0 auto;
}

.cookie-banner__content p {
  margin: 0 0 8px;
}

.cookie-banner__content a {
  color: #ffcc00;
  text-decoration: underline;
}

.cookie-banner__actions {
  max-width: 980px;
  margin: 0 auto;
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  flex-wrap: wrap;
}

/* Botones genéricos */
.cookie-btn {
  border-radius: 999px;
  padding: 8px 18px;
  font-size: 13px;
  font-weight: 600;
  border: 2px solid transparent;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: .03em;
  transition: all .18s ease;
}

.cookie-btn--primary {
  background: #ffcc00;
  color: #000;
}

.cookie-btn--primary:hover {
  filter: brightness(0.9);
}

.cookie-btn--outline {
  background: transparent;
  border-color: #ffcc00;
  color: #ffcc00;
}

.cookie-btn--outline:hover {
  background: #ffcc00;
  color: #000;
}

.cookie-btn--ghost {
  background: transparent;
  border-color: rgba(255,255,255,0.4);
  color: #fff;
}

.cookie-btn--ghost:hover {
  border-color: #ffcc00;
  color: #ffcc00;
}

/* ===========================
   Modal de configuración
   =========================== */

.cookie-modal {
  position: fixed;
  inset: 0;
  display: none; /* JS la pone en flex al abrir */
  align-items: center;
  justify-content: center;
  z-index: 9999;
  font-family: inherit;
}

.cookie-modal[aria-hidden="false"] {
  display: flex;
}

.cookie-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
}

.cookie-modal__dialog {
  position: relative;
  z-index: 1;
  width: 90%;
  max-width: 900px;
  max-height: 90vh;
  background: #ffffff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 15px 40px rgba(0,0,0,0.7);
  display: flex;
  flex-direction: column;
}

/* Header negro con toque INGCO */
.cookie-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 22px;
  background: #000;
  border-bottom: 3px solid #ffcc00;
}

.cookie-modal__header h2 {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  color: #ffcc00;
}

.cookie-modal__close {
  background: transparent;
  border: none;
  color: #ffffff;
  font-size: 20px;
  cursor: pointer;
  line-height: 1;
}

/* Cuerpo scrollable */
.cookie-modal__body {
  padding: 18px 22px 8px;
  overflow-y: auto;
  max-height: 56vh;
  font-size: 14px;
  color: #222;
}

.cookie-modal__body > p {
  margin-top: 0;
  margin-bottom: 16px;
}

/* Grupos de cookies */
.cookie-group {
  padding: 14px 0;
  border-top: 1px solid #eee;
}

.cookie-group:first-of-type {
  border-top: none;
}

.cookie-group__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 6px;
}

.cookie-group__header h3 {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
}

.cookie-group p {
  margin: 0;
  color: #555;
}

/* Píldora "Siempre activas" */
.cookie-pill {
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.cookie-pill--locked {
  background: #ffcc00;
  color: #000;
}

/* Switch tipo iOS INGCO */
.cookie-switch {
  position: relative;
  width: 46px;
  height: 24px;
  flex-shrink: 0;
}

.cookie-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.cookie-switch__slider {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background-color: #d1d1d1;
  transition: background-color .2s ease;
}

.cookie-switch__slider::before {
  content: "";
  position: absolute;
  left: 3px;
  top: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 4px rgba(0,0,0,.3);
  transition: transform .2s ease;
}

.cookie-switch input:checked + .cookie-switch__slider {
  background-color: #ffcc00;
}

.cookie-switch input:checked + .cookie-switch__slider::before {
  transform: translateX(20px);
}

/* Footer botones */
.cookie-modal__footer {
  padding: 12px 22px 16px;
  border-top: 1px solid #eee;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

/* ===========================
   Responsive
   =========================== */

@media (max-width: 768px) {
  .cookie-modal__dialog {
    width: 96%;
    max-height: 96vh;
  }

  .cookie-modal__body {
    max-height: 58vh;
  }

  .cookie-banner__content,
  .cookie-banner__actions {
    text-align: left;
  }

  .cookie-banner__actions {
    justify-content: flex-start;
  }
}

/* =========================================================
   Ajuste INGCO: botón "Rechazar no esenciales"
   ========================================================= */

/* Banner inferior */
#cookieRejectBtn {
  background: #ffcc00 !important;
  color: #000 !important;
  border: 2px solid #ffcc00 !important;
  border-radius: 999px !important;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .03em;
}

#cookieRejectBtn:hover {
  filter: brightness(0.9);
}

/* Dentro de la ventana de configuración */
#cookieModalReject {
  background: #ffcc00 !important;
  color: #000 !important;
  border: 2px solid #ffcc00 !important;
  border-radius: 999px !important;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .03em;
}

#cookieModalReject:hover {
  filter: brightness(0.9);
}

/* =========================================================
   INGCO: Mejorar relevancia del botón "Aceptar todas"
   ========================================================= */

/* BOTÓN PRINCIPAL — modal */
#cookieModalAccept {
  background: #ffcc00 !important;
  color: #000 !important;
  border: 3px solid #ffcc00 !important;
  border-radius: 999px !important;
  padding: 14px 32px !important;
  font-size: 17px !important;
  font-weight: 800 !important;
  text-transform: uppercase;
  letter-spacing: .04em;

  /* Relevancia visual */
  box-shadow: 0 0 18px rgba(255, 204, 0, 0.65) !important;
  transform: scale(1.03);
  transition: all .2s ease-in-out;
}

#cookieModalAccept:hover {
  filter: brightness(0.95);
  box-shadow: 0 0 28px rgba(255, 204, 0, 0.85) !important;
  transform: scale(1.06);
}

/* Botón en el banner inferior */
#cookieAcceptBtn {
  background: #ffcc00 !important;
  color: #000 !important;
  border: 3px solid #ffcc00 !important;
  border-radius: 999px !important;
  padding: 14px 32px !important;
  font-size: 17px !important;
  font-weight: 800 !important;
  text-transform: uppercase;
  letter-spacing: .04em;

  box-shadow: 0 0 18px rgba(255, 204, 0, 0.65) !important;
  transform: scale(1.03);
  transition: all .2s ease-in-out;
}

#cookieAcceptBtn:hover {
  filter: brightness(0.95);
  box-shadow: 0 0 28px rgba(255, 204, 0, 0.85) !important;
  transform: scale(1.06);
}




