/* ──────────────────────────────────────────────────────────────
   SYSTEMNECS — Hoja de estilos para páginas legales
   Reutiliza el sistema de diseño de la landing de systemnecs.com
   ────────────────────────────────────────────────────────────── */

:root {
    --navy: #0f1a3d;
    --navy-2: #1e2a52;
    --blue: #3b82f6;
    --blue-dark: #2563eb;
    --gold: #d4af37;
    --gold-dark: #a68a2b;
    --text: #0f172a;
    --muted: #475569;
    --muted-2: #64748b;
    --bg: #ffffff;
    --bg-soft: #f5f7fa;
    --bg-warm: #fafbfc;
    --border: rgba(15, 26, 61, 0.08);
    --border-soft: rgba(15, 26, 61, 0.06);
}

*,
*::before,
*::after { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.fr { font-family: 'Fraunces', 'Times New Roman', serif; letter-spacing: -0.015em; }

img, svg { max-width: 100%; display: block; }

a { color: var(--blue); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--blue-dark); text-decoration: underline; }

.container { max-width: 860px; margin: 0 auto; padding: 0 24px; }

/* ── NAV ──────────────────────────────────────────────────── */
.nav {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: saturate(180%) blur(12px);
    border-bottom: 1px solid var(--border);
}

.nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 14px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.brand { display: flex; align-items: center; gap: 10px; }
.brand:hover { text-decoration: none; }

.brand-mark {
    width: 34px;
    height: 34px;
    border-radius: 9px;
    background: var(--navy);
    display: grid;
    place-items: center;
    flex-shrink: 0;
}

.brand-name {
    font-weight: 700;
    font-size: 1.05rem;
    letter-spacing: -0.01em;
    color: var(--navy);
}

.nav-links { display: flex; gap: 22px; font-size: 0.9rem; }
.nav-links a { color: var(--muted); font-weight: 500; }
.nav-links a:hover { color: var(--navy); text-decoration: none; }
.nav-links a.active { color: var(--navy); font-weight: 600; }

/* ── CABECERA DEL DOCUMENTO ───────────────────────────────── */
.doc-head {
    background: linear-gradient(170deg, var(--bg-soft) 0%, var(--bg) 100%);
    border-bottom: 1px solid var(--border-soft);
    padding: 56px 0 40px;
}

.doc-head h1 {
    font-size: clamp(1.9rem, 4.5vw, 2.7rem);
    font-weight: 600;
    color: var(--navy);
    line-height: 1.15;
    margin-bottom: 12px;
}

.doc-meta {
    font-size: 0.88rem;
    color: var(--muted-2);
    display: flex;
    flex-wrap: wrap;
    gap: 6px 18px;
}

.doc-meta strong { color: var(--muted); font-weight: 600; }

/* ── CUERPO ───────────────────────────────────────────────── */
.doc-body { padding: 48px 0 72px; }

.doc-body h2 {
    font-size: 1.35rem;
    font-weight: 600;
    color: var(--navy);
    margin: 44px 0 14px;
    padding-top: 14px;
    border-top: 1px solid var(--border-soft);
}

.doc-body h2:first-of-type { margin-top: 0; border-top: none; padding-top: 0; }

.doc-body h3 {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--navy-2);
    margin: 26px 0 10px;
}

.doc-body p { margin-bottom: 15px; color: var(--muted); }

.doc-body ul, .doc-body ol { margin: 0 0 16px 22px; color: var(--muted); }
.doc-body li { margin-bottom: 8px; }

.doc-body strong { color: var(--text); font-weight: 600; }

/* Índice de contenidos */
.toc {
    background: var(--bg-warm);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 22px 26px;
    margin-bottom: 40px;
}

.toc h4 {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--muted-2);
    font-weight: 600;
    margin-bottom: 12px;
}

.toc ol { margin: 0 0 0 20px; font-size: 0.92rem; }
.toc li { margin-bottom: 5px; }
.toc a { color: var(--muted); }
.toc a:hover { color: var(--blue); }

/* Caja de aviso */
.note {
    border-left: 3px solid var(--gold);
    background: rgba(212, 175, 55, 0.06);
    border-radius: 0 10px 10px 0;
    padding: 16px 20px;
    margin: 22px 0;
    font-size: 0.94rem;
}

.note p:last-child { margin-bottom: 0; }

.note.info { border-left-color: var(--blue); background: rgba(59, 130, 246, 0.05); }

/* Tabla de datos */
.doc-body table {
    width: 100%;
    border-collapse: collapse;
    margin: 18px 0 24px;
    font-size: 0.92rem;
}

.doc-body th {
    text-align: left;
    background: var(--bg-soft);
    color: var(--navy);
    font-weight: 600;
    padding: 11px 14px;
    border: 1px solid var(--border);
}

.doc-body td {
    padding: 11px 14px;
    border: 1px solid var(--border);
    color: var(--muted);
    vertical-align: top;
}

/* Bloque de contacto */
.contact-card {
    background: var(--bg-soft);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 24px 26px;
    margin-top: 24px;
}

.contact-card dl { display: grid; grid-template-columns: auto 1fr; gap: 9px 18px; font-size: 0.94rem; }
.contact-card dt { color: var(--muted-2); font-weight: 500; }
.contact-card dd { color: var(--text); }

/* Pasos numerados */
.steps { counter-reset: step; list-style: none; margin-left: 0; }

.steps > li {
    counter-increment: step;
    position: relative;
    padding-left: 46px;
    margin-bottom: 22px;
}

.steps > li::before {
    content: counter(step);
    position: absolute;
    left: 0;
    top: 0;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--navy);
    color: #fff;
    font-size: 0.85rem;
    font-weight: 600;
    display: grid;
    place-items: center;
}

.steps h3 { margin-top: 0; }

/* ── FOOTER ───────────────────────────────────────────────── */
.footer {
    background: var(--navy);
    color: rgba(255, 255, 255, 0.72);
    padding: 44px 0 28px;
    font-size: 0.9rem;
}

.footer .container { max-width: 1200px; }

.footer a { color: rgba(255, 255, 255, 0.72); }
.footer a:hover { color: #fff; }

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 26px;
    margin-bottom: 26px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    padding-top: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: space-between;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.55);
}

/* ── RESPONSIVE ───────────────────────────────────────────── */
@media (max-width: 720px) {
    .nav-links { display: none; }
    .doc-head { padding: 40px 0 30px; }
    .doc-body { padding: 36px 0 56px; }
    .contact-card dl { grid-template-columns: 1fr; gap: 3px; }
    .contact-card dt { margin-top: 10px; }
    .doc-body table { font-size: 0.86rem; }
    .doc-body th, .doc-body td { padding: 9px 10px; }
}
