/**
 * Business Online SAS — estilos compartidos (Fase 0)
 * Usar en páginas de producción: <link rel="stylesheet" href="assets/css/site.css">
 * Mantener estilos específicos de cada página en un bloque <style> local o en assets/css/pagina.css
 */

:root {
    --primary-dark: #0b2545;
    --secondary-dark: #134074;
    --accent-blue: #00b4d8;
    --bg-light: #f8fafc;
    --text-dark: #0f172a;
    --text-muted: #475569;
    --white: #ffffff;

    /* Alias usados en consultoria / medicinalaboral / contacto */
    --primary-color: #0b2545;
    --secondary-color: #134074;
    --accent-color: #00b4d8;
    --text-color: #1d2d44;
    --light-bg: #f4f6f9;
    --dark-color: #333333;
    --light-color: #f8f9fa;
    --gray-color: #808080;
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Montserrat', 'Segoe UI', Arial, sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--white);
}

a {
    color: inherit;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ——— Header / navegación ——— */
header {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    width: 100%;
    z-index: 1000;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 10px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

.brand-block {
    display: flex;
    align-items: center;
    gap: 20px;
    text-decoration: none;
    color: inherit;
}

.logo img {
    max-height: 65px;
}

.brand-text-wrapper {
    border-left: 1px solid #cbd5e1;
    padding-left: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.brand-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-dark);
    line-height: 1.2;
    letter-spacing: -0.5px;
}

.brand-slogan {
    font-size: 1rem;
    color: var(--text-muted);
    font-weight: 500;
    line-height: 1.3;
}

.nav-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    justify-content: flex-end;
}

.nav-links a {
    text-decoration: none;
    color: var(--primary-dark);
    font-weight: 600;
    font-size: 0.85rem;
    letter-spacing: 0.3px;
    padding: 8px 14px;
    border: 1.5px solid transparent;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.nav-links a:hover,
.nav-links a.is-active {
    border-color: var(--primary-dark);
    background-color: var(--primary-dark);
    color: var(--white);
}

.nav-links a.nav-cta {
    border-color: var(--primary-dark);
}

/* ——— Footer corporativo ——— */
.site-footer {
    background-color: var(--primary-dark);
    color: rgba(255, 255, 255, 0.85);
    padding: 40px 40px 20px;
}

.site-footer-inner {
    max-width: 1200px;
    margin: 0 auto 30px;
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
}

.site-footer-brand {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 12px;
}

.site-footer-about p {
    font-size: 0.9rem;
    line-height: 1.6;
    opacity: 0.85;
}

.site-footer-links h3 {
    font-size: 0.95rem;
    color: var(--white);
    margin-bottom: 14px;
    font-weight: 600;
}

.site-footer-links ul {
    list-style: none;
}

.site-footer-links li {
    margin-bottom: 8px;
}

.site-footer-links a {
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s ease;
}

.site-footer-links a:hover {
    color: var(--accent-blue);
}

.site-footer-copy {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    font-size: 0.85rem;
    opacity: 0.7;
    max-width: 1200px;
    margin: 0 auto;
}

/* ——— Botones CTA reutilizables ——— */
.btn-cta {
    display: inline-block;
    background-color: var(--accent-color);
    color: var(--white);
    padding: 15px 35px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1rem;
    transition: transform 0.2s, background-color 0.3s, box-shadow 0.3s;
}

.btn-cta:hover {
    transform: translateY(-2px);
    background-color: #0096c7;
    box-shadow: 0 5px 15px rgba(0, 180, 216, 0.4);
    color: var(--white);
}

@media (max-width: 992px) {
    .nav-container {
        flex-direction: column;
        padding: 15px 20px;
    }

    .brand-block {
        flex-direction: column;
        text-align: center;
    }

    .brand-text-wrapper {
        border-left: none;
        padding-left: 0;
        align-items: center;
    }

    .brand-title {
        font-size: 1.3rem;
    }

    .brand-slogan {
        font-size: 0.9rem;
        text-align: center;
    }

    .nav-links {
        justify-content: center;
    }

    .site-footer-inner {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .site-footer {
        padding: 32px 24px 20px;
    }
}
