/* Estilos de las páginas legales y de confianza de cuipea.com
   (privacidad, términos, cómo cuidamos tus datos, 404).
   Copia de los tokens y componentes de la home para que se vean iguales. */

:root {
  --navy: #28325A; --pink: #EEC5DD; --mustard: #F6C95A; --teal: #5DB3C1;
  --coral: #EF8090; --mint: #A9D5B6; --lilac: #7A87C2; --grey: #D4D4D4;
  --white: #FFFFFF; --canvas: #FBFAF7; --ink: #28325A; --ink-soft: #5b6485;
  --radius: 20px; --radius-sm: 14px; --maxw: 1120px;
  --ease: cubic-bezier(.22,.61,.36,1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: "Plus Jakarta Sans", system-ui, sans-serif;
  background: var(--canvas); color: var(--ink); line-height: 1.6;
  -webkit-font-smoothing: antialiased; overflow-x: hidden; padding-top: 66px;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
::selection { background: var(--mustard); color: var(--navy); }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ── Encabezado ─────────────────────────────────────────── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  background: rgba(251,250,247,.85);
  -webkit-backdrop-filter: saturate(160%) blur(16px); backdrop-filter: saturate(160%) blur(16px);
  box-shadow: 0 6px 24px -14px rgba(40,50,90,.35);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 66px; }
.brand img { height: 24px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 2rem; }
.nav-links a { font-weight: 600; font-size: .95rem; color: var(--ink-soft); transition: color .2s; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--navy); }
.nav-cta {
  background: var(--navy); color: #fff; padding: .6rem 1.15rem; border-radius: 999px;
  font-weight: 700; font-size: .92rem; white-space: nowrap;
  transition: transform .2s var(--ease), box-shadow .2s;
}
.nav-cta:hover { transform: translateY(-1px); box-shadow: 0 8px 22px rgba(40,50,90,.22); }

/* ── Tipografía ─────────────────────────────────────────── */
.eyebrow {
  font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--lilac); display: inline-flex; align-items: center; gap: .55rem;
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: currentColor; border-radius: 2px; }
h1, h2, h3 { font-weight: 800; line-height: 1.1; letter-spacing: -.02em; color: var(--navy); }
p { color: var(--ink-soft); }
.link { color: var(--navy); font-weight: 700; border-bottom: 2px solid var(--mustard); }
.link:hover { border-bottom-color: var(--teal); }

/* ── Cabecera de página ─────────────────────────────────── */
.page-head { padding-top: clamp(48px, 7vw, 88px); padding-bottom: 36px; }
.page-head h1 { font-size: clamp(2.1rem, 5.2vw, 3.5rem); margin: 14px 0 18px; max-width: 22ch; }
.page-head .lead { font-size: 1.12rem; max-width: 62ch; }
.page-head .meta { margin-top: 18px; font-size: .88rem; font-weight: 600; color: var(--lilac); }

/* ── Documento con índice ───────────────────────────────── */
.layout {
  display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 56px;
  align-items: start; padding-bottom: 96px;
}
.toc { position: sticky; top: 92px; display: flex; flex-direction: column; }
.toc h4 {
  font-size: .78rem; text-transform: uppercase; letter-spacing: .1em;
  color: var(--lilac); margin-bottom: 12px;
}
.toc a {
  font-size: .9rem; font-weight: 500; color: var(--ink-soft);
  padding: 6px 0 6px 12px; border-left: 2px solid rgba(40,50,90,.1); transition: color .2s, border-color .2s;
}
.toc a:hover { color: var(--navy); border-left-color: var(--teal); }

.content { max-width: 70ch; }
.content section { padding: 30px 0; border-top: 1px solid rgba(40,50,90,.08); scroll-margin-top: 90px; }
.content section:first-child { border-top: 0; padding-top: 0; }
.content h2 { font-size: clamp(1.3rem, 2.4vw, 1.55rem); margin-bottom: 4px; }
.content p { margin-top: 12px; }
.content strong, .split strong { color: var(--navy); }

ul { list-style: none; margin-top: 14px; }
li { position: relative; padding-left: 26px; margin-top: 10px; color: var(--ink-soft); }
li::before {
  content: ""; position: absolute; left: 3px; top: .58em;
  width: 10px; height: 10px; border-radius: 3px; background: var(--teal);
}
ul.nope li::before {
  content: "✕"; width: auto; height: auto; background: none; top: 0; left: 2px;
  color: var(--coral); font-weight: 800; font-size: .95rem;
}

