/* Kreatik Studio · Páginas legales, banner de cookies, consentimiento y 404 */

/* ---------- Footer: fila de enlaces legales ---------- */
.pie__base { align-items: center; flex-wrap: wrap; }
.pie__legal { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; }
.pie__legal a, .pie__legal-btn {
  border: 0; padding: 0; background: none; font: inherit; cursor: pointer;
  color: rgba(255, 255, 255, .72); text-decoration: none;
  transition: color .2s, opacity .2s;
}
.pie__legal a:hover, .pie__legal-btn:hover { color: var(--blanco); opacity: 1; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Páginas legales (privacidad, términos, cookies) ---------- */
.lg-portada { background: var(--navy); padding: 96px 0 36px; }
.lg-marco {
  position: relative; overflow: hidden; background: var(--azul); color: var(--blanco);
  border-radius: 28px; padding: calc(var(--corte, 110px) + 26px) clamp(22px, 4.5vw, 72px) clamp(36px, 5vw, 64px);
}
.lg-miga { margin: 0 0 16px; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: rgba(255, 255, 255, .72); }
.lg-miga a { color: var(--blanco); text-decoration: none; }
.lg-miga a:hover { text-decoration: underline; }
.lg-titulo {
  margin: 0 0 16px; font-weight: 900; font-size: clamp(34px, 4.8vw, 74px);
  line-height: .96; letter-spacing: -.06em; text-transform: uppercase;
}
.lg-titulo .resalte { display: inline-block; margin-top: .08em; }
.lg-intro { margin: 0 0 20px; max-width: 680px; font-size: clamp(16px, 1.25vw, 19px); line-height: 1.55; color: rgba(255, 255, 255, .86); }
.lg-meta { margin: 0; font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: rgba(255, 255, 255, .7); }

.lg-cuerpo { padding: clamp(56px, 7vw, 100px) 0 clamp(70px, 8vw, 120px); }
.lg-grid { display: grid; grid-template-columns: minmax(210px, .32fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.lg-indice {
  position: sticky; top: 96px; padding: 20px; border-radius: 20px;
  background: rgba(255, 255, 255, .85); box-shadow: inset 0 0 0 1.5px rgba(23, 61, 237, .14);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.lg-indice p { margin: 0 0 12px; font-size: 11px; font-weight: 900; letter-spacing: .16em; text-transform: uppercase; color: var(--azul); }
.lg-indice ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.lg-indice a {
  display: block; font-size: 13.5px; font-weight: 700; line-height: 1.35; color: rgba(5, 16, 66, .74);
  text-decoration: none; transition: color .2s, transform .25s var(--curva);
}
.lg-indice a:hover { color: var(--azul); transform: translateX(3px); }

.lg-doc { display: grid; gap: 22px; max-width: 780px; }
.lg-bloque {
  padding-bottom: 28px; border-bottom: 1.5px solid rgba(23, 61, 237, .12);
  scroll-margin-top: 96px;
}
.lg-bloque.k-glass { padding: clamp(22px, 2.8vw, 34px); border-radius: 22px; border-bottom: 1px solid rgba(23, 61, 237, .14); }
.lg-bloque:last-child { border-bottom: 0; padding-bottom: 0; }
.lg-bloque.k-glass:last-child { border: 1px solid rgba(23, 61, 237, .14); padding: clamp(22px, 2.8vw, 34px); }
.lg-bloque h2 {
  margin: 0 0 14px; color: var(--azul); font-weight: 900; font-size: clamp(22px, 2.2vw, 30px);
  line-height: 1.08; letter-spacing: -.045em; text-transform: uppercase;
}
.lg-bloque p { margin: 0 0 14px; font-size: 16px; line-height: 1.7; color: rgba(5, 16, 66, .84); }
.lg-bloque p:last-child { margin-bottom: 0; }
.lg-bloque ul { margin: 0 0 14px; padding-left: 20px; display: grid; gap: 8px; color: rgba(5, 16, 66, .84); font-size: 15.5px; line-height: 1.65; }
.lg-bloque a { color: var(--azul); font-weight: 700; text-underline-offset: 3px; }
.lg-ficha {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px 24px; margin: 16px 0 6px; padding: 20px;
  border-radius: 18px; background: #f4f6ff; box-shadow: inset 0 0 0 1.5px rgba(23, 61, 237, .12);
}
.lg-ficha div { display: grid; gap: 2px; }
.lg-ficha dt { font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: rgba(5, 16, 66, .52); }
.lg-ficha dd { margin: 0; font-size: 15px; font-weight: 700; color: var(--navy); }
.lg-tabla-wrap { overflow-x: auto; margin: 16px 0; border-radius: 16px; box-shadow: inset 0 0 0 1.5px rgba(23, 61, 237, .14); }
.lg-tabla { width: 100%; border-collapse: collapse; font-size: 14px; text-align: left; color: var(--navy); background: var(--blanco); }
.lg-tabla th, .lg-tabla td { padding: 13px 16px; border-bottom: 1px solid rgba(5, 16, 66, .08); vertical-align: top; }
.lg-tabla th { background: #f4f6ff; font-size: 11.5px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; color: var(--azul); }
.lg-tabla tr:last-child td { border-bottom: 0; }
.lg-acciones { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 16px; }
.lg-btn {
  display: inline-flex; align-items: center; gap: 8px; height: 48px; padding: 0 22px; border: 0; border-radius: 99px;
  background: var(--azul); color: var(--blanco); font: 900 14px Montserrat, sans-serif; letter-spacing: -.02em; text-transform: uppercase;
  cursor: pointer; text-decoration: none; transition: background-color .25s, transform .3s var(--curva);
}
.lg-btn:hover { background: var(--navy); transform: translateY(-2px); }

/* ---------- Consentimiento en Cotizar ---------- */
.cz-legal {
  display: flex; align-items: flex-start; gap: 12px; margin: 18px 0 4px; padding: 14px 16px;
  border-radius: 14px; background: #f4f6ff; border: 1.5px solid rgba(23, 61, 237, .16); cursor: pointer;
}
.cz-legal input {
  flex: none; width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--azul); cursor: pointer;
}
.cz-legal span { font-size: 13.5px; line-height: 1.5; color: rgba(5, 16, 66, .84); font-weight: 600; }
.cz-legal a { color: var(--azul); font-weight: 800; text-underline-offset: 3px; }
.cz-legal--error { border-color: #e5484d; background: #fff5f5; }

/* ---------- Banner de cookies y panel de preferencias ---------- */
.ck-banner {
  position: fixed; z-index: 95; left: 18px; bottom: 18px; width: min(440px, calc(100vw - 36px));
  padding: 20px 22px; border-radius: 22px; background: rgba(5, 16, 66, .94); color: var(--blanco);
  backdrop-filter: blur(16px) saturate(1.4); -webkit-backdrop-filter: blur(16px) saturate(1.4);
  box-shadow: 0 24px 60px -18px rgba(3, 10, 42, .8), inset 0 0 0 1px rgba(255, 255, 255, .14);
  font-family: Montserrat, system-ui, sans-serif;
  opacity: 0; transform: translateY(18px); pointer-events: none;
  transition: opacity .35s ease, transform .5s var(--curva);
}
.ck-banner.visible { opacity: 1; transform: none; pointer-events: auto; }
.ck-banner__tit { margin: 0 0 6px; font-size: 14px; font-weight: 900; letter-spacing: -.02em; text-transform: uppercase; color: var(--blanco); }
.ck-banner__txt { margin: 0 0 16px; font-size: 13px; line-height: 1.55; color: rgba(255, 255, 255, .78); }
.ck-banner__txt a { color: var(--blanco); font-weight: 700; text-underline-offset: 3px; }
.ck-banner__btns { display: flex; flex-wrap: wrap; gap: 8px; }
.ck-btn {
  display: inline-flex; align-items: center; justify-content: center; height: 38px; padding: 0 16px;
  border-radius: 99px; border: 0; cursor: pointer; font: 900 12px Montserrat, sans-serif;
  letter-spacing: -.01em; text-transform: uppercase; transition: background-color .22s, color .22s, transform .25s var(--curva);
}
.ck-btn:hover { transform: translateY(-1px); }
.ck-btn--pri { background: var(--blanco); color: var(--azul); }
.ck-btn--pri:hover { background: var(--azul); color: var(--blanco); }
.ck-btn--sec { background: rgba(255, 255, 255, .12); color: var(--blanco); }
.ck-btn--sec:hover { background: rgba(255, 255, 255, .22); }
.ck-btn--link { background: transparent; color: rgba(255, 255, 255, .75); padding: 0 10px; text-decoration: underline; text-underline-offset: 3px; }
.ck-btn--link:hover { color: var(--blanco); transform: none; }

/* Modal de configuración de cookies */
.ck-fondo {
  position: fixed; inset: 0; z-index: 120; display: grid; place-items: center; padding: 16px;
  background: rgba(3, 10, 42, .72); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .25s ease, visibility .25s;
}
.ck-fondo.abierto { opacity: 1; visibility: visible; pointer-events: auto; }
.ck-modal {
  width: min(520px, 100%); max-height: 90vh; overflow-y: auto; padding: 26px; border-radius: 24px;
  background: var(--blanco); color: var(--navy); box-shadow: 0 34px 80px -24px rgba(3, 10, 42, .8);
  font-family: Montserrat, system-ui, sans-serif;
}
.ck-modal__cab { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 10px; }
.ck-modal__cab h2 { margin: 0; color: var(--azul); font-size: 22px; font-weight: 900; letter-spacing: -.04em; text-transform: uppercase; line-height: 1.05; }
.ck-x {
  width: 34px; height: 34px; border: 0; border-radius: 50%; background: #eef2ff; color: var(--azul);
  font-size: 20px; line-height: 1; cursor: pointer; flex: none;
}
.ck-x:hover { background: var(--azul); color: var(--blanco); }
.ck-modal__desc { margin: 0 0 18px; font-size: 13.5px; line-height: 1.55; color: rgba(5, 16, 66, .74); }
.ck-cat {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 14px;
  padding: 14px 16px; border-radius: 16px; background: #f5f7ff; margin-bottom: 10px;
  box-shadow: inset 0 0 0 1px rgba(23, 61, 237, .12);
}
.ck-cat strong { display: block; margin-bottom: 4px; font-size: 14px; font-weight: 900; color: var(--navy); }
.ck-cat p { margin: 0; font-size: 12.5px; line-height: 1.5; color: rgba(5, 16, 66, .68); }
.ck-siempre {
  flex: none; padding: 5px 10px; border-radius: 99px; background: #eef2ff; color: var(--azul);
  font-size: 11px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase;
}
.ck-switch { position: relative; flex: none; width: 46px; height: 26px; margin-top: 2px; }
.ck-switch input { opacity: 0; width: 0; height: 0; }
.ck-switch span {
  position: absolute; inset: 0; border-radius: 99px; background: rgba(5, 16, 66, .22); cursor: pointer; transition: background-color .2s;
}
.ck-switch span::before {
  content: ""; position: absolute; left: 3px; top: 3px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--blanco); transition: transform .25s var(--curva);
}
.ck-switch input:checked + span { background: var(--azul); }
.ck-switch input:checked + span::before { transform: translateX(20px); }
.ck-switch input:focus-visible + span { outline: 2px solid var(--azul); outline-offset: 2px; }
.ck-modal__pie { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; margin-top: 18px; }
.ck-btn--azul { background: var(--azul); color: var(--blanco); height: 42px; padding: 0 18px; }
.ck-btn--azul:hover { background: var(--navy); color: var(--blanco); }
.ck-btn--borde { background: transparent; color: var(--navy); box-shadow: inset 0 0 0 1.5px rgba(5, 16, 66, .2); height: 42px; padding: 0 16px; }
.ck-btn--borde:hover { box-shadow: inset 0 0 0 1.5px var(--azul); color: var(--azul); }

/* ---------- Página 404 ---------- */
.e404 { min-height: 100vh; background: var(--navy); color: var(--blanco); display: grid; place-items: center; padding: 100px 16px 40px; }
.e404__marco {
  width: min(100%, 820px); text-align: center; background: var(--azul); border-radius: 28px;
  padding: calc(var(--corte, 110px) + 28px) clamp(22px, 5vw, 64px) clamp(40px, 6vw, 72px);
}
.e404__num { margin: 0 0 8px; font-size: clamp(72px, 14vw, 150px); font-weight: 900; line-height: .88; letter-spacing: -.06em; color: transparent; -webkit-text-stroke: 2px rgba(255, 255, 255, .7); }
.e404 h1 { margin: 0 0 14px; font-size: clamp(26px, 4vw, 48px); font-weight: 900; letter-spacing: -.05em; text-transform: uppercase; line-height: 1; }
.e404 p { margin: 0 auto 28px; max-width: 480px; font-size: 16px; line-height: 1.6; color: rgba(255, 255, 255, .84); }

@media (max-width: 900px) {
  .lg-grid { grid-template-columns: 1fr; }
  .lg-indice { position: static; }
}
@media (max-width: 767px) {
  .lg-portada { padding-top: 84px; }
  .lg-marco { padding: calc(var(--corte, 58px) + 24px) 18px 28px; }
  .lg-ficha { grid-template-columns: 1fr; }
  .ck-banner { left: 12px; right: 12px; bottom: 12px; width: auto; padding: 16px 18px; }
}
