/* ════════════════════════════════════════════════════
   SUBLIMADOS MAJESTIC — legal.css
   Páginas de políticas · Identidad de marca · 2025
   Playfair Display + Nunito · Paleta #E8177A
════════════════════════════════════════════════════ */

:root {
  --rosa:       #E8177A;
  --rosa-dark:  #B8105E;
  --rosa-light: #FF5BAE;
  --rosa-soft:  #FDE8F2;
  --rosa-borde: #F5C8DC;
  --cream:      #FDF5F8;
  --blanco:     #FEFEFE;
  --negro:      #0F0A0D;
  --texto:      #2C1A22;
  --muted:      #7A5060;
  --wa:         #25D366;
  --wa-dark:    #128C7E;
  --font-title: 'Playfair Display', Georgia, serif;
  --font-body:  'Nunito', 'Helvetica Neue', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
body {
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--texto);
  -webkit-font-smoothing: antialiased;
  margin: 0; padding: 0;
}

/* ── NAVBAR LEGAL ──────────────────────────────── */
.legal-navbar {
  position: sticky; top: 0; z-index: 100;
  background: rgba(253,245,248,.97);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--rosa-borde);
  box-shadow: 0 2px 16px rgba(232,23,122,.07);
  padding: 0 24px; height: 68px;
  display: flex; align-items: center;
}
.legal-nav-inner {
  max-width: 1000px; margin: 0 auto; width: 100%;
  display: flex; align-items: center;
  justify-content: space-between; gap: 16px;
}
.legal-nav-logo {
  display: flex; align-items: center;
  gap: 10px; text-decoration: none;
}
.legal-nav-logo img {
  width: 40px; height: 40px; border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 2px 8px rgba(232,23,122,.2);
}
.legal-nav-brand {
  font-family: var(--font-title);
  font-size: 1.15rem; font-weight: 700;
  color: var(--rosa-dark); line-height: 1;
  display: block;
}
.legal-nav-sub {
  display: block; font-size: .62rem;
  color: var(--muted); font-family: var(--font-body);
  font-weight: 600; letter-spacing: .05em; margin-top: 1px;
}
.legal-back-btn {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-body); font-size: .82rem;
  font-weight: 800; color: var(--rosa-dark);
  background: var(--rosa-soft);
  border: 1.5px solid var(--rosa-borde);
  padding: 8px 18px; border-radius: 999px;
  text-decoration: none;
  transition: background .2s, border-color .2s;
  white-space: nowrap;
}
.legal-back-btn:hover {
  background: var(--rosa-borde);
  border-color: var(--rosa-light);
}

/* ── LAYOUT MAIN ───────────────────────────────── */
.legal-main {
  min-height: 70vh; padding: 56px 24px 80px;
  background: var(--cream);
}
.legal-container { max-width: 860px; margin: 0 auto; }

/* ── BREADCRUMB ────────────────────────────────── */
.legal-breadcrumb {
  font-size: .75rem; color: var(--muted);
  margin-bottom: 24px; display: flex;
  align-items: center; gap: 6px;
}
.legal-breadcrumb a { color: var(--rosa); text-decoration: none; }
.legal-breadcrumb a:hover { color: var(--rosa-dark); }
.legal-breadcrumb span { opacity: .5; }

/* ── LAYOUT CON SIDEBAR ─────────────────────────── */
.legal-page-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 32px; align-items: start;
}

/* ── SIDEBAR ────────────────────────────────────── */
.legal-sidebar {
  position: sticky; top: 88px;
  background: var(--blanco);
  border: 1px solid var(--rosa-borde);
  border-radius: 16px; padding: 20px 16px;
  box-shadow: 0 2px 12px rgba(232,23,122,.06);
}
.legal-sidebar h5 {
  font-size: .68rem; font-weight: 800;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--rosa-borde);
}
.legal-sidebar a {
  display: flex; align-items: center; gap: 8px;
  font-size: .82rem; color: var(--muted);
  padding: 8px 10px; border-radius: 8px;
  text-decoration: none; border: none;
  transition: background .2s, color .2s; margin-bottom: 2px;
}
.legal-sidebar a:hover { background: var(--rosa-soft); color: var(--rosa-dark); }
.legal-sidebar a.active { background: var(--rosa-soft); color: var(--rosa-dark); font-weight: 800; }
.legal-sidebar a .ls-icon { font-size: .85rem; flex-shrink: 0; }

