/* Textos legales, aviso de cookies y casillas de consentimiento.
 * Colores tomados de la paleta global de Elementor del sitio. */
:root {
  --vs-navy: #13255B;
  --vs-azul: #1E4EC4;
  --vs-gris: #616670;
  --vs-claro: #F3F5FA;
  --vs-borde: #C9C9CB;
}

/* ---------- Páginas legales ---------- */
.vs-legal {
  max-width: 980px;
  margin: 0 auto;
  padding: 10px 16px 50px;
  color: #333;
  font-size: 16px;
  line-height: 1.65;
}
.vs-legal h2 {
  color: var(--vs-navy);
  font-size: 22px;
  margin: 36px 0 12px;
  line-height: 1.3;
}
.vs-legal h3 {
  color: var(--vs-navy);
  font-size: 18px;
  margin: 26px 0 8px;
}
.vs-legal p, .vs-legal ul, .vs-legal ol { margin: 0 0 14px; }
.vs-legal ul, .vs-legal ol { padding-left: 24px; }
.vs-legal li { margin-bottom: 8px; }
.vs-legal a { color: var(--vs-azul); text-decoration: underline; }
.vs-legal .vs-lema { font-size: 20px; font-weight: 600; color: var(--vs-navy); margin-bottom: 4px; }
.vs-legal .vs-actualizado { color: var(--vs-gris); font-size: 14px; }
.vs-tabla-wrap { overflow-x: auto; margin: 16px 0 24px; }
.vs-legal table, .vs-info-basica {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}
.vs-legal th, .vs-legal td, .vs-info-basica th, .vs-info-basica td {
  border: 1px solid var(--vs-borde);
  padding: 8px 10px;
  text-align: left;
  vertical-align: top;
}
.vs-legal thead th, .vs-info-basica caption {
  background: var(--vs-navy);
  color: #fff;
}
.vs-legal tbody th { background: var(--vs-claro); width: 32%; font-weight: 600; }
.vs-info-basica caption { padding: 8px 10px; font-weight: 700; text-align: center; }
.vs-pendiente {
  background: #fff3cd;
  border: 1px dashed #b8860b;
  padding: 0 4px;
  font-weight: 600;
}

