/* Control de cookies. Hoja independiente: tambien se carga en las paginas con el diseno antiguo. */
.cc { --cc-ink: #0b1f3a; --cc-line: #e4e2dc; --cc-muted: #5b6b82; --cc-blue: #1d4ed8; font-family: Inter, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif; font-size: 15px; line-height: 1.5; color: #33455f; }
.cc [hidden], .cc[hidden] { display: none !important; }
.cc *, .cc *::before, .cc *::after { box-sizing: border-box; }
.cc p { margin: 0; }
.cc a { color: var(--cc-blue); text-decoration: underline; }
.cc-banner { position: fixed; left: 0; right: 0; bottom: 0; z-index: 2147483000; background: #fff; border-top: 1px solid var(--cc-line); box-shadow: 0 -10px 40px -12px rgba(11, 31, 58, .35); padding: 1.1rem max(1.25rem, calc((100vw - 1200px) / 2)); display: flex; align-items: center; gap: 1.5rem; }
.cc-banner__txt { flex: 1; font-size: .9rem; }
.cc-title { font-weight: 700; color: var(--cc-ink); font-size: 1rem; margin-bottom: .2rem !important; }
.cc-actions { display: flex; gap: .6rem; flex: none; flex-wrap: wrap; }
/* Aceptar y rechazar tienen el mismo aspecto y tamano: ninguna opcion se destaca sobre la otra. */
.cc-btn { min-height: 44px; padding: .55rem 1.1rem; border-radius: 8px; border: 1.5px solid var(--cc-ink); background: var(--cc-ink); color: #fff; font: inherit; font-weight: 700; font-size: .9rem; cursor: pointer; }
.cc-btn:hover { background: #17335c; border-color: #17335c; }
.cc-btn--ghost { background: #fff; color: var(--cc-ink); border-color: #c5ccd8; }
.cc-btn--ghost:hover { background: #f4f3ef; border-color: var(--cc-ink); }
.cc-btn:focus-visible, .cc-x:focus-visible, .cc-switch:focus-visible, .cc-fab:focus-visible { outline: 3px solid #f59e0b; outline-offset: 2px; }
.cc-modal { position: fixed; inset: 0; z-index: 2147483001; background: rgba(11, 31, 58, .55); display: grid; place-items: center; padding: 1rem; }
.cc-dialog { background: #fff; border-radius: 16px; width: min(100%, 620px); max-height: calc(100vh - 2rem); overflow: auto; padding: 1.5rem; box-shadow: 0 30px 80px -20px rgba(11, 31, 58, .6); }
.cc-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: .6rem; }
.cc-head h2 { margin: 0; font: 700 1.25rem/1.2 Inter, system-ui, sans-serif; color: var(--cc-ink); letter-spacing: 0; }
.cc-head h2:focus { outline: 0; }
.cc-x { width: 40px; height: 40px; border: 0; border-radius: 50%; background: #f4f3ef; color: var(--cc-ink); font-size: 1.5rem; line-height: 1; cursor: pointer; flex: none; }
.cc-intro { font-size: .9rem; margin-bottom: 1rem !important; }
.cc-rows { border: 1px solid var(--cc-line); border-radius: 12px; margin-bottom: 1.25rem; }
.cc-row { display: flex; align-items: center; gap: 1rem; padding: 1rem; border-bottom: 1px solid var(--cc-line); cursor: pointer; margin: 0; }
.cc-row:last-child { border-bottom: 0; }
.cc-row__txt { flex: 1; }
.cc-row b { display: block; color: var(--cc-ink); font-size: .95rem; }
.cc-row small { display: block; color: var(--cc-muted); font-size: .82rem; margin-top: .15rem; font-weight: 400; }
.cc-always { font-size: .72rem; font-weight: 700; color: #00703f; text-transform: uppercase; letter-spacing: .04em; white-space: nowrap; }
.cc-switch { appearance: none; -webkit-appearance: none; width: 46px; height: 26px; border-radius: 26px; background: #c5ccd8; position: relative; cursor: pointer; flex: none; margin: 0; border: 0; transition: background .2s; }
.cc-switch::after { content: ''; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .3); transition: transform .2s; }
.cc-switch:checked { background: #00875a; }
.cc-switch:checked::after { transform: translateX(20px); }
.cc-switch:disabled { opacity: .55; cursor: not-allowed; }
.cc-dialog .cc-actions { justify-content: flex-end; }
.cc-fab { position: fixed; left: 12px; bottom: 12px; z-index: 2147482000; padding: .4rem .8rem; border-radius: 999px; border: 1px solid var(--cc-line); background: #fff; color: var(--cc-ink); font: 600 .78rem Inter, system-ui, sans-serif; cursor: pointer; box-shadow: 0 4px 14px -6px rgba(11, 31, 58, .4); }
.cc-lock { overflow: hidden; }
/* Aviso antiguo de algunas paginas: lo sustituye este control. */
#cookieConsent { display: none !important; }
@media (max-width: 860px) {
  .cc-banner { flex-direction: column; align-items: stretch; gap: .9rem; padding: 1rem; }
  .cc-actions { flex-direction: column-reverse; }
  .cc-btn { width: 100%; }
  .cc-dialog { padding: 1.1rem; }
}
@media (prefers-reduced-motion: reduce) { .cc-switch, .cc-switch::after { transition: none; } }
@media print { .cc { display: none; } }
