/* ═══ LEGAL PAGES — AutomatIA ═══ */
:root {
  --navy: #0c1222;
  --navy-light: #111a2e;
  --cyan: #06b6d4;
  --cyan-bright: #22d3ee;
  --cyan-dim: rgba(6, 182, 212, 0.12);
  --magenta: #d946ef;
  --white: #f7fbff;
  --white-soft: rgba(247, 251, 255, 0.65);
  --border: rgba(6, 182, 212, 0.08);
  --border-hover: rgba(6, 182, 212, 0.22);
  --font-main: "Outfit", system-ui, sans-serif;
  --font-code: "Fira Code", monospace;
  --radius: 14px;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-main);
  background: var(--navy);
  color: var(--white);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}
/* ── Header ── */
.header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(12, 18, 34, 0.92);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--border);
  padding: 16px 36px;
  display: flex; align-items: center; justify-content: space-between;
}
.logo-link { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.logo-sym {
  width: 36px; height: 36px;
  border: 1.5px solid var(--cyan); border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-code); font-size: 15px; color: var(--cyan);
}
.logo-name { font-size: 18px; font-weight: 700; color: var(--white); }
.logo-name i { font-style: normal; color: var(--cyan); }
.back-link {
  font-size: 13px; color: var(--cyan); text-decoration: none;
  display: flex; align-items: center; gap: 6px;
  padding: 8px 16px; border-radius: 999px;
  border: 1px solid var(--border-hover);
  transition: all 0.25s ease;
}
.back-link:hover { background: var(--cyan-dim); border-color: var(--cyan); }
/* ── Layout ── */
.page-wrap { max-width: 780px; margin: 0 auto; padding: 72px 36px 120px; }
/* ── Doc hero ── */
.doc-hero {
  margin-bottom: 56px; padding-bottom: 40px;
  border-bottom: 1px solid var(--border);
}
.doc-tag {
  display: inline-flex; align-items: center;
  font-size: 11px; font-weight: 600; letter-spacing: 3px;
  text-transform: uppercase; color: var(--cyan); margin-bottom: 18px;
}
.doc-hero h1 {
  font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 800;
  letter-spacing: -1.5px; line-height: 1.1; margin-bottom: 20px;
}
.doc-hero h1 span {
  background: linear-gradient(135deg, var(--cyan-bright), var(--magenta));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.doc-meta {
  display: flex; gap: 24px; flex-wrap: wrap;
  font-size: 13px; color: var(--white-soft);
}
.doc-meta span { display: flex; align-items: center; gap: 8px; }
/* ── Secciones ── */
.doc-section { margin-bottom: 44px; }
.doc-section h2 {
  font-size: 17px; font-weight: 700; color: var(--cyan);
  margin-bottom: 14px; padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; gap: 8px;
}
.doc-section h2::before {
  content: ""; display: inline-block;
  width: 3px; height: 16px; border-radius: 2px;
  background: linear-gradient(180deg, var(--cyan), var(--magenta));
  flex-shrink: 0;
}
.doc-section p {
  font-size: 15px; color: var(--white-soft);
  margin-bottom: 12px; line-height: 1.85;
}
.doc-section p strong { color: var(--white); font-weight: 600; }
.doc-section a { color: var(--cyan-bright); text-decoration: none; }
.doc-section a:hover { text-decoration: underline; }
.doc-section ul { list-style: none; padding: 0; margin: 8px 0 14px; }
.doc-section ul li {
  font-size: 15px; color: var(--white-soft);
  padding: 9px 0 9px 22px; position: relative;
  border-bottom: 1px solid rgba(6, 182, 212, 0.04);
  line-height: 1.75;
}
.doc-section ul li:last-child { border-bottom: none; }
.doc-section ul li::before {
  content: ""; position: absolute; left: 0; top: 18px;
  width: 6px; height: 6px; border-radius: 50%;
  background: linear-gradient(135deg, var(--cyan), var(--magenta));
}
.doc-section ul li strong { color: var(--white); font-weight: 600; }
/* ── Tabla cookies ── */
.cookie-table {
  width: 100%; border-collapse: collapse; margin: 16px 0;
  font-size: 13px; border-radius: var(--radius); overflow: hidden;
}
.cookie-table th {
  text-align: left; padding: 12px 16px;
  background: rgba(6, 182, 212, 0.06);
  color: var(--cyan); font-weight: 600; font-size: 11px;
  letter-spacing: 1.5px; text-transform: uppercase;
  border-bottom: 1px solid var(--border-hover);
}
.cookie-table td {
  padding: 12px 16px; color: var(--white-soft);
  border-bottom: 1px solid var(--border); vertical-align: top;
}
.cookie-table tr:last-child td { border-bottom: none; }
.cookie-table code {
  font-family: var(--font-code); font-size: 12px;
  background: rgba(6,182,212,0.08); padding: 2px 6px;
  border-radius: 4px; color: var(--cyan-bright);
}
.badge {
  display: inline-block; padding: 3px 10px; border-radius: 999px;
  font-size: 11px; font-weight: 600; letter-spacing: 0.5px; white-space: nowrap;
}
.badge--necesaria { background: rgba(16,185,129,0.12); color: #10b981; }
.badge--analitica { background: rgba(6,182,212,0.12); color: var(--cyan); }
/* ── Alerta informativa ── */
.cookie-alert {
  background: rgba(6, 182, 212, 0.05);
  border: 1px solid var(--border-hover);
  border-radius: var(--radius);
  padding: 18px 22px; margin: 0 0 40px;
  display: flex; gap: 14px; align-items: flex-start;
}
.cookie-alert svg { flex-shrink: 0; margin-top: 2px; }
.cookie-alert p { font-size: 14px; color: var(--white-soft); margin: 0; line-height: 1.75; }
/* ── Footer ── */
.doc-footer {
  margin-top: 72px; padding-top: 28px; border-top: 1px solid var(--border);
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 16px;
}
.doc-footer p { font-size: 12px; color: var(--white-soft); }
.doc-footer-links { display: flex; gap: 20px; flex-wrap: wrap; }
.doc-footer-links a {
  font-size: 12px; color: var(--white-soft); text-decoration: none;
  transition: color 0.2s;
}
.doc-footer-links a:hover { color: var(--cyan); }
/* ── Responsive ── */
@media (max-width: 768px) {
  .header { padding: 14px 20px; }
  .page-wrap { padding: 48px 20px 80px; }
  .doc-hero h1 { font-size: 1.8rem; }
  .cookie-table { display: block; overflow-x: auto; }
  .doc-meta { flex-direction: column; gap: 10px; }
  .doc-footer { flex-direction: column; align-items: flex-start; }
}
