/* VTC Legal — estilos públicos */
.vtcl-banner, .vtcl-modal, .vtcl-flotante {
  --vtcl-fondo: #0f1b2d; --vtcl-texto: #eef2f7; --vtcl-acento: #f5a524;
  --vtcl-borde: color-mix(in srgb, var(--vtcl-texto) 18%, transparent);
  font-family: inherit; line-height: 1.5; box-sizing: border-box;
}
.vtcl-banner *, .vtcl-modal * { box-sizing: border-box; }
[hidden].vtcl-banner, [hidden].vtcl-modal, [hidden].vtcl-flotante { display: none !important; }

/* Banner */
.vtcl-banner {
  position: fixed; z-index: 99998; left: 16px; right: 16px;
  bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  max-width: 980px; margin: 0 auto; padding: 20px 22px;
  background: var(--vtcl-fondo); color: var(--vtcl-texto);
  border-left: 4px solid var(--vtcl-acento); border-radius: 6px;
  box-shadow: 0 18px 40px -12px rgba(5, 12, 24, .55);
  display: flex; gap: 20px; align-items: center; flex-wrap: wrap;
}
.vtcl-banner-cuerpo { flex: 1 1 380px; min-width: 0; }
.vtcl-banner-titulo { margin: 0 0 4px; font-weight: 700; font-size: 1.02rem; }
.vtcl-banner-texto { margin: 0; font-size: .92rem; opacity: .92; max-width: 68ch; }
.vtcl-banner a, .vtcl-modal a { color: var(--vtcl-acento); text-decoration: underline; text-underline-offset: 2px; }
.vtcl-banner-acciones { display: flex; gap: 10px; flex-wrap: wrap; }

/* Botones: Aceptar y Rechazar con el mismo peso visual (Guía AEPD) */
.vtcl-btn {
  appearance: none; cursor: pointer; font: inherit; font-weight: 600; font-size: .92rem;
  padding: 10px 18px; min-height: 44px; border-radius: 4px;
  background: var(--vtcl-acento); color: var(--vtcl-fondo); border: 2px solid var(--vtcl-acento);
}
.vtcl-btn:hover { filter: brightness(1.07); }
.vtcl-btn-sec { background: transparent; color: var(--vtcl-texto); border-color: var(--vtcl-borde); }
.vtcl-btn-sec:hover { border-color: var(--vtcl-texto); filter: none; }
.vtcl-btn:focus-visible, .vtcl-cerrar:focus-visible, .vtcl-flotante:focus-visible,
.vtcl-switch input:focus-visible + span { outline: 3px solid var(--vtcl-acento); outline-offset: 2px; }

/* Modal */
.vtcl-modal { position: fixed; inset: 0; z-index: 99999; display: flex; align-items: center; justify-content: center; padding: 16px; }
.vtcl-modal-fondo { position: absolute; inset: 0; background: rgba(4, 10, 20, .6); }
.vtcl-modal-caja {
  position: relative; width: 100%; max-width: 560px; max-height: calc(100vh - 32px); overflow: auto;
  background: var(--vtcl-fondo); color: var(--vtcl-texto); border-radius: 6px; padding: 24px;
  border-top: 4px solid var(--vtcl-acento); outline: none;
}
.vtcl-modal-cab { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.vtcl-modal-cab h2 { margin: 0; font-size: 1.2rem; color: inherit; }
.vtcl-cerrar { background: none; border: 0; color: inherit; font-size: 1.8rem; line-height: 1; cursor: pointer; padding: 4px 8px; border-radius: 4px; }
.vtcl-modal-intro { font-size: .9rem; opacity: .85; margin: 8px 0 16px; }
.vtcl-cats { list-style: none; margin: 0; padding: 0; }
.vtcl-cat { display: flex; gap: 16px; align-items: flex-start; justify-content: space-between; padding: 14px 0; border-top: 1px solid var(--vtcl-borde); }
.vtcl-cat label { font-weight: 600; cursor: pointer; }
.vtcl-cat p { margin: 2px 0 0; font-size: .86rem; opacity: .8; }
.vtcl-switch { position: relative; flex: 0 0 auto; width: 46px; height: 26px; margin-top: 2px; }
.vtcl-switch input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; z-index: 1; }
.vtcl-switch span { position: absolute; inset: 0; border-radius: 26px; background: var(--vtcl-borde); transition: background .15s; }
.vtcl-switch span::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: var(--vtcl-texto); transition: transform .15s; }
.vtcl-switch input:checked + span { background: var(--vtcl-acento); }
.vtcl-switch input:checked + span::after { transform: translateX(20px); background: var(--vtcl-fondo); }
.vtcl-switch input:disabled { cursor: not-allowed; }
.vtcl-switch input:disabled + span { opacity: .6; }
.vtcl-modal-acciones { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--vtcl-borde); }
.vtcl-modal-acciones .vtcl-btn { flex: 1 1 140px; }
html.vtcl-bloqueo-scroll { overflow: hidden; }

