:root {
    --primary: #004f99;
    --primary-dark: #002850;
    --primary-darker: #00152d;
    --primary-light: #e8f2ff;
    --accent: #f08300;
    --text: #111827;
    --text-secondary: #4b5563;
    --text-muted: #9ca3af;
    --bg: #ffffff;
    --bg-light: #f8fafc;
    --border: #e5e7eb;
    --transition: all 0.25s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 40px;
}

.section {
    padding: 130px 0;
}

.section-dark {
    background: var(--primary-darker);
    color: #fff;
}

.section-header {
    text-align: center;
    margin-bottom: 72px;
}

.section-header h2 {
    font-size: 40px;
    font-weight: 700;
    letter-spacing: 1px;
}

.section-tag {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 14px;
}

.section-header.light .section-tag,
.section-header.light h2 {
    color: #fff;
}

.section-row {
    display: grid;
    grid-template-columns: 340px 1fr;
    gap: 120px;
    align-items: start;
}

.section-label h2 {
    font-size: 40px;
    font-weight: 700;
    letter-spacing: 1px;
    margin-top: 8px;
}

.section-label.light h2,
.section-label.light .section-tag {
    color: #fff;
}

.section-body .lead {
    font-size: 18px;
    font-weight: 500;
    line-height: 1.8;
    color: var(--text);
    margin-bottom: 20px;
}

.section-body p {
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.section-body.light .lead,
.section-body.light p {
    color: rgba(255, 255, 255, 0.8);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 36px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 0;
    transition: var(--transition);
    cursor: pointer;
    border: 1px solid transparent;
}

.btn-hero {
    background: transparent;
    color: #fff;
    border-color: rgba(255, 255, 255, 0.5);
}

.btn-hero:hover {
    background: #fff;
    color: var(--primary-darker);
    border-color: #fff;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background-color: #00152d;
    background: #00152d;
    background: var(--primary-darker);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 76px;
}

.logo {
    flex-shrink: 0;
}

.logo img {
    height: 40px;
    width: auto;
    display: block;
}

.nav {
    display: flex;
    align-items: center;
    gap: 38px;
}

.nav a {
    font-size: 16px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.85);
    transition: var(--transition);
    position: relative;
}

.nav a:hover,
.nav a.active {
    color: #fff;
}

.nav a::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--accent);
    transition: var(--transition);
}

.nav a:hover::after,
.nav a.active::after {
    width: 100%;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.menu-toggle span {
    display: block;
    width: 22px;
    height: 1.5px;
    background: #fff;
    transition: var(--transition);
}

/* Hero */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 76px;
    overflow: hidden;
    color: #fff;
    text-align: center;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(180deg, rgba(0, 21, 45, 0.62) 0%, rgba(0, 21, 45, 0.38) 45%, rgba(0, 21, 45, 0.82) 100%);
}

/* Animated hero backdrop: slow Ken-Burns drift for a sense of life */
.hero::before {
    content: '';
    position: absolute;
    top: -3%;
    left: -3%;
    width: 106%;
    height: 106%;
    background: url('../images/hero-mexico.jpg') center/cover no-repeat;
    transform: scale(1.12);
    animation: heroDrift 26s ease-in-out infinite alternate;
    z-index: 0;
    will-change: transform;
}

@keyframes heroDrift {
    0%   { transform: scale(1.12) translate3d(0, 0, 0); }
    50%  { transform: scale(1.18) translate3d(-1.4%, -0.9%, 0); }
    100% { transform: scale(1.12) translate3d(1.4%, 0.9%, 0); }
}

@media (prefers-reduced-motion: reduce) {
    .hero::before {
        animation: none;
        transform: scale(1.14);
    }
}

.hero-inner {
    position: relative;
    z-index: 2;
    padding-bottom: 80px;
}

.hero-content {
    max-width: 1280px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 72px;
    font-weight: 900;
    letter-spacing: 6px;
    margin-bottom: 28px;
    line-height: 1.2;
    white-space: nowrap;
}

.hero-subtitle {
    font-size: 19px;
    color: rgba(255, 255, 255, 0.72);
    line-height: 1.9;
    margin-bottom: 48px;
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
}

.hero-scroll {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    width: 22px;
    height: 34px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 12px;
    display: flex;
    justify-content: center;
    padding-top: 8px;
}

.hero-scroll span {
    width: 4px;
    height: 8px;
    background: #fff;
    border-radius: 2px;
    animation: scrollDown 1.8s ease-in-out infinite;
}

@keyframes scrollDown {
    0% { transform: translateY(0); opacity: 1; }
    80% { transform: translateY(8px); opacity: 0; }
    100% { transform: translateY(0); opacity: 0; }
}

/* Image Band */
.band {
    position: relative;
    padding: 150px 0;
    background: url('../images/band-latam.jpg') center/cover no-repeat fixed;
    text-align: center;
    color: #fff;
}

