/* Aviso de cookies (consent.js). Colores del sistema de diseño de Kaizen Lab, con valores propios para no depender
   de las variables de cada página. "Aceptar" lleva el azafrán del botón de la web; "Rechazar" es un botón del mismo
   tamaño con borde, bien legible; "Configurar" va como enlace. */

/* En ordenador, una tarjeta en la esquina inferior izquierda: no tapa el botón de reserva, que va centrado.
   En móvil, una franja abajo a todo lo ancho */
.cc {
  position: fixed; left: 16px; bottom: 16px; z-index: 30;
  width: min(460px, calc(100% - 32px));
  background: #ffffff; color: #15283a;
  border: 1px solid #d3dbe1; border-radius: 18px;
  box-shadow: 0 6px 20px rgba(21, 40, 58, 0.08);
  font-size: .95rem; line-height: 1.5;
}
.cc-inner { padding: 16px 18px; display: flex; flex-direction: column; gap: 12px; }
.cc-text { margin: 0; }
.cc a, .cc-dialog a { color: #294d6b; }
.cc-actions { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 8px; }

.cc-btn {
  min-height: 46px; padding: 0 12px;
  border: 2px solid #294d6b; border-radius: 8px;
  background: #ffffff; color: #15283a;
  font: inherit; font-weight: 700; cursor: pointer; white-space: nowrap; touch-action: manipulation;
}
.cc-btn:hover { background: #e6edf3; }
.cc .cc-btn { min-width: 112px; }
/* Igual que el botón de reserva de la web */
.cc-btn.cc-primary { border-color: #f0a630; background: #f0a630; color: #15283a; box-shadow: inset 0 -3px 0 #c97f0c; }
.cc-btn.cc-primary:hover { border-color: #f5b44c; background: #f5b44c; }
.cc-btn.cc-link { justify-self: start; min-width: 0; padding: 0 4px; margin-left: -4px; border: 0; background: none; color: #294d6b; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.cc-btn.cc-link:hover { background: none; color: #15283a; }
.cc :focus-visible, .cc-dialog :focus-visible { outline: 3px solid #294d6b; outline-offset: 3px; }

.cc-dialog {
  width: min(560px, calc(100% - 32px)); max-height: calc(100% - 32px);
  padding: 24px; border: 0; border-radius: 18px;
  background: #ffffff; color: #15283a;
  font: inherit; font-size: .95rem; line-height: 1.5;
  overscroll-behavior: contain;
}
.cc-dialog::backdrop { background: rgba(21, 40, 58, 0.55); }
.cc-dialog h2 { margin: 0 0 8px; font-size: 1.25rem; font-weight: 800; font-variation-settings: "wdth" 110; text-wrap: balance; }
.cc-dialog p { margin: 0; color: #52646f; }
.cc-row { padding: 14px 0; border-top: 1px solid #d3dbe1; }
.cc-dialog > p:first-of-type { margin-bottom: 12px; }
/* La casilla va dentro de su etiqueta: todo el renglón se pulsa, sin huecos muertos */
.cc-check { display: flex; align-items: center; gap: 10px; min-height: 44px; margin-bottom: 4px; font-weight: 700; color: #15283a; cursor: pointer; touch-action: manipulation; }
.cc-check input { flex: none; width: 22px; height: 22px; margin: 0; accent-color: #294d6b; cursor: pointer; }
.cc-fixed { margin-bottom: 4px !important; font-weight: 700; color: #15283a !important; }
.cc-dialog .cc-actions { padding-top: 16px; border-top: 1px solid #d3dbe1; grid-template-columns: repeat(3, auto); justify-content: start; }
.cc-more { margin-top: 12px !important; font-size: .9rem; }

/* Pie: el botón de preferencias parece un enlace más, junto al del aviso legal */
.foot-links { display: flex; flex-wrap: wrap; gap: 12px 24px; }
.cc-prefs {
  display: inline-block; padding: 12px 0; margin: -12px 0;
  background: none; border: 0; color: inherit; font: inherit; text-decoration: underline; cursor: pointer;
}
.cc-prefs:hover { color: #ffffff; }

@media (max-width: 760px) {
  /* Como la barra de reserva fija del móvil: filete arriba, sin sombra y por encima de la zona del gesto de inicio */
  .cc { left: 0; bottom: 0; width: 100%; border-width: 1px 0 0; border-radius: 0; box-shadow: none; font-size: .9rem; }
  .cc-inner { padding: 14px 16px calc(14px + env(safe-area-inset-bottom)); gap: 12px; }
  .cc .cc-btn { min-height: 44px; min-width: 0; padding: 0 14px; font-size: .9rem; }
  /* Configurar a la izquierda; Rechazar y Aceptar, del mismo ancho, a la derecha */
  .cc-actions { grid-template-columns: auto 1fr 1fr; }
  .cc-dialog { padding: 20px; }
  .cc-row { padding: 10px 0; }
  .cc-check { margin-bottom: 0; }
  .cc-dialog .cc-actions { grid-template-columns: 1fr; gap: 6px; }
  .cc-dialog .cc-btn { min-height: 44px; }
}