/* Botón flotante para reabrir la configuración */
.vtcl-flotante {
  position: fixed; z-index: 99997; left: 14px; bottom: calc(14px + env(safe-area-inset-bottom, 0px));
  width: 42px; height: 42px; border-radius: 50%; border: 2px solid var(--vtcl-acento);
  background: var(--vtcl-fondo); color: var(--vtcl-acento); cursor: pointer;
  display: flex; align-items: center; justify-content: center; opacity: .85;
}
.vtcl-flotante:hover { opacity: 1; }

@media (max-width: 600px) {
  .vtcl-banner { left: 8px; right: 8px; padding: 16px; }
  .vtcl-banner-acciones { width: 100%; }
  .vtcl-banner-acciones .vtcl-btn { flex: 1 1 30%; padding: 10px 8px; }
}
@media (prefers-reduced-motion: reduce) { .vtcl-switch span, .vtcl-switch span::after { transition: none; } }

/* Pie legal */
.vtcl-pie { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 18px; padding: 14px 16px 70px; font-size: .85rem; }
.vtcl-pie a { color: inherit; opacity: .8; text-decoration: underline; text-underline-offset: 2px; }
.vtcl-pie a:hover { opacity: 1; }

/* Documentos legales */
.vtcl-doc { max-width: 76ch; }
.vtcl-doc h2 { margin-top: 1.8em; }
.vtcl-doc-meta { font-size: .88rem; opacity: .7; }
.vtcl-pendiente { background: #ffe6a8; color: #5a3b00; padding: 0 3px; border-radius: 2px; }
.vtcl-tabla-wrap { overflow-x: auto; margin: 1em 0; }
.vtcl-tabla { width: 100%; border-collapse: collapse; font-size: .9rem; }
.vtcl-tabla th, .vtcl-tabla td { text-align: left; vertical-align: top; padding: 8px 10px; border-bottom: 1px solid rgba(127, 127, 127, .3); }
.vtcl-tabla th { font-weight: 700; }
.vtcl-tramos td:last-child { white-space: nowrap; }
.vtcl-compacta { font-size: .85rem; }
.vtcl-ejemplo { padding: 10px 14px; border-left: 3px solid #f5a524; background: rgba(245, 165, 36, .08); }

/* Casilla de aceptación en el formulario de reserva */
.vtcl-aceptacion { margin: 16px 0; font-size: .92rem; }
.vtcl-check { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; }
.vtcl-check input { width: 20px; height: 20px; margin: 2px 0 0; flex: 0 0 auto; accent-color: #f5a524; }
.vtcl-aceptacion.vtcl-error .vtcl-check { outline: 2px solid #d64545; outline-offset: 4px; border-radius: 3px; }
.vtcl-aviso-error { color: #d64545; font-weight: 600; margin: 8px 0 0; }
.vtcl-info-datos { margin-top: 10px; font-size: .84rem; opacity: .9; }
.vtcl-info-datos summary { cursor: pointer; text-decoration: underline; text-underline-offset: 2px; }
.vtcl-info-datos p { margin: 8px 0 0; }
.vtcl-bloqueado { position: relative; }
.vtcl-bloqueado::after { content: ""; position: absolute; inset: 0; z-index: 50; cursor: not-allowed; background: rgba(255, 255, 255, .6); }

/* Formulario de ejercicio de derechos */
.vtcl-derechos-lista { display: grid; grid-template-columns: minmax(150px, max-content) 1fr; gap: 6px 18px; margin: 1.2em 0 1.6em; }
.vtcl-derechos-lista dt { font-weight: 700; }
.vtcl-derechos-lista dd { margin: 0; }
@media (max-width: 600px) { .vtcl-derechos-lista { grid-template-columns: 1fr; } .vtcl-derechos-lista dd { margin-bottom: 8px; } }
.vtcl-form-derechos { max-width: 560px; margin: 1.5em 0; }
.vtcl-form-derechos p { margin: 0 0 14px; }
.vtcl-form-derechos label { display: block; font-weight: 600; margin-bottom: 4px; }
.vtcl-form-derechos input[type=text], .vtcl-form-derechos input[type=email], .vtcl-form-derechos select, .vtcl-form-derechos textarea {
  width: 100%; box-sizing: border-box; padding: 10px 12px; font: inherit; border: 1px solid rgba(127,127,127,.5); border-radius: 4px; background: transparent; color: inherit;
}
.vtcl-form-derechos small { display: block; opacity: .75; margin-top: 4px; font-size: .84rem; }
.vtcl-form-derechos .vtcl-info-capa { font-size: .84rem; opacity: .85; }
.vtcl-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.vtcl-btn-form { font: inherit; font-weight: 700; padding: 12px 22px; min-height: 44px; border: 0; border-radius: 4px; cursor: pointer; background: #0f1b2d; color: #fff; }
.vtcl-btn-form:hover { background: #1b2d48; }
.vtcl-btn-form:focus-visible { outline: 3px solid #f5a524; outline-offset: 2px; }
.vtcl-aviso { padding: 12px 16px; border-radius: 4px; margin: 0 0 1.4em; font-weight: 600; }
.vtcl-aviso-ok { background: #e6f4ea; color: #14532d; border-left: 4px solid #1f8a4c; }
.vtcl-aviso-ko { background: #fdecea; color: #7f1d1d; border-left: 4px solid #c0392b; }
.vtcl-check-comercial { margin-top: 10px; }