/* ---------- Formulario de contacto ---------- */
.vs-form-extra { font-size: 14px; line-height: 1.5; }
.vs-form-extra .vs-casilla { display: flex; gap: 8px; align-items: flex-start; margin: 8px 0; }
.vs-form-extra .vs-casilla input { margin-top: 4px; flex: none; }
.vs-form-extra details { margin: 10px 0; }
.vs-form-extra summary { cursor: pointer; font-weight: 600; }
.vs-form-extra a { color: inherit; text-decoration: underline; font-weight: 600; }
.vs-form-extra .vs-info-basica a { color: var(--vs-azul); }
.vs-form-extra .vs-info-basica { font-size: 13px; margin-top: 8px; background: #fff; color: #333; }
.vs-form-extra .vs-info-basica tbody th { width: 34%; }

/* ---------- Mapa bloqueado hasta consentimiento ---------- */
.vs-mapa-bloqueado {
  min-height: 300px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 24px 16px;
  background: var(--vs-claro);
  border: 1px solid var(--vs-borde);
  text-align: center;
  line-height: 1.5;
  color: #333;
}
.vs-mapa-bloqueado a { color: var(--vs-azul); }

/* ---------- Aviso y panel de cookies ---------- */
.vs-ck-btn {
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .02em;
  padding: 10px 18px;
  border-radius: 4px;
  border: 2px solid var(--vs-navy);
  background: var(--vs-navy);
  color: #fff;
  cursor: pointer;
}
.vs-ck-btn:hover, .vs-ck-btn:focus-visible { background: var(--vs-azul); border-color: var(--vs-azul); }
.vs-ck-btn.vs-ck-sec { background: #fff; color: var(--vs-navy); }
.vs-ck-btn.vs-ck-sec:hover, .vs-ck-btn.vs-ck-sec:focus-visible { background: var(--vs-claro); color: var(--vs-navy); }

#vs-ck-aviso {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 99998;
  max-width: 760px;
  margin: 0 auto;
  background: #fff;
  color: #333;
  border-top: 5px solid var(--vs-navy);
  border-radius: 6px;
  box-shadow: 0 8px 30px rgba(0,0,0,.25);
  padding: 20px 22px;
  font-size: 13px;
  line-height: 1.5;
  max-height: calc(100vh - 32px);
  overflow-y: auto;
}
#vs-ck-aviso h2 { font-size: 16px; line-height: 1.3; margin: 0 0 8px; color: var(--vs-navy); }
#vs-ck-aviso .vs-ck-botones { position: sticky; bottom: -20px; background: #fff; margin: 12px -22px -20px; padding: 12px 22px 16px; border-top: 1px solid var(--vs-claro); }
#vs-ck-aviso p { margin: 0 0 8px; }
#vs-ck-aviso a { color: var(--vs-azul); }
.vs-ck-botones { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }

#vs-ck-panel {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(0,0,0,.55);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
#vs-ck-panel[hidden], #vs-ck-aviso[hidden] { display: none; }
.vs-ck-caja {
  background: #fff;
  color: #333;
  width: 100%;
  max-width: 680px;
  max-height: calc(100vh - 32px);
  overflow-y: auto;
  border-radius: 6px;
  padding: 22px;
  font-size: 14px;
  line-height: 1.55;
}
.vs-ck-caja h2 { font-size: 19px; line-height: 1.3; margin: 0 0 14px; color: var(--vs-navy); }
.vs-ck-cat { border: 1px solid var(--vs-borde); border-radius: 4px; margin-bottom: 10px; }
.vs-ck-cab { display: flex; align-items: center; gap: 12px; padding: 12px 14px; }
.vs-ck-cab details { flex: 1; }
.vs-ck-cat summary { cursor: pointer; list-style: none; }
.vs-ck-cat summary::-webkit-details-marker { display: none; }
.vs-ck-cat summary strong { display: block; color: var(--vs-navy); }
.vs-ck-cat summary span { display: block; color: var(--vs-gris); font-size: 13px; }
.vs-ck-cat summary em { display: block; font-size: 12px; color: var(--vs-azul); font-style: normal; margin-top: 2px; }
.vs-ck-cat details[open] summary em { display: none; }
.vs-ck-cat .vs-ck-mas { padding: 10px 0 0; font-size: 13px; }
.vs-ck-cat .vs-ck-mas p { margin: 0 0 8px; }
.vs-ck-fijo { font-size: 11px; font-weight: 700; color: var(--vs-navy); white-space: nowrap; }
.vs-ck-switch { position: relative; width: 44px; height: 24px; flex: none; }
.vs-ck-switch input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; z-index: 1; }
.vs-ck-switch span { position: absolute; inset: 0; background: var(--vs-borde); border-radius: 12px; transition: background .2s; }
.vs-ck-switch span::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; background: #fff; border-radius: 50%; transition: transform .2s; }
.vs-ck-switch input:checked + span { background: var(--vs-azul); }
.vs-ck-switch input:checked + span::after { transform: translateX(20px); }
.vs-ck-switch input:focus-visible + span { outline: 2px solid var(--vs-navy); outline-offset: 2px; }

#vs-ck-reabrir {
  position: fixed;
  left: 12px;
  bottom: 12px;
  z-index: 99990;
  font: inherit;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 8px;
  opacity: .85;
  border-radius: 4px;
  border: 1px solid var(--vs-navy);
  background: #fff;
  color: var(--vs-navy);
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0,0,0,.15);
}

@media (max-width: 600px) {
  .vs-ck-botones .vs-ck-btn { flex: 1 1 100%; }
  .vs-legal tbody th { width: 40%; }
}
