
/* ── HERO ── */
.legal-hero {
  background: var(--navy);
  padding: 160px 60px 80px;
  position: relative; overflow: hidden;
}
.legal-hero::before {
  content: '§';
  position: absolute; right: 60px; bottom: -40px;
  font-family: 'Cormorant Garamond', serif;
  font-size: 360px; font-weight: 300;
  color: rgba(201,168,76,0.05);
  line-height: 1; pointer-events: none; user-select: none;
}
.breadcrumb {
  font-size: 0.65rem; font-weight: 500; letter-spacing: 0.25em;
  text-transform: uppercase; color: rgba(245,240,232,0.4);
  margin-bottom: 20px;
}
.breadcrumb a { color: var(--gold); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.legal-hero h1 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 300; color: var(--cream); line-height: 1.1;
}
.legal-hero h1 em { color: var(--gold); font-style: italic; }
.legal-hero .update {
  margin-top: 16px; font-size: 0.72rem; font-weight: 300;
  color: rgba(245,240,232,0.35);
}

/* ── FICHA DE DATOS IDENTIFICATIVOS ── */
.id-card {
  background: var(--cream);
  border-top: 4px solid var(--gold);
  padding: 0;
  margin-bottom: 60px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}
.id-field {
  padding: 28px 32px;
  border-right: 1px solid rgba(201,168,76,0.2);
  border-bottom: 1px solid rgba(201,168,76,0.2);
}
.id-field:nth-child(3n) { border-right: none; }
.id-field:nth-last-child(-n+3) { border-bottom: none; }
.id-label {
  display: block; font-size: 0.58rem; font-weight: 700;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 6px;
}
.id-value {
  font-size: 0.82rem; font-weight: 400; color: var(--navy);
  line-height: 1.5;
}

/* ── LAYOUT ── */
.legal-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  max-width: 1100px; margin: 0 auto;
  padding: 80px 60px 100px;
  gap: 60px; align-items: start;
}

/* ── ÍNDICE LATERAL ── */
.legal-index {
  position: sticky; top: 100px;
}
.legal-index h4 {
  font-size: 0.62rem; font-weight: 700; letter-spacing: 0.25em;
  text-transform: uppercase; color: var(--gold);
  margin-bottom: 20px; padding-bottom: 12px;
  border-bottom: 1px solid var(--light);
}
.legal-index nav { display: flex; flex-direction: column; gap: 4px; }
.legal-index nav a {
  font-size: 0.75rem; font-weight: 300; color: var(--gray);
  text-decoration: none; padding: 7px 12px;
  border-left: 2px solid transparent;
  transition: all 0.2s; line-height: 1.4;
}
.legal-index nav a:hover {
  color: var(--navy); border-left-color: var(--gold);
  background: var(--cream); padding-left: 16px;
}
.legal-index nav a.active {
  color: var(--navy); border-left-color: var(--gold);
  font-weight: 500;
}

/* ── BADGE VIGENTE ── */
.badge-vigente {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(201,168,76,0.12); border: 1px solid rgba(201,168,76,0.3);
  padding: 6px 14px; font-size: 0.6rem; font-weight: 700;
  letter-spacing: 0.18em; text-transform: uppercase; color: #8a6a10;
  margin-top: 16px;
}
.badge-vigente::before {
  content: ''; width: 7px; height: 7px; border-radius: 50%;
  background: var(--gold); flex-shrink: 0;
}

/* ── CUERPO ── */
.legal-body { min-width: 0; }
.legal-section { margin-bottom: 60px; scroll-margin-top: 100px; }
.legal-section h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.6rem; font-weight: 400; color: var(--navy);
  margin-bottom: 16px; padding-bottom: 12px;
  border-bottom: 1px solid var(--light);
  display: flex; align-items: center; gap: 12px;
}
.num {
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.2em;
  color: var(--gold); font-family: 'Montserrat', sans-serif;
}
.legal-section p {
  font-size: 0.88rem; font-weight: 300; color: #444;
  line-height: 1.95; margin-bottom: 14px;
}
.legal-section ul {
  list-style: none; padding: 0; margin: 12px 0 14px;
}
.legal-section ul li {
  font-size: 0.88rem; font-weight: 300; color: #444;
  line-height: 1.8; padding: 8px 0 8px 24px;
  position: relative; border-bottom: 1px solid var(--light);
}
.legal-section ul li:last-child { border-bottom: none; }
.legal-section ul li::before {
  content: '◆'; position: absolute; left: 0;
  font-size: 0.4rem; color: var(--gold); top: 14px;
}
.legal-highlight {
  background: var(--cream); border-left: 3px solid var(--gold);
  padding: 20px 24px; margin: 20px 0;
  font-size: 0.88rem; font-weight: 300; color: #444; line-height: 1.8;
}
.legal-highlight strong { color: var(--navy); font-weight: 600; }