.band::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 21, 45, 0.55) 0%, rgba(0, 21, 45, 0.35) 50%, rgba(0, 21, 45, 0.6) 100%);
}

.band-inner {
    position: relative;
    z-index: 1;
    max-width: 960px;
    margin: 0 auto;
    padding: 0 24px;
}

.band h2 {
    font-size: 42px;
    font-weight: 800;
    letter-spacing: 3px;
    margin-bottom: 14px;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.35);
}

.band p {
    font-size: 17px;
    color: rgba(255, 255, 255, 0.88);
    letter-spacing: 1.5px;
}

/* Language toggle */
.lang-toggle {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.35);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    padding: 6px 14px;
    cursor: pointer;
    transition: var(--transition);
    font-family: inherit;
    letter-spacing: 1px;
    flex-shrink: 0;
}

.lang-toggle:hover {
    border-color: #fff;
    background: rgba(255, 255, 255, 0.1);
}

/* About stats */
.stats-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-top: 48px;
    padding-top: 40px;
    border-top: 1px solid var(--border);
}

.stat-item strong {
    display: block;
    font-size: 38px;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
    margin-bottom: 8px;
}

.stat-item strong span {
    font-size: 18px;
    font-weight: 600;
}

.stat-item > span:last-child {
    font-size: 14px;
    color: var(--text-secondary);
}

/* MVV */
.mvv-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 48px;
}

.mvv-card {
    padding: 0 20px;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
}

.mvv-icon {
    width: 40px;
    height: 40px;
    color: var(--accent);
    margin-bottom: 24px;
}

.mvv-icon svg {
    width: 100%;
    height: 100%;
}

.mvv-card h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 16px;
}

.mvv-card p {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.65);
    line-height: 1.8;
}

/* Business */
.business-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1px;
    background: var(--border);
}

.business-item {
    display: flex;
    gap: 32px;
    padding: 64px;
    background: #fff;
    transition: var(--transition);
}

.business-item:hover {
    background: var(--bg-light);
}

.business-num {
    font-size: 13px;
    font-weight: 700;
    color: var(--accent);
    letter-spacing: 1px;
    min-width: 26px;
}

.business-icon {
    width: 48px;
    height: 48px;
    color: var(--primary);
    flex-shrink: 0;
}

.business-icon svg {
    width: 100%;
    height: 100%;
}

.business-text h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 10px;
}

.business-text p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* Technology */
.tech-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    margin-top: 48px;
}

.tech-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.tech-item .tech-num {
    font-size: 14px;
    font-weight: 700;
    color: var(--accent);
    letter-spacing: 1px;
    min-width: 26px;
    padding-top: 2px;
}

.tech-item h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
}

.tech-item p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.65);
    line-height: 1.7;
}

/* History */
.timeline {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    padding-left: 20px;
}

.timeline-track {
    position: absolute;
    left: 0;
    top: 8px;
    bottom: 8px;
    width: 1px;
    background: var(--border);
}

.timeline-row {
    display: flex;
    gap: 40px;
    padding-left: 40px;
    padding-bottom: 48px;
    position: relative;
}

.timeline-row::before {
    content: '';
    position: absolute;
    left: -5px;
    top: 8px;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--primary);
    border: 2px solid #fff;
    box-shadow: 0 0 0 1px var(--primary);
}

.timeline-year {
    font-size: 20px;
    font-weight: 800;
    color: var(--primary);
    min-width: 60px;
    letter-spacing: 1px;
}

.timeline-text h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
}

.timeline-text p {
    font-size: 14px;
    color: var(--text-secondary);
}

/* News */
.news-list {
    max-width: 900px;
    margin: 0 auto;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.news-item {
    display: flex;
    align-items: center;
    gap: 32px;
    padding: 28px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    transition: var(--transition);
}

.news-item:hover {
    padding-left: 12px;
}

.news-date {
    font-size: 13px;
    color: var(--accent);
    min-width: 100px;
    font-weight: 500;
    letter-spacing: 1px;
}

.news-item h3 {
    flex: 1;
    font-size: 17px;
    font-weight: 600;
    color: #fff;
}

.news-arrow {
    color: rgba(255, 255, 255, 0.4);
    font-size: 18px;
    transition: var(--transition);
}

.news-item:hover .news-arrow {
    color: var(--accent);
    transform: translateX(4px);
}

/* Honors */
.honors-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    background: var(--border);
}

.honor-card {
    background: #fff;
    padding: 44px 32px;
    text-align: center;
    transition: var(--transition);
}

.honor-card:hover {
    background: var(--bg-light);
}

.honor-card strong {
    display: block;
    font-size: 17px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 14px;
}

.honor-card p {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* CTA */
.cta {
    padding: 120px 0;
    text-align: center;
    background: var(--bg-light);
}

.cta h2 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text);
}

.cta p {
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: 36px;
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
}

.cta .btn-hero {
    border-color: var(--primary);
    color: var(--primary);
}

.cta .btn-hero:hover {
    background: var(--primary);
    color: #fff;
}