/* ── BOX PRINCIPAL ─────────────────────────────── */
.legal-box {
  background: var(--blanco); border-radius: 24px;
  padding: 52px 48px;
  box-shadow: 0 4px 32px rgba(232,23,122,.09);
  border: 1px solid var(--rosa-borde);
}

/* ── HEADER DOCUMENTO ──────────────────────────── */
.legal-doc-header {
  margin-bottom: 40px; padding-bottom: 28px;
  border-bottom: 2px solid var(--rosa-borde);
}
.legal-doc-tag {
  display: inline-block; font-size: .7rem; font-weight: 800;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--rosa-dark);
  background: rgba(232,23,122,.08);
  border: 1px solid rgba(232,23,122,.18);
  padding: 4px 12px; border-radius: 999px; margin-bottom: 14px;
}
.legal-doc-title {
  font-family: var(--font-title);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 900; color: var(--rosa-dark);
  line-height: 1.15; margin-bottom: 10px;
}
.legal-doc-meta { font-size: .78rem; color: var(--muted); }

/* ── TIPOGRAFÍA LEGAL ──────────────────────────── */
.legal-box h3 {
  font-family: var(--font-body); font-size: .92rem;
  font-weight: 800; color: var(--rosa-dark);
  margin: 32px 0 10px; text-transform: uppercase;
  letter-spacing: .06em; padding-left: 12px;
  border-left: 3px solid var(--rosa);
}
.legal-box h3:first-of-type { margin-top: 0; }
.legal-box p {
  font-size: .94rem; color: #3D1A2C;
  margin-bottom: 14px; line-height: 1.75;
}
.legal-box ul {
  margin: 0 0 18px 0; padding: 0; list-style: none;
}
.legal-box ul li {
  font-size: .93rem; color: #3D1A2C;
  line-height: 1.65; margin-bottom: 8px;
  padding-left: 20px; position: relative;
}
.legal-box ul li::before {
  content: '✦'; position: absolute; left: 0;
  color: var(--rosa); font-size: .65rem; top: 4px;
}
.legal-box ol {
  margin: 0 0 18px 0; padding: 0;
  counter-reset: legal-counter; list-style: none;
}
.legal-box ol li {
  font-size: .93rem; color: #3D1A2C;
  line-height: 1.65; margin-bottom: 10px;
  padding-left: 32px; position: relative;
  counter-increment: legal-counter;
}
.legal-box ol li::before {
  content: counter(legal-counter); position: absolute;
  left: 0; width: 22px; height: 22px;
  background: var(--rosa); color: #fff;
  border-radius: 50%; font-size: .68rem; font-weight: 800;
  display: flex; align-items: center; justify-content: center; top: 2px;
}
.legal-box strong { color: var(--rosa-dark); font-weight: 700; }
.legal-box a {
  color: var(--rosa); text-decoration: none;
  border-bottom: 1px solid rgba(232,23,122,.3);
  transition: color .2s;
}
.legal-box a:hover { color: var(--rosa-dark); }

/* ── NOTA FECHA ─────────────────────────────────── */
.legal-date-note {
  font-size: .76rem; color: var(--muted);
  margin-top: 40px; padding-top: 18px;
  border-top: 1px dashed var(--rosa-borde);
  display: flex; align-items: center; gap: 8px;
}
.legal-date-note::before { content: '📅'; font-size: .85rem; }

/* ── CONTACT CARD ──────────────────────────────── */
.legal-contact-card {
  background: var(--rosa-soft);
  border: 1.5px solid var(--rosa-borde);
  border-radius: 16px; padding: 24px 28px; margin: 28px 0;
}
.legal-contact-card h4 {
  font-family: var(--font-title); font-size: 1.1rem;
  font-weight: 700; color: var(--rosa-dark); margin-bottom: 16px;
}
.legal-contact-row {
  display: flex; align-items: center; gap: 10px;
  font-size: .9rem; color: var(--texto);
  margin-bottom: 10px; flex-wrap: wrap;
}
.lc-icon { font-size: 1rem; flex-shrink: 0; }
.lc-label { color: var(--muted); font-size: .8rem; min-width: 80px; }
.lc-val { font-weight: 600; }
.lc-val a { color: var(--rosa-dark); font-weight: 700; }

