/* ============================================
   BOREALIS v8 — Open Sans + paleta canadiense
   Idiomas sin banderas + Top bar actualizada
   ============================================ */

:root {
    --maple: #d80621;
    --maple-dark: #a30418;
    --maple-soft: #fef2f2;
    --ink: #1a1a1a;
    --ink-soft: #3d3d3d;
    --paper: #ffffff;
    --paper-warm: #fafaf7;
    --line: #e5e5e5;
    --line-strong: #d4d4d4;
    --muted: #6b6b6b;
    --gold: #c9a227;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
    --shadow-lg: 0 12px 32px rgba(0,0,0,0.12);
    --radius: 6px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: "Open Sans", "Segoe UI", Helvetica, Arial, sans-serif;
    color: var(--ink);
    background-color: var(--paper-warm);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    font-size: 16px;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 28px; }

/* TOP BAR */
.top-bar {
    background: var(--maple);
    color: #fff;
    font-size: 12.5px;
    padding: 9px 0;
    letter-spacing: 0.3px;
    font-weight: 500;
}
.top-bar-inner {
    display: flex; justify-content: center; align-items: center;
    gap: 12px; flex-wrap: wrap; text-align: center;
}
.top-bar a { color: #fff; font-weight: 700; border-bottom: 1px solid rgba(255,255,255,0.5); }
.top-bar a:hover { border-bottom-color: #fff; }

/* HEADER */
header {
    background-color: var(--paper);
    border-bottom: 1px solid var(--line);
    position: sticky; top: 0; z-index: 1000;
}
.nav-wrapper {
    display: flex; justify-content: space-between;
    align-items: center; height: 84px; gap: 24px;
}
.brand-logo { height: 44px; width: auto; }

/* MENÚ — CORREGIDO */
.nav-links { 
    display: flex; 
    align-items: center; 
    gap: 28px; 
    list-style: none; 
}
.nav-links a {
    font-size: 13.5px; 
    font-weight: 600;
    color: var(--ink-soft); 
    letter-spacing: 0.3px;
    text-transform: uppercase; 
    padding: 6px 0; 
    position: relative; 
    transition: color 0.15s;
    display: inline-block; 
}
.nav-links a::after {
    content: ''; 
    position: absolute; 
    left: 0; 
    bottom: 0; 
    width: 0; 
    height: 2px; 
    background: var(--maple); 
    transition: width 0.2s;
}
.nav-links a:hover { color: var(--maple); }
.nav-links a:hover::after { width: 100%; }

/* SELECTOR DE IDIOMA (SIN BANDERAS) */
.lang-switch {
    display: flex; 
    gap: 2px;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius); 
    padding: 3px;
    background: var(--paper-warm);
}
.lang-switch a {
    padding: 6px 14px; 
    font-size: 12px; 
    font-weight: 700;
    letter-spacing: 0.5px; 
    color: var(--muted);
    background: transparent; 
    border-radius: 4px;
    transition: all 0.15s;
    display: flex;
    align-items: center;
    justify-content: center;
}
.lang-switch a.active { 
    background: var(--maple); 
    color: #fff; 
    box-shadow: 0 1px 2px rgba(0,0,0,0.1);
}
.lang-switch a:hover:not(.active) { 
    background: var(--paper); 
    color: var(--ink); 
}

/* HERO */
.hero {
    background: var(--paper);
    padding: 110px 0 90px;
    border-bottom: 1px solid var(--line);
    position: relative; text-align: center;
}
.hero::before {
    content: ''; position: absolute; top: 0; left: 50%;
    transform: translateX(-50%); width: 60px; height: 4px;
    background: var(--maple);
}
.hero h1 {
    font-size: 3rem; font-weight: 800;
    color: var(--ink); max-width: 900px;
    margin: 0 auto 22px; line-height: 1.15;
    letter-spacing: -0.8px;
}
.hero p {
    font-size: 1.1rem; color: var(--muted);
    max-width: 720px; margin: 0 auto 40px;
}
.badge {
    display: inline-flex; 
    align-items: center;
    gap: 6px;
    color: var(--maple);
    font-size: 12px; font-weight: 700;
    margin-bottom: 20px; text-transform: uppercase;
    letter-spacing: 2px; padding-bottom: 4px;
    border-bottom: 2px solid var(--maple);
}
.cta-group { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; }

/* BOTONES */
.btn {
    padding: 13px 28px;
    border-radius: var(--radius);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    transition: all 0.15s ease;
    cursor: pointer;
    border: 2px solid transparent;
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    font-family: inherit;
    line-height: 1.2;
}
.btn-primary {
    background-color: var(--maple);
    color: #fff;
    border-color: var(--maple);
}
.btn-primary:hover {
    background-color: var(--maple-dark);
    border-color: var(--maple-dark);
}
.btn-outline {
    background-color: transparent;
    color: var(--ink);
    border-color: var(--ink);
}
.btn-outline:hover { background-color: var(--ink); color: #fff; }

/* SECCIONES Y ENCABEZADOS */
section { padding: 100px 0; }
.section-header { text-align: center; margin-bottom: 64px; }

.section-header h2 {
    font-size: 2.3rem; font-weight: 800;
    color: var(--ink); margin-bottom: 14px;
    letter-spacing: -0.5px; line-height: 1.2;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.section-header p {
    font-size: 1.05rem; color: var(--muted);
    max-width: 700px; margin: 0 auto;
}
.card-tag {
    font-size: 11px; font-weight: 700; color: var(--maple);
    text-transform: uppercase; letter-spacing: 1.5px;
    display: inline-flex; align-items: center; gap: 6px; margin-bottom: 6px;
}

/* FOOTER */
footer {
    background-color: var(--ink);
    color: #b8b8b8;
    padding: 56px 0 28px;
    font-size: 13px;
    border-top: 4px solid var(--maple);
}
footer a { color: #d8d8d8; transition: color 0.15s; }
footer a:hover { color: #fff; }

.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr;
    gap: 40px;
    text-align: left;
    padding-bottom: 36px;
    border-bottom: 1px solid #2a2a2a;
}
.footer-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 800;
    font-size: 1rem;
    color: #fff;
    margin-bottom: 12px;
}
.footer-logo {
    height: 36px;
    width: auto;
    background: #fff;
    border-radius: 4px;
    padding: 4px;
}
.footer-tagline {
    color: #8a8a8a;
    font-size: 13px;
    line-height: 1.6;
    max-width: 320px;
}
.footer-col h4 {
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 16px;
}
.footer-contact,
.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}
.footer-contact li,
.footer-links li {
    margin-bottom: 10px;
    font-size: 13px;
    line-height: 1.5;
    color: #a8a8a8;
}
.footer-contact li:first-child {
    color: #e0e0e0;
    font-weight: 600;
}
.footer-contact li a,
.footer-links li a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.footer-bottom {
    padding-top: 24px;
    text-align: center;
    font-size: 12px;
    color: #7a7a7a;
    letter-spacing: 0.3px;
}
.footer-corp {
    margin-top: 6px;
    font-size: 11px;
    opacity: 0.65;
}

/* LEGAL PAGES */
.legal-page { padding: 80px 0; background: var(--paper-warm); }
.legal-card {
    background: var(--paper);
    border: 1px solid var(--line);
    border-top: 4px solid var(--maple);
    border-radius: var(--radius);
    padding: 56px;
    max-width: 900px;
    margin: 0 auto;
    box-shadow: var(--shadow-sm);
}
.back-link {
    display: inline-block; color: var(--maple);
    font-weight: 600; font-size: 14px; margin-bottom: 24px;
}
.back-link:hover { text-decoration: underline; }
.legal-card h1 {
    font-size: 2.2rem; font-weight: 800;
    color: var(--ink); margin-bottom: 8px;
    letter-spacing: -0.5px;
}
.legal-updated {
    color: var(--muted); font-size: 13px;
    margin-bottom: 32px; padding-bottom: 24px;
    border-bottom: 1px solid var(--line);
}
.legal-card h2 {
    font-size: 1.25rem; font-weight: 700;
    color: var(--ink); margin: 32px 0 12px;
}
.legal-card p, .legal-card li {
    color: var(--ink-soft); font-size: 15px;
    line-height: 1.7; margin-bottom: 12px;
}
.legal-card ul { padding-left: 24px; margin-bottom: 16px; }
.legal-card a { color: var(--maple); font-weight: 600; }
.legal-card a:hover { text-decoration: underline; }