:root {
    --marca: #003466;
    --primary: #ff0033;
    --secondary: #292c3e;
    --text: #475569;
    --dark: #0f172a;
    --bg: #f8fafc;
    --white: #ffffff;
    --border: #e2e8f0;
}

* { margin: 0; padding: 0; box-sizing: border-box; scroll-behavior: smooth; }

body { 
    font-family: 'Plus Jakarta Sans', sans-serif; 
    color: var(--text); 
    line-height: 1.8; 
    background-color: var(--bg);
    -webkit-font-smoothing: antialiased;
}

/* --- NAVEGACIÓN PRINCIPAL --- */
nav { 
    background: var(--marca); 
    padding: 12px 0; 
    position: sticky; 
    top: 0; 
    z-index: 1001; 
}

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

.logo-brand-block {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.logo-brand-block img {
    height: 60px;
    width: auto;
    border-radius: 12px;
    display: block;
}

.brand-text-wrapper {
    display: flex;
    flex-direction: column;
    justify-content: center;
    line-height: 1.1;
}

.brand-text-wrapper .brand-name {
    color: white;
    font-weight: 800;
    font-size: 1.8rem;
    letter-spacing: 0.5px;
}

.brand-text-wrapper .brand-motto {
    font-size: 0.75rem;
    letter-spacing: 2px;
    color: var(--primary);
    font-weight: 700;
    text-transform: uppercase;
    margin-top: 2px;
}

.btn-back {
    color: white;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.1);
    padding: 10px 20px;
    border-radius: 8px;
    transition: 0.3s;
}

.btn-back:hover {
    background: rgba(255, 255, 255, 0.2);
}

.btn-back:hover { opacity: 1; color: var(--primary); }

/* --- MENÚ DE ACCESO RÁPIDO (ARRIBA) --- */
.sub-nav {
    background: white;
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 59px; /* Justo debajo del nav principal */
    z-index: 1000;
    padding: 10px 0;
    box-shadow: 0 4px 6px -4px rgba(0,0,0,0.1);
}

.sub-nav-container {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    gap: 25px;
    padding: 0 20px;
}

.sub-nav a {
    text-decoration: none;
    color: var(--text);
    font-size: 0.85rem;
    font-weight: 600;
    transition: 0.3s;
    display: flex;
    align-items: center;
    gap: 6px;
}

.sub-nav a:hover { color: var(--primary); }

.support-pill {
    background: #f1f5f9;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem !important;
    color: var(--marca) !important;
    border: 1px solid var(--border);
}

/* --- CONTENIDO --- */
.main-container { 
    max-width: 850px; 
    margin: 40px auto; 
    padding: 0 20px; 
}

.legal-card { 
    background: white; 
    padding: 40px; 
    border-radius: 16px; 
    border: 1px solid var(--border);
    margin-bottom: 30px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.02);
}

.header-section {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--bg);
}

h3 { color: var(--dark); font-size: 1.5rem; font-weight: 800; }
.update-date { color: var(--primary); font-size: 0.8rem; font-weight: 600; margin-top: 5px; }

h2 { 
    color: var(--marca); 
    margin: 35px 0 15px 0; 
    font-size: 1.1rem; 
    border-left: 4px solid var(--primary); 
    padding-left: 15px; 
}

p { margin-bottom: 15px; text-align: justify; color: #4b5563; }
b { color: var(--dark); }

/* --- FOOTER --- */
footer {
    background: var(--marca);
    padding: 80px 0 40px 0;
    color: white;
}

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

.footer-grid {
    display: flex; 
    justify-content: space-between; 
    flex-wrap: wrap; 
    gap: 40px;
}

.footer-column h3, 
.footer-column h4 {
    color: white;
    margin-bottom: 20px;
    font-size: 1.1rem;
    font-weight: 800;
}

.footer-column p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 15px;
    text-align: left;
}

.footer-contact a {
    color: white;
    text-decoration: none;
    font-weight: 600;
    transition: 0.3s;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-contact a i {
    color: white;
    opacity: 0.8;
}

.footer-contact a:hover {
    opacity: 0.7;
}

.footer-legal-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-legal-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.9rem;
    transition: 0.3s;
}

.footer-legal-links a:hover {
    color: white;
}

.footer-bottom {
    margin-top: 60px;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.85rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    color: rgba(255, 255, 255, 0.6);
}

.footer-bottom strong {
    color: white;
}

@media (max-width: 768px) {
    .footer-grid {
        flex-direction: column;
        gap: 40px;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}
/* Responsive */
@media (max-width: 600px) {
    .sub-nav-container { gap: 10px; flex-direction: column; align-items: center; }
    .legal-card { padding: 25px 20px; }
    h3 { font-size: 1.2rem; }
}