/* ── SOCIAL ─────────────────────────────────────── */
.legal-social-row {
  display: flex; gap: 12px; flex-wrap: wrap; margin-top: 16px;
}
.legal-social-btn {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: .8rem; font-weight: 700;
  padding: 8px 16px; border-radius: 999px;
  text-decoration: none;
  border: 1.5px solid var(--rosa-borde);
  color: var(--rosa-dark); background: var(--blanco);
  transition: background .2s, border-color .2s;
}
.legal-social-btn:hover {
  background: var(--rosa-soft);
  border-color: var(--rosa); border-bottom: 1.5px solid var(--rosa);
}
.legal-social-btn svg { width: 16px; height: 16px; flex-shrink: 0; }
.lsb-ig { border-color: #C13584; color: #C13584; }
.lsb-ig:hover { background: rgba(193,53,132,.06); border-color: #C13584; border-bottom-color: #C13584; }
.lsb-tt { border-color: #000; color: #000; }
.lsb-tt:hover { background: rgba(0,0,0,.04); border-bottom-color: #000; }
.lsb-wa { border-color: var(--wa); color: var(--wa-dark); }
.lsb-wa:hover { background: rgba(37,211,102,.06); border-bottom-color: var(--wa); }

/* ── CTA WHATSAPP ──────────────────────────────── */
.legal-wa-cta {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--wa); color: #fff;
  font-weight: 800; font-size: .9rem;
  padding: 14px 24px; border-radius: 999px;
  text-decoration: none; border: none; margin-top: 12px;
  transition: background .2s, transform .2s;
  box-shadow: 0 4px 16px rgba(37,211,102,.3);
}
.legal-wa-cta:hover {
  background: var(--wa-dark); transform: translateY(-2px); border-bottom: none;
}
.legal-wa-cta svg { width: 18px; height: 18px; flex-shrink: 0; }

/* ── WA FLOTANTE ─────────────────────────────────── */
.legal-wa-float {
  position: fixed; bottom: 24px; right: 24px; z-index: 9999;
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--wa); color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 24px rgba(37,211,102,.45);
  transition: transform .2s, box-shadow .2s;
  text-decoration: none;
}
.legal-wa-float:hover { transform: scale(1.08) translateY(-2px); box-shadow: 0 10px 32px rgba(37,211,102,.55); }
.legal-wa-float svg { width: 28px; height: 28px; }

/* ── FOOTER ─────────────────────────────────────── */
.legal-footer { background: var(--negro); padding: 36px 24px; }
.legal-footer-inner {
  max-width: 860px; margin: 0 auto;
  display: flex; flex-direction: column;
  align-items: center; gap: 16px; text-align: center;
}
.legal-footer-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.legal-footer-logo img { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; opacity: .85; }
.legal-footer-logo span {
  font-family: var(--font-title); font-size: 1rem;
  font-weight: 700; color: rgba(255,255,255,.8);
}
.legal-footer-links {
  display: flex; gap: 6px; flex-wrap: wrap; justify-content: center;
}
.legal-footer-links a {
  font-size: .75rem; color: rgba(255,255,255,.45);
  text-decoration: none; padding: 3px 8px;
  border-radius: 999px; transition: color .2s;
}
.legal-footer-links a:hover { color: var(--rosa-light); }
.legal-footer-links span { color: rgba(255,255,255,.15); font-size: .75rem; line-height: 1.8; }
.legal-footer-copy { font-size: .73rem; color: rgba(255,255,255,.3); }

/* ── RESPONSIVE ────────────────────────────────── */
@media (max-width: 768px) {
  .legal-box { padding: 32px 20px; }
  .legal-page-layout { grid-template-columns: 1fr; }
  .legal-sidebar { position: static; order: 2; }
}
@media (max-width: 480px) {
  .legal-box { padding: 24px 16px; border-radius: 16px; }
  .legal-doc-title { font-size: 1.7rem; }
  .legal-social-row { flex-direction: column; }
}
