/* Sistema de marca dX Latam 2025 (Gudstudio) — páginas legales */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@100;300;400;600;700&display=swap');

:root {
  --dx-red: #B52C1F;
  --dx-black: #282D27;
  --dx-gray-dark: #565F5F;
  --dx-gray-mid: #888A8B;
  --dx-white: #FFFFFF;
  --dx-bg-light: #F0EFEB;
  --dx-font: 'Blauer Nue', 'Outfit', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --dx-rule: #d8d5cd;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--dx-font);
  font-weight: 300;
  color: var(--dx-black);
  background: var(--dx-bg-light);
  -webkit-font-smoothing: antialiased;
}

/* ---------- Cabecera ---------- */

.dx-header {
  background: var(--dx-black);
  padding: 20px clamp(1.25rem, 5vw, 4rem);
  display: flex;
  align-items: center;
  gap: 16px;
}
.dx-header svg { height: 34px; width: auto; display: block; }
.dx-header .mark {
  color: var(--dx-white);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.01em;
}
.dx-header nav { margin-left: auto; display: flex; gap: 1.75rem; }
.dx-header nav a {
  color: var(--dx-white);
  text-decoration: none;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: .7;
  padding-bottom: 3px;
  border-bottom: 2px solid transparent;
}
.dx-header nav a:hover,
.dx-header nav a[aria-current="page"] { opacity: 1; border-bottom-color: var(--dx-red); }

/* ---------- Portada del documento ---------- */

.dx-hero {
  background: var(--dx-black);
  color: var(--dx-white);
  padding: clamp(3rem, 9vw, 6.5rem) clamp(1.25rem, 5vw, 4rem) clamp(2.5rem, 6vw, 4rem);
}
.dx-hero .eyebrow {
  margin: 0 0 .75rem;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: .5;
}
.dx-hero h1 {
  margin: 0;
  font-weight: 700;
  font-size: clamp(2rem, 6vw, 3.75rem);
  line-height: 1.02;
  letter-spacing: -0.015em;
  max-width: 18ch;
}
.dx-hero .rule { width: 48px; height: 3px; background: var(--dx-red); margin-top: 1.5rem; }
.dx-hero .meta {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 2.5rem;
  font-size: 13px;
}
.dx-hero .meta span { display: block; opacity: .5; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; margin-bottom: .3rem; }

/* ---------- Cuerpo del documento ---------- */

.dx-doc {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(2.5rem, 6vw, 4.5rem) clamp(1.25rem, 5vw, 4rem) 5rem;
}

.dx-toc { align-self: start; position: sticky; top: 2rem; }
.dx-toc p {
  margin: 0 0 1rem;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--dx-gray-mid);
}
.dx-toc ol { list-style: none; margin: 0; padding: 0; counter-reset: toc; }
.dx-toc li { counter-increment: toc; margin-bottom: .55rem; }
.dx-toc a {
  color: var(--dx-gray-dark);
  text-decoration: none;
  font-size: 13.5px;
  line-height: 1.35;
  display: block;
  padding-left: 2.1rem;
  text-indent: -2.1rem;
}
.dx-toc a::before {
  content: counter(toc, decimal-leading-zero);
  color: var(--dx-gray-mid);
  font-weight: 600;
  font-size: 11px;
  margin-right: .85rem;
}
.dx-toc a:hover { color: var(--dx-red); }

article { max-width: 70ch; }
article > .intro {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  font-weight: 300;
  line-height: 1.55;
  color: var(--dx-gray-dark);
  margin: 0 0 3rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--dx-rule);
}
article section { margin-bottom: 3rem; scroll-margin-top: 1.5rem; }
article h2 {
  font-weight: 700;
  font-size: clamp(1.15rem, 2.2vw, 1.45rem);
  line-height: 1.25;
  margin: 0 0 1rem;
  display: flex;
  gap: .9rem;
  align-items: baseline;
}
article h2 .num {
  color: var(--dx-red);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  flex: none;
  padding-top: .15rem;
}
article h3 {
  font-weight: 600;
  font-size: 1rem;
  margin: 1.75rem 0 .6rem;
  color: var(--dx-black);
}
article p, article li { font-size: 15.5px; line-height: 1.7; color: var(--dx-gray-dark); }
article p { margin: 0 0 1rem; }
article ul { margin: 0 0 1rem; padding-left: 1.15rem; }
article li { margin-bottom: .5rem; }
article li::marker { color: var(--dx-red); }
article a { color: var(--dx-red); text-decoration: underline; text-underline-offset: 2px; }
article strong { font-weight: 600; color: var(--dx-black); }

.dx-callout {
  background: var(--dx-white);
  border-left: 3px solid var(--dx-red);
  padding: 1.4rem 1.6rem;
  margin: 1.5rem 0;
}
.dx-callout p:last-child { margin-bottom: 0; }
.dx-callout .label {
  display: block;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--dx-gray-mid);
  margin-bottom: .6rem;
}

table { width: 100%; border-collapse: collapse; margin: 1.25rem 0; font-size: 14.5px; }
th, td { text-align: left; padding: .75rem .9rem; border-bottom: 1px solid var(--dx-rule); vertical-align: top; }
th {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--dx-gray-mid);
  border-bottom-color: var(--dx-gray-mid);
}
td { color: var(--dx-gray-dark); line-height: 1.55; }
.table-scroll { overflow-x: auto; }

/* ---------- Pie ---------- */

.dx-footer {
  background: var(--dx-black);
  color: var(--dx-white);
  padding: clamp(2.5rem, 6vw, 4rem) clamp(1.25rem, 5vw, 4rem);
}
.dx-footer .inner {
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 2rem 4rem;
  align-items: flex-start;
}
.dx-footer svg { height: 40px; width: auto; }
.dx-footer a { color: var(--dx-white); text-decoration: none; opacity: .7; font-size: 14px; }
.dx-footer a:hover { opacity: 1; color: var(--dx-red); }
.dx-footer .links { display: flex; flex-direction: column; gap: .6rem; }
.dx-footer .legal { margin-left: auto; font-size: 12px; opacity: .45; max-width: 34ch; line-height: 1.6; }

@media (max-width: 860px) {
  .dx-doc { grid-template-columns: 1fr; }
  .dx-toc { position: static; border-bottom: 1px solid var(--dx-rule); padding-bottom: 1.5rem; }
  .dx-header nav { width: 100%; margin-left: 0; gap: 1.25rem; }
  .dx-header { flex-wrap: wrap; }
  .dx-footer .legal { margin-left: 0; }
}
