/* ══ TOKENS ══ */
:root {
  --bg:        #ffffff;
  --bg2:       #f7f5f0;
  --bg3:       #ede9e1;
  --dark:      #1a1f2e;
  --dark2:     #252c40;
  --dark3:     #2e3650;
  --blue:      #6aabdc;
  --blue2:     #4d95cc;
  --blue3:     #3580b8;
  --text:      #1a1f2e;
  --text2:     #4a5068;
  --text3:     #8a90a8;
  --text-inv:  #f2ede4;
  --text-inv2: #a8b0c8;
  --border:    #ddd8ce;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  font-size: 16px;
}
a { text-decoration: none; color: inherit; }
p, li { max-width: 72ch; }

/* ══ NAV ══ */
.pub-nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(26,31,46,.97); backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(106,171,220,.15);
  padding: 0 5%; display: flex; align-items: center;
  justify-content: space-between; height: 64px;
}
.pub-nav-brand {
  display: flex; align-items: center; gap: 10px;
  font-size: 17px; font-weight: 800; color: var(--text-inv);
}
.pub-nav-brand svg { stroke: var(--blue); }
.pub-nav-links { display: flex; align-items: center; gap: 28px; }
.pub-nav-links a { font-size: 13px; font-weight: 500; color: var(--text-inv2); transition: color .15s; }
.pub-nav-links a:hover { color: var(--text-inv); }
.pub-nav-cta {
  background: var(--blue) !important; color: #fff !important;
  font-weight: 700 !important; font-size: 13px !important;
  padding: 8px 18px; border-radius: 8px; transition: background .15s !important;
}
.pub-nav-cta:hover { background: var(--blue2) !important; }

/* ══ HERO DE PÁGINA ══ */
.pp-hero {
  background: var(--dark);
  padding: 64px 5% 56px;
  border-bottom: 1px solid rgba(106,171,220,.12);
}
.pp-hero-inner { max-width: 900px; margin: 0 auto; }
.pp-hero-back {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; color: var(--text-inv2);
  margin-bottom: 28px; transition: color .15s;
}
.pp-hero-back:hover { color: var(--blue); }
.pp-hero h1 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800; color: var(--text-inv);
  line-height: 1.15; margin-bottom: 14px;
}
.pp-hero h1 span { color: var(--blue); }
.pp-hero-sub {
  font-size: 14px; color: var(--text-inv2); line-height: 1.6;
}
.pp-hero-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(106,171,220,.12); border: 1px solid rgba(106,171,220,.2);
  color: var(--blue); font-size: 12px; font-weight: 600;
  padding: 5px 12px; border-radius: 9999px; margin-bottom: 20px;
  letter-spacing: .03em; text-transform: uppercase;
}

/* ══ CONTENIDO PRINCIPAL ══ */
.pp-layout {
  max-width: 900px; margin: 0 auto;
  padding: 56px 5% 72px;
  display: grid; gap: 0;
}

/* Intro legal */
.pp-intro {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 24px 28px;
  margin-bottom: 48px;
  font-size: 14px; color: var(--text2);
  line-height: 1.7;
}
.pp-intro p { max-width: none; }

/* Secciones */
.pp-section {
  padding-bottom: 40px;
  margin-bottom: 40px;
  border-bottom: 1px solid var(--border);
}
.pp-section:last-child { border-bottom: none; margin-bottom: 0; }

.pp-section-number {
  font-size: 12px; font-weight: 700; color: var(--blue);
  letter-spacing: .08em; text-transform: uppercase;
  margin-bottom: 8px;
}
.pp-section h2 {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  font-weight: 700; color: var(--text);
  margin-bottom: 16px; line-height: 1.3;
}
.pp-section h3 {
  font-size: 0.95rem; font-weight: 600; color: var(--text);
  margin-top: 20px; margin-bottom: 8px;
}
.pp-section p {
  font-size: 15px; color: var(--text2);
  line-height: 1.75; margin-bottom: 10px;
}
.pp-section ul {
  list-style: none; padding: 0; margin: 0 0 10px 0;
  display: flex; flex-direction: column; gap: 6px;
}
.pp-section ul li {
  font-size: 15px; color: var(--text2);
  padding-left: 20px; position: relative; line-height: 1.65;
}
.pp-section ul li::before {
  content: ''; position: absolute; left: 0; top: 9px;
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--blue); opacity: .7;
}
.pp-section a {
  color: var(--blue); text-decoration: underline;
  text-underline-offset: 2px; transition: color .15s;
}
.pp-section a:hover { color: var(--blue2); }

/* Card responsable */
.pp-responsible-card {
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: 10px; padding: 20px 24px;
  margin-top: 16px; display: grid; gap: 8px;
}
.pp-responsible-card dl {
  display: grid; grid-template-columns: 120px 1fr; gap: 8px 16px;
}
.pp-responsible-card dt { font-size: 13px; font-weight: 600; color: var(--text3); }
.pp-responsible-card dd { font-size: 14px; color: var(--text2); }
.pp-responsible-card dd a { color: var(--blue); text-underline-offset: 2px; }

/* Grid de derechos */
.pp-rights-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 10px; margin-top: 16px;
}
.pp-right-item {
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: 8px; padding: 12px 16px;
  font-size: 14px; color: var(--text2);
  display: flex; align-items: center; gap: 8px;
}
.pp-right-item::before {
  content: '✓'; color: var(--blue); font-weight: 700; font-size: 13px;
  flex-shrink: 0;
}

/* ══ CLÁUSULA LEGAL ══ */
.legal-clause {
  background: var(--dark2);
  border-top: 1px solid rgba(106,171,220,.12);
  padding: 28px 5%;
  text-align: center;
}
.legal-clause-title {
  font-size: 10px; font-weight: 800; letter-spacing: 2px;
  text-transform: uppercase; color: var(--blue);
  margin-bottom: 10px;
}
.legal-clause p {
  font-size: 11px; line-height: 1.75; color: var(--text-inv2);
  max-width: 900px; margin-inline: auto;
}
.legal-clause p strong { color: var(--text-inv); }
.legal-clause p a {
  color: var(--blue); text-decoration: underline;
  text-underline-offset: 2px; transition: color .15s;
}
.legal-clause p a:hover { color: #fff; }

/* ══ FOOTER ══ */
.pub-footer {
  background: var(--dark); border-top: 1px solid rgba(106,171,220,.12);
  padding: 32px 5%; display: flex; align-items: center;
  justify-content: space-between; flex-wrap: wrap; gap: 16px;
}
.pub-footer-brand  { font-size: 15px; font-weight: 800; color: var(--text-inv); }
.pub-footer p      { font-size: 12px; color: var(--text-inv2); }
.pub-footer-solvia {
  color: var(--blue); text-decoration: underline; text-underline-offset: 2px;
}
.pub-footer-links  { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.pub-footer-links a {
  font-size: 12px; color: var(--text-inv2);
  text-decoration: underline; text-underline-offset: 2px; transition: color .15s;
}
.pub-footer-links a:hover { color: var(--blue); }
.pub-footer-login {
  font-size: 12px; color: var(--text-inv2);
  display: flex; align-items: center; gap: 6px; transition: color .15s;
}
.pub-footer-login:hover { color: var(--blue); }

/* ══ RESPONSIVE ══ */
@media (max-width: 768px) {
  .pub-nav-links { gap: 14px; }
  .pub-nav-links a:not(.pub-nav-cta) { display: none; }
  .pp-responsible-card dl { grid-template-columns: 1fr; }
  .pp-responsible-card dt { margin-top: 8px; }
}