.callout {
  background: #fff; border: 1px solid #eee; border-radius: var(--radius);
  padding: 24px 26px; margin-top: 18px;
}
.callout h3 { font-size: 1.15rem; }
.callout p:first-child { margin-top: 0; }
.callout.soft { background: rgba(93,179,193,.12); border-color: transparent; }
.callout.warn { background: rgba(239,128,144,.12); border-color: transparent; }
.callout.warn p { color: var(--navy); font-weight: 600; }

/* ── Tarjeta de contacto ────────────────────────────────── */
.contact-card {
  margin-top: 40px; background: linear-gradient(135deg, var(--navy) 0%, #323e6e 100%);
  border-radius: var(--radius); padding: 34px 30px; position: relative; overflow: hidden;
}
.contact-card::after {
  content: ""; position: absolute; width: 64px; height: 64px; border-radius: 14px;
  background: var(--mustard); opacity: .5; right: 8%; bottom: -18px; transform: rotate(-12deg);
}
.contact-card h3 { color: #fff; font-size: 1.35rem; position: relative; }
.contact-card p { color: #cdd2e6; margin: 8px 0 20px; position: relative; }
.contact-card.wide { text-align: center; margin: 24px 0 96px; padding: clamp(40px, 6vw, 64px) 28px; }
.contact-card.wide p { margin-left: auto; margin-right: auto; max-width: 46ch; }

.btn {
  display: inline-flex; align-items: center; gap: .5rem; font-weight: 700; border-radius: 999px;
  padding: .85rem 1.4rem; font-size: 1rem; position: relative;
  transition: transform .2s var(--ease), box-shadow .25s;
}
.btn-mustard { background: var(--mustard); color: var(--navy); }
.btn-mustard:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(246,201,90,.4); }

/* ── Página "Cómo cuidamos tus datos" ───────────────────── */
.trust-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.tcard { background: #fff; border: 1px solid #eee; border-radius: var(--radius); padding: 28px 26px; }
.tcard .ic {
  width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center;
  font-size: 1.3rem; margin-bottom: 16px;
}
.tcard h3 { font-size: 1.08rem; letter-spacing: -.01em; }
.tcard p { font-size: .93rem; margin-top: 9px; }

.split {
  display: grid; grid-template-columns: 1.2fr 1fr; gap: 28px; align-items: start;
  padding-top: clamp(56px, 8vw, 96px);
}
.split h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); margin: 14px 0 12px; }
.nope-card { background: #fff; border: 1px solid #eee; border-radius: var(--radius); padding: 28px 26px; }
.where { padding-top: 28px; }
.where .more { margin-top: 14px; }

/* ── 404 ────────────────────────────────────────────────── */
.notfound {
  text-align: center;
  /* Solo arriba y abajo: el margen lateral lo da .wrap (no pisarlo). */
  padding-top: clamp(72px, 12vw, 140px); padding-bottom: clamp(72px, 12vw, 140px);
}
.notfound h1 { font-size: clamp(2.2rem, 6vw, 3.6rem); margin: 16px auto; max-width: 18ch; }
.notfound p { max-width: 46ch; margin: 0 auto 28px; }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(40,50,90,.28); }

/* ── Pie ────────────────────────────────────────────────── */
footer { padding: 64px 0 40px; border-top: 1px solid rgba(40,50,90,.08); }
.foot-top { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.foot-brand { max-width: 34ch; }
.foot-brand img { height: 26px; width: auto; margin-bottom: 14px; }
.foot-brand p { font-size: .92rem; }
.foot-cols { display: flex; gap: 64px; flex-wrap: wrap; }
.foot-col h4 { font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; color: var(--lilac); margin-bottom: 14px; }
.foot-col a { display: block; color: var(--ink-soft); font-size: .94rem; font-weight: 500; margin-bottom: 10px; transition: color .2s; }
.foot-col a:hover, .foot-col a[aria-current="page"] { color: var(--navy); }
.foot-legal {
  margin-top: 44px; padding-top: 24px; border-top: 1px solid rgba(40,50,90,.08);
  display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; align-items: center;
}
.foot-legal p { font-size: .82rem; color: var(--lilac); }
.foot-legal .foot-disc { color: var(--ink-soft); max-width: 62ch; }

/* ── Responsive ─────────────────────────────────────────── */
@media (max-width: 920px) {
  .trust-grid { grid-template-columns: 1fr 1fr; }
  .split { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .layout { grid-template-columns: 1fr; gap: 24px; }
  .toc {
    position: static; background: #fff; border: 1px solid #eee;
    border-radius: var(--radius-sm); padding: 18px 20px;
  }
}
@media (max-width: 640px) {
  .nav-links { display: none; }
  .trust-grid { grid-template-columns: 1fr; }
  .foot-cols { gap: 36px; }
  .contact-card { padding: 28px 22px; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}