/* Footer */
.footer {
    background: var(--primary-darker);
    color: rgba(255, 255, 255, 0.6);
    padding: 72px 0 32px;
}

.footer-main {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
    gap: 60px;
    margin-bottom: 64px;
}

.footer-brand img {
    height: 34px;
    width: auto;
    margin-bottom: 22px;
}

.footer-brand p {
    font-size: 14px;
    line-height: 1.8;
}

.footer-links h4,
.footer-contact h4 {
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 22px;
    letter-spacing: 1px;
}

.footer-links a {
    display: block;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 12px;
    transition: var(--transition);
}

.footer-links a:hover {
    color: #fff;
}

.footer-contact p {
    font-size: 14px;
    margin-bottom: 10px;
}

.footer-bottom {
    padding-top: 28px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    text-align: center;
}

.footer-bottom p {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.35);
    margin-bottom: 6px;
}

.footer-bottom a {
    color: rgba(255, 255, 255, 0.45);
    text-decoration: none;
    transition: var(--transition);
}

.footer-bottom a:hover {
    color: #fff;
    text-decoration: underline;
}

/* Back to top */
.back-to-top {
    position: fixed;
    bottom: 28px;
    right: 28px;
    width: 44px;
    height: 44px;
    background: var(--primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 999;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--accent);
}

/* Responsive */
@media (max-width: 1024px) {
    .section-row {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .mvv-grid {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .mvv-card {
        border-left: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
        padding: 32px 0;
    }

    .mvv-card:last-child {
        border-bottom: none;
    }

    .business-list,
    .tech-list,
    .honors-grid {
        grid-template-columns: 1fr;
    }

    .business-list,
    .honors-grid {
        gap: 0;
        border: none;
    }

    .business-item,
    .honor-card {
        border-bottom: 1px solid var(--border);
    }

    .honor-card:last-child,
    .business-item:last-child {
        border-bottom: none;
    }

    .footer-main {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .section {
        padding: 80px 0;
    }

    .section-header h2,
    .section-label h2,
    .cta h2 {
        font-size: 26px;
    }

    .nav {
        position: fixed;
        top: 76px;
        left: 0;
        right: 0;
        background: var(--primary-darker);
        flex-direction: column;
        align-items: flex-start;
        padding: 24px;
        gap: 0;
        border-top: 1px solid rgba(255, 255, 255, 0.06);
        transform: translateY(-150%);
        opacity: 0;
        transition: var(--transition);
    }

    .nav.active {
        transform: translateY(0);
        opacity: 1;
    }

    .nav a {
        display: block;
        width: 100%;
        padding: 14px 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    }

    .menu-toggle {
        display: flex;
    }

    .menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }

    .hero h1 {
        font-size: 38px;
        letter-spacing: 3px;
        white-space: normal;
    }

    .hero-subtitle {
        font-size: 15px;
    }

    .stats-row {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .stat-item strong {
        font-size: 32px;
    }

    .business-item {
        flex-direction: column;
        gap: 16px;
        padding: 32px 24px;
    }

    .timeline-row {
        gap: 20px;
        padding-left: 28px;
    }

    .news-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .news-item h3 {
        font-size: 15px;
    }

    .news-arrow {
        display: none;
    }

    .footer-main {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .back-to-top {
        right: 16px;
        bottom: 16px;
    }
}

/* Animation utilities */
.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Widescreen / large desktop */
@media (min-width: 1600px) {
    .container {
        max-width: 1680px;
        padding: 0 56px;
    }
    .section {
        padding: 160px 0;
    }
    .hero h1 {
        font-size: 88px;
        letter-spacing: 8px;
    }
    .section-header h2,
    .section-label h2,
    .cta h2 {
        font-size: 48px;
    }
    .section-row {
        grid-template-columns: 380px 1fr;
        gap: 160px;
    }
    .section-body .lead {
        font-size: 22px;
    }
    .business-item {
        padding: 80px;
    }
    .stat-item strong {
        font-size: 46px;
    }
    .mvv-grid,
    .tech-list,
    .stats-row {
        gap: 64px;
    }
}

@media (min-width: 2200px) {
    .container {
        max-width: 1920px;
    }
    .hero h1 {
        font-size: 104px;
    }
}

/* English version typography */
html[lang="en"] .hero h1 {
    letter-spacing: 1px;
    font-size: 56px;
    line-height: 1.25;
}

html[lang="en"] .band h2 {
    letter-spacing: 1px;
}

html[lang="en"] body {
    letter-spacing: 0.2px;
}

@media (min-width: 1600px) {
    html[lang="en"] .hero h1 {
        font-size: 72px;
    }
}

@media (max-width: 768px) {
    .band {
        background-attachment: scroll;
        padding: 96px 0;
    }
    .band h2 {
        font-size: 26px;
        letter-spacing: 1px;
    }
    .band p {
        font-size: 14px;
    }
    html[lang="en"] .hero h1 {
        font-size: 32px;
    }
}
