/* -------------------------------------------------------------
   PÁGINAS SECUNDARIAS (LEGALES) — misma marca, versión ligera
   ALBER CABRERA - WEB PREMIUM
   ------------------------------------------------------------- */
:root {
    --bg-color: #0a0908;
    --text-primary: #f6f5f2;
    --text-secondary: #888888;
    --text-tertiary: #444444;
    --cobalt: #3b5eff;
    --cobalt-soft: #8aa0ff;
    --glass-border: rgba(255, 255, 255, 0.06);
    --font-heading: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

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

html {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    scroll-behavior: smooth;
    scrollbar-color: #ffffff #050506; /* Color de acento Vercel (blanco) y pista oscura */
    scrollbar-width: thin;
}

body {
    line-height: 1.7;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    background-color: var(--bg-color);
    background-image: radial-gradient(50% 100% at 50% 0%, rgba(255, 255, 255, 0.05), transparent 75%);
    background-attachment: fixed;
}

::selection { background: rgba(59, 94, 255, 0.35); color: #fff; }

a:focus-visible, button:focus-visible {
    outline: 2px solid rgba(59, 94, 255, 0.65);
    outline-offset: 3px;
    border-radius: 4px;
}

/* NAV simple (pill) */
.subnav {
    position: sticky;
    top: 24px;
    z-index: 100;
    width: calc(100% - 48px);
    max-width: 1200px;
    margin: 24px auto 0;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    background-color: rgba(7, 7, 8, 0.75);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    border: 1px solid var(--glass-border);
    border-radius: 100px;
}

.subnav .logo {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.3rem;
    color: var(--text-primary);
    text-decoration: none;
    letter-spacing: -0.05em;
}

.subnav .logo img {
    height: 24px;
    width: auto;
    display: block;
}

.subnav .back {
    font-size: 0.85rem;
    color: var(--text-secondary);
    text-decoration: none;
    padding: 8px 18px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 100px;
    transition: all 0.3s ease;
}

.subnav .back:hover { color: var(--text-primary); border-color: rgba(255, 255, 255, 0.35); }

/* CONTENIDO */
.page {
    width: 100%;
    max-width: 780px;
    margin: 0 auto;
    padding: 80px 24px 100px;
    flex: 1;
}

.page-label {
    font-family: monospace;
    font-size: 0.8rem;
    letter-spacing: 0.25em;
    color: var(--cobalt-soft);
    display: block;
    margin-bottom: 14px;
}

.page h1 {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 5vw, 2.8rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.15;
    margin-bottom: 12px;
}

.page-updated {
    font-size: 0.85rem;
    color: var(--text-tertiary);
    margin-bottom: 56px;
}

.page h2 {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: -0.01em;
    margin: 48px 0 16px;
    padding-top: 28px;
    position: relative;
}

.page h2::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 72px;
    height: 1px;
    background: linear-gradient(90deg, var(--cobalt), transparent);
}

.page p, .page li {
    font-size: 0.98rem;
    color: var(--text-secondary);
    font-weight: 300;
    margin-bottom: 14px;
}

.page ul { padding-left: 22px; margin-bottom: 14px; }
.page li { margin-bottom: 8px; }
.page strong { color: var(--text-primary); font-weight: 600; }
.page a { color: var(--cobalt-soft); text-decoration: none; border-bottom: 1px solid rgba(59, 94, 255, 0.35); }
.page a:hover { color: #fff; border-color: rgba(255, 255, 255, 0.6); }

.page .box {
    background: rgba(13, 13, 16, 0.6);
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    padding: 24px 28px;
    margin: 20px 0;
}

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

/* =============================================================
   FOOTER PREMIUM: ESTILO INTEGRADO CLÁSICO (UNIFICADO CON LA HOME)
   ============================================================= */

/* Contenedor principal de la sección del footer */
.footer-section {
    position: relative;
    background-color: var(--bg-color); /* Negro puro para cierre abisal */
    padding: 80px 0 40px 0; /* Padding superior generoso para dar espacio */
    width: 100%;
    border-top: 1px solid rgba(255, 255, 255, 0.08); /* Línea de división superior de estilo Apple/Vercel */
}

/* Layout Grid Superior */
.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 1.8fr;
    gap: 60px;
    margin-bottom: 60px;
    width: 100%;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 24px;
}

.footer-brand-col {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.footer-logo-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-primary);
}

.footer-logo-wrap img {
    height: 24px;
    width: auto;
    display: block;
}

.footer-logo-wrap .logo {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.3rem;
    color: var(--text-primary);
    text-decoration: none;
    letter-spacing: -0.05em;
}

.footer-brand-desc {
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--text-secondary);
    max-width: 380px;
    font-weight: 300;
}

/* Grid de Enlaces */
.footer-links-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.footer-links-title {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--text-primary);
    font-weight: 600;
    margin-bottom: 24px;
}

.footer-links-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links-list a {
    font-size: 0.8rem;
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
    font-weight: 300;
    border-bottom: none; /* Evitar la regla general de links de legales */
}

.footer-links-list a:hover {
    color: var(--text-primary);
}

/* Fila Inferior (Bottom Bar) */
.footer-bottom-bar {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 32px;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding-left: 24px;
    padding-right: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-curator {
    font-size: 0.75rem;
    text-transform: lowercase;
    letter-spacing: 0.15em;
    color: var(--text-tertiary);
}

.footer-social-wrap {
    display: flex;
    align-items: center;
    gap: 16px;
}

.footer-social-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--text-tertiary);
}

.footer-social-icons {
    display: flex;
    gap: 16px;
}

.footer-social-icons a {
    color: var(--text-secondary);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    border-bottom: none; /* Evitar la regla general de links de legales */
}

.footer-social-icons a:hover {
    color: var(--text-primary);
    transform: translateY(-2px);
}

/* ── Responsivo (Móvil y Tablet) ── */
@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .footer-links-grid {
        grid-template-columns: 1fr 1fr;
        gap: 24px;
    }
    .footer-bottom-bar {
        flex-direction: column;
        gap: 20px;
        align-items: flex-start;
    }
}

@media (max-width: 480px) {
    .footer-links-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}



/* Footer mini para páginas legales */
.subfooter {
    border-top: 1px solid rgba(255,255,255,0.05);
    padding: 48px 24px 32px;
    text-align: center;
    font-size: 0.78rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-tertiary);
    width: 100%;
    margin-top: auto; /* Empuja el footer hacia abajo si el contenido es corto */
}
.subfooter a {
    color: var(--text-secondary);
    text-decoration: none;
    margin: 0 8px;
    border-bottom: none;
}
.subfooter a:hover {
    color: var(--text-primary);
}

/* Custom scrollbar matching index.css exactly */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #050506;
}
::-webkit-scrollbar-thumb {
    background: #ffffff;
    border-radius: 4px;
    border: 2px solid #050506;
}
::-webkit-scrollbar-thumb:hover {
    background: #5275ff;
}

