/* =========================================================
   Aviso de cookies (partes/aviso-cookies.php + assets/js/cookies.js)
   Banner abajo a la izquierda (abajo del todo en el móvil) y panel
   «Configurar» centrado. Azul marino con filo dorado, como el resto.
   ========================================================= */

/* ---------- Banner ---------- */
.cookies {
  position: fixed; left: 20px; bottom: 20px; z-index: 95;
  width: min(420px, calc(100vw - 40px));
  padding: 18px 20px 16px;
  background: linear-gradient(135deg, var(--navy-600), var(--navy-800));
  color: var(--cream);
  border-top: 4px solid var(--gold);
  box-shadow: 0 22px 50px rgba(0, 0, 0, .5);
  font-family: "Poppins", system-ui, sans-serif;
  opacity: 0; transform: translateY(16px);
  transition: opacity .35s var(--ease), transform .35s var(--ease);
}
.cookies.visible { opacity: 1; transform: none; }
.cookies[hidden] { display: none; }
.cookies__titulo {
  display: flex; align-items: center; gap: 10px; margin: 0 0 8px;
  font-size: 12px; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; color: var(--gold);
}
.cookies__pz { display: block; width: 26px; height: 26px; flex: none; background-size: contain; background-repeat: no-repeat; }
.cookies__texto { margin: 0 0 14px; font-size: 13.5px; line-height: 1.55; color: #d4dbe4; }
.cookies__texto a { color: var(--gold-light); text-decoration: underline; text-underline-offset: 3px; }
.cookies__botones { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }

/* «Aceptar» y «Rechazar» con el mismo peso (lo pide la AEPD) */
.cookies__boton {
  appearance: none; cursor: pointer;
  padding: 11px 12px; border: 1px solid var(--gold); border-radius: 2px;
  background: var(--gold); color: var(--navy-900);
  font: 700 12.5px/1.2 "Poppins", system-ui, sans-serif; letter-spacing: .1em; text-transform: uppercase;
  transition: background .2s, color .2s, transform .2s;
}
.cookies__boton:hover { background: var(--gold-light); transform: translateY(-1px); }
.cookies__boton:focus-visible, .cookies__configurar:focus-visible, .cookies-panel__cerrar:focus-visible { outline: 2px solid var(--gold-light); outline-offset: 2px; }
.cookies__boton--linea { background: transparent; color: var(--gold-light); }
.cookies__boton--linea:hover { background: rgba(201, 169, 97, .14); }
.cookies__configurar {
  appearance: none; cursor: pointer; display: block; margin: 10px auto 0; padding: 4px 6px;
  background: none; border: 0; color: #b9c4d1;
  font: 600 12px "Poppins", system-ui, sans-serif; letter-spacing: .06em;
  text-decoration: underline; text-underline-offset: 3px;
}
.cookies__configurar:hover { color: var(--gold-light); }

/* Mientras se ve el banner, el botón de problemas no se le pone encima en el móvil */
@media (max-width: 600px) {
  .cookies { left: 0; right: 0; bottom: 0; width: 100%; padding: 16px 16px 14px; }
  body.cookies-pendiente .lanzador { opacity: 0; pointer-events: none; transform: translateY(20px); }
}

/* ---------- Panel «Configurar» ---------- */
.cookies-panel { position: fixed; inset: 0; z-index: 120; display: grid; place-items: center; padding: 16px; font-family: "Poppins", system-ui, sans-serif; }
.cookies-panel[hidden] { display: none; }
.cookies-panel__velo { position: absolute; inset: 0; background: rgba(4, 14, 28, .72); }
.cookies-panel__caja {
  position: relative; width: min(560px, 100%); max-height: calc(100vh - 32px); overflow: auto;
  padding: 22px 24px 20px;
  background: var(--navy-800); color: var(--cream);
  border-top: 4px solid var(--gold); box-shadow: 0 30px 70px rgba(0, 0, 0, .6);
}
.cookies-panel__cab { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.cookies-panel__pre { font-size: 11px; font-weight: 600; letter-spacing: .24em; text-transform: uppercase; color: var(--gold); }
.cookies-panel__cab h2 { margin: 2px 0 0; font-size: 22px; }
.cookies-panel__cerrar {
  appearance: none; cursor: pointer; width: 36px; height: 36px; flex: none;
  background: transparent; color: var(--cream); border: 1px solid var(--line); border-radius: 50%;
  font-size: 22px; line-height: 1;
}
.cookies-panel__cerrar:hover { background: var(--gold); color: var(--navy-900); }
.cookies-panel__grupo { padding: 14px 0; border-bottom: 1px solid var(--line); }
.cookies-panel__fila { display: flex; justify-content: space-between; align-items: center; gap: 18px; cursor: default; }
label.cookies-panel__fila { cursor: pointer; }
.cookies-panel__h3 { display: block; margin-bottom: 4px; font-size: 15px; font-weight: 700; color: var(--gold-light); }
.cookies-panel__p { display: block; font-size: 13px; line-height: 1.55; color: #c9d2dc; }
.cookies-panel__siempre { flex: none; font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #8fa0b3; }
.cookies-panel__mas { margin: 12px 0 0; font-size: 12.5px; color: #b9c4d1; }
.cookies-panel__mas a { color: var(--gold-light); text-decoration: underline; text-underline-offset: 3px; }
.cookies-panel__botones { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 18px; }

/* Interruptor dorado */
.interruptor {
  appearance: none; -webkit-appearance: none; cursor: pointer; flex: none; margin: 0;
  position: relative; width: 46px; height: 26px; border-radius: 999px;
  background: #3a5370; border: 1px solid var(--line);
  transition: background .2s;
}
.interruptor::after {
  content: ""; position: absolute; top: 2px; left: 2px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--cream); box-shadow: 0 2px 6px rgba(0, 0, 0, .35);
  transition: transform .2s var(--ease);
}
.interruptor:checked { background: var(--gold); }
.interruptor:checked::after { transform: translateX(20px); }
.interruptor:focus-visible { outline: 2px solid var(--gold-light); outline-offset: 2px; }

@media (max-width: 520px) {
  .cookies-panel__botones { grid-template-columns: 1fr; }
  .cookies-panel__botones .cookies__boton:last-child { order: -1; }
}

/* ---------- El enlace «Configurar cookies» del pie ---------- */
.pie__paginas .pie__cookies {
  appearance: none; cursor: pointer; padding: 0; background: none; border: 0;
  font: inherit; color: #9aa7b6;
}
.pie__paginas .pie__cookies:hover { color: var(--gold); }

/* ---------- Vídeos de YouTube sin permiso todavía ---------- */
.video-consentido { position: relative; aspect-ratio: 16 / 9; background: linear-gradient(135deg, var(--navy-600), var(--navy-900)); }
.wp-block-embed__wrapper > .video-consentido { position: absolute; inset: 0; aspect-ratio: auto; }
.video-consentido iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-consentido iframe:not([src]) { display: none; }
.video-consentido__aviso {
  position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 12px;
  padding: 20px; text-align: center; color: var(--cream); font-family: "Poppins", system-ui, sans-serif;
}
.video-consentido__play {
  appearance: none; cursor: pointer; display: grid; place-items: center;
  width: 74px; height: 74px; border-radius: 50%; border: 0;
  background: var(--gold); color: var(--navy-900); box-shadow: 0 12px 30px rgba(0, 0, 0, .45);
  transition: transform .2s, background .2s;
}
.video-consentido__play:hover { transform: scale(1.06); background: var(--gold-light); }
.video-consentido__play svg { width: 30px; height: 30px; margin-left: 4px; fill: currentColor; }
.video-consentido__texto { max-width: 440px; margin: 0; font-size: 13.5px; line-height: 1.5; color: #d4dbe4; }
.video-consentido__enlaces { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 18px; font-size: 12px; font-weight: 600; letter-spacing: .06em; }
.video-consentido__enlaces a, .video-consentido__enlaces button {
  appearance: none; cursor: pointer; padding: 0; background: none; border: 0;
  font: inherit; color: var(--gold-light); text-decoration: underline; text-underline-offset: 3px;
}
.prosa .video-consentido__enlaces a { color: var(--gold-light); }
@media (max-width: 600px) {
  .video-consentido__texto { font-size: 12px; }
  .video-consentido__play { width: 56px; height: 56px; }
}

/* Los .boton que son <button> (p. ej. «Configurar cookies» en la política) */
button.boton { border: 0; cursor: pointer; font-family: inherit; }
