/* Faro Seguros — legales, cookies y mapa bloqueado (se carga después de styles.css) */

/* =========================================================
   FOOTER — legales y SSN
   ========================================================= */
.footer-ssn { padding: 18px 0; border-top: 1px solid rgba(255,255,255,.08); font-size: 12.5px; color: var(--on-dark-3); }
.footer-ssn strong { color: var(--on-dark-2); font-weight: 700; }
.footer-ssn a { text-decoration: underline; text-underline-offset: 3px; }
.footer-ssn a:hover { color: #fff; }
.footer-legal { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.footer-legal a, .footer-legal button { color: var(--on-dark-2); font-size: 13.5px; transition: color .2s; }
.footer-legal a:hover, .footer-legal button:hover { color: #fff; }
.footer-legal button { text-decoration: underline; text-underline-offset: 3px; }

/* =========================================================
   MAPA bloqueado hasta aceptar cookies funcionales
   ========================================================= */
.map iframe:not([src]) { visibility: hidden; }
.cookie-blocked {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  text-align: center; padding: 24px;
  background:
    repeating-linear-gradient(0deg, transparent 0 46px, rgba(23,24,27,.05) 46px 48px),
    repeating-linear-gradient(90deg, transparent 0 46px, rgba(23,24,27,.05) 46px 48px),
    var(--bg-deep);
}
.cookie-blocked[hidden] { display: none; }
.cookie-blocked > svg { width: 30px; height: 30px; color: var(--red); margin-bottom: 4px; }
.cookie-blocked strong { font-family: var(--font-title); font-size: 20px; }
.cookie-blocked p { color: var(--ink-3); font-size: 14.5px; margin-bottom: 8px; }
.map-card { z-index: 2; }
@media (max-width: 560px) { .cookie-blocked { padding-top: 150px; } }

/* =========================================================
   COOKIES — banner y centro de preferencias
   ========================================================= */
html.cc-lock, html.cc-lock body { overflow: hidden; }
.cc-banner {
  position: fixed; left: 18px; bottom: 18px; z-index: 150;
  width: min(440px, calc(100% - 36px));
  padding: 20px;
  border-radius: 22px;
  background: rgba(26, 27, 30, .94);
  -webkit-backdrop-filter: blur(20px) saturate(160%); backdrop-filter: blur(20px) saturate(160%);
  border: 1px solid rgba(255,255,255,.1);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.12), 0 24px 60px -16px rgba(0,0,0,.55);
  color: var(--on-dark);
  opacity: 0; transform: translateY(16px);
  transition: opacity .35s var(--ease), transform .45s var(--ease);
}
.cc-banner.is-in { opacity: 1; transform: none; }
.cc-banner[hidden] { display: none; }
.cc-banner-head { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.cc-banner-head strong { font-family: var(--font-title); font-size: 19px; }
.cc-ico { width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; background: rgba(255,255,255,.08); }
.cc-ico svg { width: 19px; height: 19px; }
.cc-banner p { font-size: 14px; color: var(--on-dark-2); line-height: 1.5; }
.cc-banner a, .cc-dialog-body a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.cc-banner a:hover { color: #fff; }
.cc-actions { display: grid; grid-template-columns: 1fr 1fr 1.3fr; gap: 8px; margin-top: 16px; }
.cc-btn { height: 42px; padding: 0 14px; border-radius: 999px; font-size: 13.5px; font-weight: 700; transition: background .2s, transform .2s; white-space: nowrap; }
.cc-btn-red { background: var(--red); color: #fff; }
.cc-btn-red:hover { background: var(--red-hover); }
.cc-btn-ghost { background: rgba(255,255,255,.08); color: #fff; border: 1px solid rgba(255,255,255,.14); }
.cc-btn-ghost:hover { background: rgba(255,255,255,.15); }
.cc-btn-dark { background: var(--graphite); color: #fff; }
.cc-btn-dark:hover { background: var(--graphite-3); }

.cc-modal { position: fixed; inset: 0; z-index: 160; display: grid; place-items: center; padding: 16px; }
.cc-modal[hidden] { display: none; }
.cc-backdrop { position: absolute; inset: 0; background: rgba(17,18,20,.55); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); opacity: 0; transition: opacity .25s; }
.cc-dialog {
  position: relative;
  width: min(620px, 100%); max-height: min(760px, calc(100svh - 32px));
  display: flex; flex-direction: column;
  background: var(--bg-soft); color: var(--ink);
  border-radius: 24px;
  box-shadow: 0 40px 80px -20px rgba(0,0,0,.5);
  overflow: hidden;
  opacity: 0; transform: translateY(16px) scale(.98);
  transition: opacity .25s var(--ease), transform .35s var(--ease);
}
.cc-modal.is-open .cc-backdrop { opacity: 1; }
.cc-modal.is-open .cc-dialog { opacity: 1; transform: none; }
.cc-dialog-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 18px 16px 24px; border-bottom: 1px solid var(--line); }
.cc-brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-title); font-weight: 800; font-size: 18px; }
.cc-brand img { width: 30px; height: 30px; object-fit: contain; }
.cc-close { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--bg); transition: background .2s; }
.cc-close:hover { background: var(--bg-deep); }
.cc-dialog-body { padding: 22px 24px; overflow: auto; }
.cc-dialog-body h2 { font-size: 24px; margin-bottom: 10px; }
.cc-dialog-body > p { font-size: 14.5px; color: var(--ink-2); line-height: 1.6; }
.cc-dialog-body h3 { font-size: 18px; margin: 24px 0 12px; }
.cc-cats { border: 1px solid var(--line); border-radius: 16px; background: #fff; overflow: hidden; }
.cc-cat + .cc-cat { border-top: 1px solid var(--line); }
.cc-cat-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 4px 16px 4px 6px; }
.cc-cat-toggle { flex: 1; display: flex; align-items: center; gap: 10px; padding: 14px 8px; text-align: left; font-weight: 700; font-size: 15px; }
.cc-plus { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--bg); transition: transform .3s var(--ease); flex-shrink: 0; }
.cc-plus svg { width: 14px; height: 14px; }
.cc-cat.is-open .cc-plus { transform: rotate(45deg); }
.cc-always { font-size: 13px; font-weight: 700; color: var(--red); white-space: nowrap; }
.cc-switch { position: relative; display: inline-flex; cursor: pointer; }
.cc-switch input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; z-index: 1; }
.cc-track { width: 46px; height: 28px; border-radius: 999px; background: #C9CBCF; position: relative; transition: background .25s; }
.cc-track::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(0,0,0,.2); transition: transform .3s var(--ease); }
.cc-switch input:checked + .cc-track { background: var(--red); }
.cc-switch input:checked + .cc-track::after { transform: translateX(18px); }
.cc-switch input:focus-visible + .cc-track { outline: 2px solid var(--red); outline-offset: 3px; }
.cc-cat-body { padding: 0 18px 16px 50px; font-size: 14px; color: var(--ink-2); }
.cc-cat-body[hidden] { display: none; }
.cc-list { list-style: none; padding: 0; margin: 10px 0 0; display: grid; gap: 8px; }
.cc-list li { display: flex; flex-direction: column; padding: 10px 12px; border-radius: 12px; background: var(--bg-soft); }
.cc-list strong { font-family: ui-monospace, Consolas, monospace; font-size: 13px; color: var(--ink); }
.cc-list span { font-size: 12.5px; color: var(--ink-3); }
.cc-list small { font-size: 13px; }
.cc-empty { margin-top: 8px; font-style: italic; color: var(--ink-3); }
.cc-dialog-foot { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 8px; padding: 16px 24px; border-top: 1px solid var(--line); background: #fff; }
.cc-dialog-foot .cc-btn { height: 46px; white-space: normal; line-height: 1.2; }

@media (max-width: 560px) {
  .cc-banner { left: 10px; right: 10px; bottom: 10px; width: auto; }
  .cc-actions { grid-template-columns: 1fr 1fr; }
  .cc-actions .cc-btn-red { grid-column: 1 / -1; order: -1; }
  .cc-modal { padding: 0; place-items: end center; }
  .cc-dialog { border-radius: 24px 24px 0 0; max-height: 92svh; }
  .cc-dialog-foot { grid-template-columns: 1fr; padding: 14px 16px; }
  .cc-dialog-foot .cc-btn-red { order: -1; }
  .cc-dialog-body { padding: 18px 16px; }
  .cc-cat-body { padding-left: 18px; }
}

/* =========================================================
   PÁGINAS LEGALES
   ========================================================= */
.legal-hero { margin: 92px 12px 0; border-radius: var(--radius-xl); background: var(--graphite); color: var(--on-dark); padding: clamp(40px, 6vw, 72px) 0; overflow: hidden; position: relative; }
.legal-hero::after { content: ""; position: absolute; right: -80px; top: -80px; width: 320px; height: 320px; border-radius: 50%; background: radial-gradient(circle, rgba(200,32,43,.35), transparent 70%); }
.legal-hero .container { max-width: 860px; position: relative; z-index: 1; }
.legal-hero h1 { font-size: clamp(34px, 5vw, 56px); font-weight: 800; letter-spacing: -.03em; margin: 14px 0 10px; }
.legal-hero p:not(.eyebrow) { color: var(--on-dark-2); }
.legal { padding: clamp(40px, 6vw, 72px) 0 clamp(64px, 8vw, 96px); }
.legal .container { max-width: 860px; }
.legal-body { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(24px, 4vw, 48px); color: var(--ink-2); font-size: 16px; line-height: 1.7; }
.legal-body h2 { font-size: 24px; color: var(--ink); margin: 36px 0 10px; }
.legal-body h2:first-child { margin-top: 0; }
.legal-body h3 { font-size: 18px; color: var(--ink); margin: 26px 0 6px; }
.legal-body p + p { margin-top: 12px; }
.legal-body ul { padding-left: 20px; margin: 10px 0; }
.legal-body li + li { margin-top: 6px; }
.legal-body a:not(.btn) { color: var(--red); text-decoration: underline; text-underline-offset: 3px; }
.legal-body strong { color: var(--ink); }
.legal-note { margin-top: 24px; padding: 16px 18px; border-radius: 14px; background: var(--bg-soft); border-left: 3px solid var(--red); font-size: 14.5px; }
.legal-table-wrap { overflow-x: auto; margin: 12px 0 8px; border: 1px solid var(--line); border-radius: 14px; }
.legal-table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 560px; }
.legal-table th { text-align: left; background: var(--bg-soft); color: var(--ink); font-weight: 700; padding: 10px 14px; }
.legal-table td { padding: 10px 14px; border-top: 1px solid var(--line); vertical-align: top; }
.legal-table code { font-size: 13px; background: var(--bg); padding: 2px 6px; border-radius: 6px; color: var(--ink); }
.cc-empty-light { font-style: italic; color: var(--ink-3); }
.legal-body .btn { margin-top: 8px; }
.legal-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.legal-links a { padding: 8px 14px; border-radius: 999px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12); font-size: 14px; color: var(--on-dark-2); }
.legal-links a:hover, .legal-links a[aria-current] { color: #fff; background: rgba(255,255,255,.16); }
