/* ======================================================
   Estela.app – Política de Privacidad
   Hoja de estilos v2.3 – Fondo estrellado fix (path absoluto)
   Fecha: 11 julio 2025
   ====================================================== */

/* ------------------ Reset ------------------ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* ------------------ Variables & Base ------------------ */
:root {
  --c-primary: #00aaff;          /* Botones & acento */
  --c-primary-dark: #0077cc;     /* Hover */
  --c-border: #ffffff2b;         /* Líneas sutiles */
  --c-text: #f0f0f0;             /* Texto base */
  --c-text-muted: #bcbcbc;       /* Texto atenuado */
  --c-shadow: rgba(0, 170, 255, 0.35);
  --c-surface: rgba(0, 0, 0, 0.55);
}

html { scroll-behavior: smooth; }
body {
  font-family: "Inter", Arial, sans-serif;
  background: url("/recursos/imagenes/fondo_estelado.png") no-repeat center/cover fixed;
  /*↑  Ruta absoluta para evitar errores de directorio        */
  color: var(--c-text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  position: relative;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.15);
  z-index: -1;
}

/* ------------------ Layout ------------------ */
.container {
  max-width: 820px;
  margin: 80px auto 96px;
  padding: 2rem 1.75rem;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: 18px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
  animation: fadeInUp 0.7s ease forwards;
}
@media (max-width: 768px) {
  .container { margin: 64px 1rem 72px; padding: 1.5rem 1rem; }
}

header { text-align: center; margin-top: 40px; }
header .logo img { width: 140px; height: auto; opacity: 0.95; filter: drop-shadow(0 0 8px rgba(0,0,0,0.6)); }

/* ------------------ Typography ------------------ */
h1, h2, h3, h4 {
  color: #fff;
  margin-top: 0;
  font-weight: 600;
}

h1 { font-size: 2.3rem; margin-bottom: 1.25rem; }
@media (max-width: 768px) { h1 { font-size: 1.9rem; } }

h2 {
  font-size: 1.4rem;
  margin: 2.4rem 0 1.1rem;
  color: var(--c-primary);
  border-bottom: 1px solid var(--c-border);
  padding-bottom: 0.4rem;
}

p { margin: 0 0 1.25rem 0; }
ul { padding-left: 1.5rem; margin-bottom: 1.25rem; }

/* ------------------ Links & Buttons ------------------ */
a { color: var(--c-primary); text-decoration: none; transition: color 0.2s ease; }
a:hover { color: var(--c-primary-dark); text-decoration: underline; }

.btn {
  display: inline-block;
  background: var(--c-primary);
  color: #fff;
  padding: 0.85rem 1.6rem;
  border: none;
  border-radius: 30px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 12px var(--c-shadow);
  transition: background 0.2s ease, box-shadow 0.2s ease;
}
.btn:hover { background: var(--c-primary-dark); box-shadow: 0 6px 18px var(--c-shadow); }

/* ------------------ Table of Contents ------------------ */
nav.toc {
  background: rgba(0, 0, 0, 0.4);
  border-left: 4px solid var(--c-primary);
  padding: 1rem 1.25rem 0.8rem;
  border-radius: 12px;
  margin: 2rem 0 2.5rem;
}
nav.toc strong { display: block; margin-bottom: 0.6rem; font-weight: 600; color: #fff; letter-spacing: 0.2px; }
nav.toc ul { list-style: none; padding-left: 0; }
nav.toc li { margin: 0.4rem 0; }
nav.toc a { font-size: 0.95rem; }

/* ------------------ Sections ------------------ */
section { margin-bottom: 2.75rem; scroll-margin-top: 100px; }
section:first-of-type { margin-top: 0; }
section:target { animation: highlight 1s ease; }

@keyframes highlight { 0% { background: rgba(0, 170, 255, 0.08); } 100% { background: transparent; } }

/* ------------------ CTA / Alerts ------------------ */
.cta { background: rgba(0, 0, 0, 0.6); padding: 1.25rem 1.5rem; border-left: 4px solid var(--c-primary); margin: 2.4rem 0; border-radius: 8px; }
.text-center { text-align: center; }
.text-muted  { color: var(--c-text-muted); }

/* ------------------ Details / Accordion ------------------ */
details { margin-bottom: 1.25rem; background: rgba(0, 0, 0, 0.5); border: 1px solid var(--c-border); border-radius: 10px; overflow: hidden; }
summary { cursor: pointer; font-weight: 600; padding: 0.95rem 1.35rem; color: var(--c-primary); position: relative; list-style: none; }
summary::marker, summary::-webkit-details-marker { display: none; }
summary::after { content: "➜"; position: absolute; right: 1.1rem; transition: transform 0.25s ease; }
details[open] summary::after { transform: rotate(90deg); }
details[open] summary { border-bottom: 1px solid var(--c-border); }
details p { padding: 1rem 1.35rem 1.35rem; margin: 0; line-height: 1.6; }

/* ------------------ Tables ------------------ */
table { width: 100%; border-collapse: collapse; margin-bottom: 1.75rem; font-size: 0.95rem; border: 1px solid var(--c-border); }
th, td { padding: 0.9rem 1rem; border: 1px solid var(--c-border); }
th { background: rgba(0, 0, 0, 0.55); text-align: left; }
 td { background: rgba(0, 0, 0, 0.35); }

/* ------------------ Images ------------------ */
img { max-width: 100%; height: auto; border-radius: 10px;  }

/* ------------------ Code ------------------ */
pre, code { background: #0e0e0e; color: #c2c2c2; border-radius: 6px; padding: 0.35rem 0.7rem; font-family: "Source Code Pro", monospace; font-size: 0.9rem; }

/* ------------------ Animations ------------------ */
@keyframes fadeInUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }

/* ------------------ Timeline Blocks (optional) ------------------ */
.seccion-historia { padding: 80px 20px; color: #ffffff; }
.historia-contenedor { max-width: 800px; margin: 0 auto; }
.historia-titulo { font-size: 2.2em; text-align: center; margin-bottom: 50px; }
.historia-dialogo { display: flex; flex-direction: column; gap: 30px; }

.bloque { border-radius: 16px; position: relative; font-size: 1.05em; line
