/*
  =========================================
  RED ALIANZA S.R.L. - ESTILOS PÁGINAS LEGALES (Diseño 7 — Dorado / Champagne)
  =========================================
*/

:root {
  /* NAVY + DORADO — igual que index.css del diseño 7 */
  --bg-deep: hsl(215, 56%, 7%);      /* #08111f navy profundo */
  --bg-surface: hsl(214, 52%, 13%);  /* #102036 navy de paneles */
  --bg-glass: rgba(8, 17, 31, 0.74);

  --gold-primary: hsl(43, 60%, 53%); /* #cda63c */
  --gold-light: hsl(43, 70%, 73%);   /* #e7cd86 */
  --gold-deep: hsl(38, 58%, 43%);    /* #b3852e */

  --text-main: hsl(210, 32%, 95%);   /* #f0f4f8 marfil frío */
  --text-secondary: hsl(212, 20%, 75%); /* #b3bdc9 */
  --text-muted: hsl(212, 15%, 56%);     /* #818c99 */

  --line-light: rgba(205, 166, 60, 0.11);
  --line-strong: rgba(205, 166, 60, 0.24);
  --gold-glow: rgba(205, 166, 60, 0.16);
  
  --max-width: 900px;
  --radius-lg: 22px;
  --radius-md: 12px;
  --radius-sm: 8px;
  --transition-smooth: 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* Reset y Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Outfit", system-ui, -apple-system, sans-serif;
  color: var(--text-secondary);
  background-color: var(--bg-deep);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  padding-bottom: 60px;
}

/* Grano y Glow decorativo en fondo */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.035;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

body::after {
  content: "";
  position: fixed;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--gold-glow) 0%, transparent 65%);
  top: -250px;
  left: 50%;
  transform: translateX(-50%);
  pointer-events: none;
  z-index: 0;
  mix-blend-mode: screen;
}

a {
  color: var(--gold-light);
  text-decoration: none;
  transition: color 0.2s ease;
  border-bottom: 1px dotted rgba(212, 175, 55, 0.4);
}

a:hover {
  color: var(--gold-primary);
  border-bottom-color: var(--gold-primary);
}

.wrap {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 2;
}

/* --- HEADER --- */
header {
  position: sticky;
  top: 0;
  z-index: 50;
  background-color: var(--bg-glass);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line-light);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 84px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand .mono {
  width: 40px;
  height: 40px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  display: grid;
  place-items: center;
  color: var(--gold-light);
  font-family: "Bricolage Grotesque", sans-serif;
  font-weight: 600;
  font-size: 16px;
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.1), transparent);
}

.brand .bt {
  font-family: "Bricolage Grotesque", sans-serif;
  font-weight: 600;
  font-size: 18px;
  color: var(--text-main);
  line-height: 1.1;
}

.brand .bt small {
  display: block;
  font-family: "Outfit", sans-serif;
  font-size: 8px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold-primary);
  margin-top: 2px;
}

.back {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-main);
  padding: 10px 20px;
  border: 1px solid var(--line-light);
  border-radius: 50px;
  transition: var(--transition-smooth);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.01);
  border-bottom: 1px solid var(--line-light); /* Override link default */
}

.back:hover {
  border-color: var(--gold-primary);
  color: var(--gold-light);
  background: rgba(212, 175, 55, 0.05);
}

/* --- HERO --- */
.hero {
  text-align: center;
  padding: 80px 0 40px;
  border-bottom: 1px solid var(--line-light);
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 8px 18px;
  border-radius: 50px;
  background: rgba(212, 175, 55, 0.05);
  border: 1px solid var(--line-light);
  color: var(--gold-light);
  margin-bottom: 20px;
}

.pill .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--gold-primary);
}

.hero h1 {
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 600;
  color: var(--text-main);
  line-height: 1.1;
  margin-bottom: 12px;
}

.hero .upd {
  color: var(--text-muted);
  font-size: 13.5px;
}

/* --- CONTENIDO / ARTÍCULO --- */
article {
  margin: 48px auto 80px;
  padding: 56px;
  background: linear-gradient(180deg, var(--bg-surface) 0%, rgba(33, 26, 16, 0.3) 100%);
  border: 1px solid var(--line-light);
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.25);
}

article::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1.5px;
  background: linear-gradient(90deg, transparent, var(--gold-primary), transparent);
}

article > p:first-of-type {
  font-size: 16.5px;
  color: var(--text-main);
  margin-bottom: 28px;
}

article h2 {
  font-family: "Bricolage Grotesque", sans-serif;
  font-size: 22px;
  font-weight: 500;
  color: var(--text-main);
  margin: 40px 0 16px;
  display: flex;
  align-items: center;
  gap: 16px;
}

article h2:first-of-type {
  margin-top: 0;
}

article h2 .n {
  flex: none;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: rgba(212, 175, 55, 0.05);
  border: 1px solid var(--line-light);
  color: var(--gold-primary);
  display: grid;
  place-items: center;
  font-size: 14px;
  font-weight: 600;
  font-family: "Bricolage Grotesque", sans-serif;
}

article p {
  font-size: 15px;
  margin-bottom: 18px;
  line-height: 1.75;
}

article ul {
  margin: 0 0 20px 8px;
  list-style: none;
}

article li {
  margin-bottom: 10px;
  padding-left: 24px;
  position: relative;
  font-size: 15px;
}

article li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 11px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background-color: var(--gold-primary);
}

article strong {
  color: var(--text-main);
  font-weight: 500;
}

/* Nota / Destacado */
.note {
  background: rgba(212, 175, 55, 0.03);
  border: 1px solid var(--line-light);
  border-left: 3px solid var(--gold-primary);
  border-radius: var(--radius-sm);
  padding: 20px 24px;
  font-size: 14.5px;
  color: var(--text-secondary);
  margin: 24px 0;
}

.note strong {
  color: var(--gold-light);
}

/* --- FOOTER --- */
footer {
  text-align: center;
  border-top: 1px solid var(--line-light);
  padding: 40px 0;
  color: var(--text-muted);
  font-size: 12.5px;
}

footer a {
  color: var(--text-secondary);
  margin: 0 8px;
  border-bottom: none;
}

footer a:hover {
  color: var(--gold-primary);
}

/* Responsividad */
@media (max-width: 768px) {
  article {
    padding: 36px 24px;
    margin: 32px auto 60px;
  }
  .nav {
    height: 72px;
  }
  .back span {
    display: none;
  }
}
