@import url('https://fonts.googleapis.com/css2?family=Work+Sans:wght@400;500;600;700&display=swap');


* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    color-scheme: light;
    --ink-900: #222222;
    --ink-700: #333333;
    --ink-500: #666666;
    --accent-500: #236c99;
    --accent-300: #7bb5d9;
    --accent-red: #c62828;
    --accent-red-soft: #f6d4d1;
    --line-200: #e0e0e0;
    --surface-0: #ffffff;
    --surface-1: #f8f9fa;
    --shadow-soft: 0 18px 40px rgba(0, 0, 0, 0.12);
    --radius-lg: 22px;
    --radius-md: 14px;
    --radius-sm: 10px;
    --header-bg: #002840;
    --header-bg-elevated: #003351;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Work Sans', sans-serif;
    line-height: 1.6;
    color: var(--ink-700);
    background-color: var(--surface-0);
    min-height: 100vh;
}

/* Text Justification */
p {
    text-align: justify;
    text-justify: inter-word;
}

body.nav-open {
    overflow: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Header y Navegacion */
.header {
    background: var(--header-bg);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar {
    padding: 0;
}

.navbar__container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 18px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.navbar__brand {
    color: #ffffff;
    font-size: 1.8rem;
    margin: 0;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.navbar__logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.navbar__logo {
    height: 80px;
    width: auto;
    object-fit: contain;
    max-width: 280px;
}

.navbar__menu {
    display: flex;
    list-style: none;
    gap: 24px;
    align-items: center;
    flex-wrap: wrap;
}

.navbar__toggle-btn {
    display: none;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    cursor: pointer;
}

.navbar__toggle-icon,
.navbar__toggle-icon::before,
.navbar__toggle-icon::after {
    content: '';
    display: block;
    width: 20px;
    height: 2px;
    background: #ffffff;
    border-radius: 999px;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.navbar__toggle-icon {
    position: relative;
}

.navbar__toggle-icon::before {
    position: absolute;
    transform: translateY(-6px);
}

.navbar__toggle-icon::after {
    position: absolute;
    transform: translateY(6px);
}

.navbar__backdrop {
    position: fixed;
    inset: 0;
    background: rgba(12, 12, 12, 0.55);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
    z-index: 900;
}

body.nav-open .navbar__backdrop {
    opacity: 1;
    visibility: visible;
}

body.nav-open .navbar__toggle-icon {
    transform: rotate(45deg);
}

body.nav-open .navbar__toggle-icon::before {
    transform: rotate(90deg);
}

body.nav-open .navbar__toggle-icon::after {
    opacity: 0;
}

.navbar__item {
    position: relative;
}

.navbar__link {
    color: #e8e8e8;
    text-decoration: none;
    font-weight: 600;
    letter-spacing: 0.02em;
    font-size: 0.9rem;
    transition: color 0.2s ease, transform 0.2s ease;
    position: relative;
    padding: 6px 0;
}

.navbar__toggle {
    background: transparent;
    border: 0;
    font: inherit;
    cursor: pointer;
}

.navbar__submenu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 230px;
    list-style: none;
    background-color: var(--header-bg-elevated);
    padding: 10px 0;
    border-radius: 0;
    box-shadow: var(--shadow-soft);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
    z-index: 1100;
}

.navbar__item--has-submenu:hover .navbar__submenu,
.navbar__item--has-submenu:focus-within .navbar__submenu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.navbar__sublink {
    display: block;
    padding: 9px 18px;
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.88rem;
    letter-spacing: 0.02em;
}

.navbar__sublink:hover,
.navbar__sublink:focus {
    background-color: var(--accent-500);
}

.navbar__link:hover {
    color: #ffffff;
    transform: translateY(-1px);
}

.navbar__link--active,
.navbar__link--active:hover {
    color: var(--accent-red);
    transform: translateY(-1px);
}

.navbar__link--active::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--accent-red);
}

.navbar__submenu .navbar__sublink.navbar__link--active {
    color: var(--accent-red);
}

.navbar__submenu .navbar__sublink.navbar__link--active:hover,
.navbar__submenu .navbar__sublink.navbar__link--active:focus {
    background-color: rgba(255, 255, 255, 0.12);
    color: var(--accent-red);
}

/* Ajuste de la línea activa dentro del dropdown para que quede alineada al segmento */
.navbar__submenu .navbar__link--active::after {
    bottom: 0;
}
.main {
    min-height: calc(100vh - 200px);
}

.container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 24px;
}
.footer {
    background-color: #0c0c0c;
    color: #ffffff;
    text-align: center;
    padding: 24px;
    margin-top: 60px;
}
.page-header__title {
    text-transform: none !important;
}

.footer__text {
    margin: 0;
    font-size: 0.9rem;
    letter-spacing: 0.04em;
}
.section__title {
    font-size: 2.4rem;
    font-weight: 700;
    margin-bottom: 36px;
    text-align: center;
    color: var(--ink-900);
}
.eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.3em;
    font-size: 0.75rem;
    color: var(--ink-500);
}
@media (max-width: 768px) {
    .navbar__container {
        flex-direction: row;
        gap: 12px;
    }

    .navbar__toggle-btn {
        display: inline-flex;
    }

    .navbar__menu {
        position: fixed;
        top: 0;
        right: 0;
        width: min(82vw, 320px);
        height: 100vh;
        padding: 90px 24px 24px;
        background: var(--header-bg);
        flex-direction: column;
        gap: 12px;
        align-items: flex-start;
        text-align: left;
        transform: translateX(100%);
        transition: transform 0.25s ease;
        z-index: 1000;
        overflow-y: auto;
    }

    body.nav-open .navbar__menu {
        transform: translateX(0);
    }

    .navbar__submenu {
        position: static;
        min-width: auto;
        margin-top: 8px;
        box-shadow: none;
        transform: none;
        opacity: 1;
        visibility: visible;
        padding-left: 10px;
    }

    .navbar__brand {
        font-size: 1.5rem;
    }

    .section__title {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .navbar__container {
        padding: 12px 15px;
    }

    .navbar__brand {
        font-size: 1.3rem;
    }

    .navbar__menu {
        gap: 8px;
    }

    .navbar__link {
        font-size: 0.8rem;
    }

    .section__title {
        font-size: 1.7rem;
    }
}

a:focus-visible,
button:focus-visible {
    outline: 2px solid var(--accent-500);
    outline-offset: 2px;
}
@media print {
    .navbar,
    .footer {
        display: none;
    }
}

@keyframes fade-up {
    from {
        opacity: 0;
        transform: translateY(16px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}