/* RBT Distribution: styles shared by every page (base, header, footer, menu).
   Each page keeps only its own styles in a <style> block after this file, so a rule
   there overrides the same rule here. The Spanish pages in es/ load this same file. */
/* --- BASE --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

:root {
    --bg-deep: #0a0c10;
    --bg-alt: #050608;
    --bg-card: #14171f;
    --rbt-red: #e11d48;
    --text-main: #f1f5f9;
    --text-sub: #94a3b8;
    --border-line: #2a313f;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-deep);
    color: var(--text-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

.wrapper {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 2.5rem;
}

/* --- ACCESSIBILITY --- */
.skip-link {
    position: absolute;
    top: -100px;
    left: 1rem;
    z-index: 1000;
    background-color: var(--rbt-red);
    color: #fff;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: top 0.2s ease;
}

.skip-link:focus {
    top: 1rem;
}

/* Hidden on screen, still read by screen readers. */
.sr-only {
    position: absolute;
    left: -9999px;
}

a:focus-visible, button:focus-visible {
    outline: 2px solid var(--rbt-red);
    outline-offset: 2px;
}

/* --- HEADER AND FOOTER --- */
.utility-header {
    background-color: var(--bg-alt);
    border-bottom: 1px solid var(--border-line);
    padding: 0.75rem 0;
    font-size: 0.8rem;
    color: var(--text-sub);
    font-weight: 500;
}

.utility-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.utility-phone {
    color: inherit;
    text-decoration: none;
}

.utility-links a {
    color: var(--text-sub);
    text-decoration: none;
    margin-left: 1.5rem;
    transition: color 0.2s;
}

.utility-links a:hover { color: var(--text-main); }

/* Language switch (English / Spanish) in the top bar */
.lang-switch { display: inline-flex; align-items: center; gap: 0.45rem; margin-left: 1.5rem; }

.lang-switch .lang-sep { opacity: 0.5; }

.utility-links .lang-switch a { margin-left: 0; font-weight: 600; }

.utility-links .lang-switch a[aria-current="page"] { color: var(--text-main); }

.main-nav {
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-line);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(10, 12, 16, 0.95);
    backdrop-filter: blur(8px);
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo-link {
    text-decoration: none;
    color: inherit;
}

.logo-area .logo-text {
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.logo-area .logo-text span { color: var(--rbt-red); }

.logo-area p {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-sub);
    margin-top: 2px;
    font-weight: 600;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.nav-link {
    color: var(--text-main);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    transition: color 0.2s;
}

.nav-link:hover { color: var(--rbt-red); }

.nav-login {
    color: var(--text-sub);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    transition: color 0.2s;
}

.nav-login:hover { color: var(--text-main); }

.nav-apply {
    background-color: var(--rbt-red);
    color: #fff;
    padding: 0.65rem 1.25rem;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: 6px;
    transition: background-color 0.2s;
}

.nav-apply:hover {
    background-color: #be123c;
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-main);
    font-size: 1.4rem;
    line-height: 1;
    padding: 0.5rem;
    cursor: pointer;
}

.page-hero {
    padding: 5rem 0 3rem 0;
    text-align: center;
}

.page-hero h1 {
    font-size: 3rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
}

.page-hero p {
    font-size: 1.1rem;
    color: var(--text-sub);
    max-width: 40rem;
    margin: 0 auto;
}

.main-footer {
    background-color: #050608;
    border-top: 1px solid var(--border-line);
    padding: 5rem 0 2rem 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-brand .logo-text {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 1rem;
}

.footer-brand .logo-text span { color: var(--rbt-red); }

.footer-brand p {
    color: var(--text-sub);
    font-size: 0.95rem;
    line-height: 1.6;
}

.footer-column h4 {
    color: var(--text-main);
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1.5rem;
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: 0.85rem;
}

.footer-column a {
    color: var(--text-sub);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.2s;
}

.footer-column a:hover {
    color: var(--rbt-red);
}

.footer-contact p {
    color: var(--text-sub);
    font-size: 0.95rem;
    line-height: 1.8;
    margin-bottom: 1rem;
}

.footer-contact a {
    color: var(--text-main);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s;
}

.footer-contact a:hover { color: var(--rbt-red); }

.footer-contact-title { margin-bottom: 1.5rem; }

.footer-contact .footer-lines { margin-top: 1.5rem; }

.footer-social {
    display: flex;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border: 1px solid var(--border-line);
    border-radius: 50%;
    color: var(--text-sub);
    text-decoration: none;
    transition: color 0.2s, border-color 0.2s;
}

.footer-social a:hover { color: var(--rbt-red); border-color: var(--rbt-red); }

.footer-bottom {
    border-top: 1px solid var(--border-line);
    padding-top: 2rem;
    text-align: center;
    color: var(--text-sub);
    font-size: 0.85rem;
}

/* --- RESPONSIVE --- */
@media (max-width: 992px) {
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .wrapper { padding: 0 1.5rem; }
    .utility-flex { flex-direction: column; gap: 0.5rem; text-align: center; }
    .page-hero { padding: 4rem 0 2.5rem 0; }
    .page-hero h1 { font-size: 2.2rem; }
    .footer-grid { grid-template-columns: 1fr; text-align: center; }
}

/* Collapse the nav into the menu button before the links start wrapping
   (the English nav needs about 1,000px). */
@media (max-width: 1100px) {
    .nav-toggle { display: block; }
    .nav-actions {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        background: var(--bg-deep);
        border-bottom: 1px solid var(--border-line);
        padding: 0.5rem 1.25rem 1.5rem;
    }
    .nav-actions.open { display: flex; }
    .nav-actions .nav-link,
    .nav-actions .nav-login {
        padding: 0.9rem 0;
        border-bottom: 1px solid var(--border-line);
    }
    .nav-actions .nav-apply {
        margin-top: 1rem;
        text-align: center;
    }
}