/* ── AVISO DE ATENCIÓN ── */
.legal-warning {
  background: rgba(180,40,40,0.05);
  border-left: 3px solid #b82828;
  padding: 20px 24px; margin: 20px 0;
  font-size: 0.85rem; font-weight: 300; color: #444; line-height: 1.8;
}
.legal-warning strong { color: #8b2020; }

/* ── TARJETAS DE PROPIEDAD INTELECTUAL ── */
.pi-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 16px; margin: 24px 0;
}
.pi-card {
  border: 1px solid var(--light); padding: 24px 20px;
  text-align: center; transition: all 0.25s;
}
.pi-card:hover { border-color: var(--gold); transform: translateY(-3px); }
.pi-icon { font-size: 1.8rem; margin-bottom: 12px; }
.pi-card strong {
  display: block; font-size: 0.78rem; font-weight: 600;
  color: var(--navy); margin-bottom: 8px; letter-spacing: 0.04em;
}
.pi-card p {
  font-size: 0.74rem !important; color: var(--gray) !important;
  line-height: 1.7 !important; margin-bottom: 0 !important;
}

/* ── LEGISLACIÓN ── */
.ley-list {
  display: flex; flex-direction: column; gap: 12px; margin: 20px 0;
}
.ley-item {
  display: flex; align-items: flex-start; gap: 16px;
  padding: 16px 20px; border: 1px solid var(--light);
  transition: border-color 0.2s;
}
.ley-item:hover { border-color: var(--gold); }
.ley-ref {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1rem; font-weight: 600; color: var(--gold);
  line-height: 1.2; flex-shrink: 0; min-width: 100px;
  padding-top: 2px;
}
.ley-desc strong {
  display: block; font-size: 0.8rem; font-weight: 600;
  color: var(--navy); margin-bottom: 3px;
}
.ley-desc span {
  font-size: 0.75rem; font-weight: 300; color: var(--gray); line-height: 1.6;
}

/* ── CONTACTO ── */
.contact-strip {
  background: var(--navy); padding: 32px 36px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; flex-wrap: wrap; margin-top: 8px;
}
.contact-strip p {
  font-size: 0.82rem !important; font-weight: 300 !important;
  color: rgba(245,240,232,0.55) !important; margin: 0 !important;
  max-width: 460px;
}
.contact-strip a {
  background: var(--gold); color: var(--navy);
  font-size: 0.62rem; font-weight: 700; letter-spacing: 0.18em;
  text-transform: uppercase; padding: 13px 28px;
  text-decoration: none; flex-shrink: 0; transition: all 0.25s;
}
.contact-strip a:hover { background: var(--gold2); transform: translateY(-2px); }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .legal-layout {
    grid-template-columns: 1fr;
    padding: 60px 28px 80px;
    gap: 40px;
  }
  .legal-index { position: static; }
  .legal-index nav { flex-direction: row; flex-wrap: wrap; }
  .legal-index nav a { border-left: none; border-bottom: 2px solid transparent; }
  .legal-index nav a:hover,
  .legal-index nav a.active { border-left: none; border-bottom-color: var(--gold); padding-left: 12px; }
  .id-card { grid-template-columns: repeat(2, 1fr); }
  .pi-grid { grid-template-columns: 1fr 1fr; }
  .contact-strip { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 640px) {
  .legal-hero { padding: 140px 28px 60px; }
  .id-card { grid-template-columns: 1fr; }
  .pi-grid { grid-template-columns: 1fr; }
}