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

:root {
    --navy: #0d1664;
    --navy-dark: #080e46;
    --cyan: #1a9fc0;
    --cyan-light: #e8f6fa;
    --white: #ffffff;
    --gray-50: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-900: #0f172a;
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', sans-serif;
    color: var(--gray-900);
    background: var(--white);
    overflow-x: hidden;
}

/* ─── NAVBAR ─── */
.navbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    padding: 0 40px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(13, 22, 100, 0.95);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(255,255,255,0.08);
    transition: all 0.3s;
}
.navbar.scrolled {
    background: var(--navy);
    box-shadow: 0 4px 24px rgba(0,0,0,0.3);
}
.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}
.nav-logo img {
    height: 42px;
    width: auto;
    border-radius: 4px;
}
.nav-logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}
.nav-logo-name {
    font-size: 14px;
    font-weight: 700;
    color: var(--white);
    letter-spacing: 0.5px;
}
.nav-logo-sub {
    font-size: 10px;
    font-weight: 400;
    color: var(--cyan);
    letter-spacing: 1.5px;
    text-transform: uppercase;
}
.nav-links {
    display: flex;
    align-items: center;
    gap: 8px;
    list-style: none;
}
.nav-links a {
    color: rgba(255,255,255,0.85);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 6px;
    transition: all 0.2s;
    letter-spacing: 0.3px;
}
.nav-links a:hover, .nav-links a.active {
    color: var(--white);
    background: rgba(255,255,255,0.1);
}
.nav-access-group {
    display: flex;
    align-items: center;
    gap: 8px;
}
.nav-access-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    padding: 7px 14px;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.2s;
    border: 1.5px solid rgba(255,255,255,0.25);
    background: transparent;
    color: white;
    cursor: pointer;
    min-width: 64px;
}
.nav-access-btn:hover {
    background: rgba(255,255,255,0.12);
    border-color: rgba(255,255,255,0.5);
}
.nav-access-btn.primary {
    background: var(--cyan);
    border-color: var(--cyan);
}
.nav-access-btn.primary:hover {
    background: #1589a8;
    border-color: #1589a8;
}
.nav-access-btn svg { display: block; }
.nav-access-label {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    line-height: 1;
    color: inherit;
    white-space: nowrap;
}
.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 4px;
    background: none;
    border: none;
}
.mobile-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: white;
    border-radius: 2px;
    transition: all 0.3s;
}

/* ─── PAGE HERO (inner pages) ─── */
.page-hero {
    background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 60%, #0a3d62 100%);
    padding: 120px 40px 60px;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.page-hero::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 4px;
    background: linear-gradient(90deg, transparent, var(--cyan), transparent);
}
.page-hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(26,159,192,0.15);
    border: 1px solid rgba(26,159,192,0.35);
    color: var(--cyan);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    padding: 5px 14px;
    border-radius: 100px;
    margin-bottom: 20px;
}
.page-hero-eyebrow::before {
    content: '';
    width: 5px; height: 5px;
    background: var(--cyan);
    border-radius: 50%;
}
.page-hero h1 {
    font-size: clamp(28px, 4vw, 52px);
    font-weight: 800;
    color: var(--white);
    line-height: 1.15;
    letter-spacing: -0.5px;
    margin-bottom: 16px;
}
.page-hero h1 em {
    font-style: normal;
    color: var(--cyan);
}
.page-hero p {
    font-size: 17px;
    color: rgba(255,255,255,0.65);
    max-width: 560px;
    margin: 0 auto;
    line-height: 1.7;
    font-weight: 300;
}

/* ─── HERO (home) ─── */
@keyframes heroGradient {
    0%   { background-position: 0% 50%; }
    50%  { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}
.hero {
    position: relative;
    height: 80vh;
    min-height: 520px;
    max-height: 800px;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: linear-gradient(-45deg, #0d1664, #080e46, #0a3d62, #1a9fc0, #0d1664);
    background-size: 400% 400%;
    animation: heroGradient 14s ease infinite;
}
.hero-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1.6s ease-in-out;
    pointer-events: none;
}
.hero-video.active { opacity: 0.6; }
.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(13,22,100,0.70) 0%, rgba(8,14,70,0.55) 50%, rgba(26,159,192,0.12) 100%);
}
.hero-content {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
    padding-top: 70px;
}
.hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(26,159,192,0.2);
    border: 1px solid rgba(26,159,192,0.4);
    color: var(--cyan);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: 6px 16px;
    border-radius: 100px;
    margin-bottom: 24px;
}
.hero-tag::before {
    content: '';
    width: 6px; height: 6px;
    background: var(--cyan);
    border-radius: 50%;
}
.hero h1 {
    font-size: clamp(36px, 5vw, 64px);
    font-weight: 800;
    color: var(--white);
    line-height: 1.1;
    margin-bottom: 24px;
    letter-spacing: -1px;
}
.hero h1 em {
    font-style: normal;
    color: var(--cyan);
}
.hero-sub {
    font-size: clamp(16px, 2vw, 20px);
    color: rgba(255,255,255,0.75);
    max-width: 580px;
    line-height: 1.7;
    margin-bottom: 40px;
    font-weight: 300;
}
.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.25s;
    cursor: pointer;
    border: none;
}
.btn-primary {
    background: var(--cyan);
    color: var(--white);
}
.btn-primary:hover {
    background: #1589a8;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(26,159,192,0.4);
}
.btn-outline {
    background: transparent;
    color: var(--white);
    border: 2px solid rgba(255,255,255,0.5);
}
.btn-outline:hover {
    border-color: var(--white);
    background: rgba(255,255,255,0.1);
}
.hero-metrics {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    z-index: 2;
    background: rgba(8,14,70,0.85);
    backdrop-filter: blur(8px);
    border-top: 1px solid rgba(26,159,192,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
}
.hero-metric {
    flex: 1;
    max-width: 220px;
    text-align: center;
    padding: 22px 20px;
    border-right: 1px solid rgba(255,255,255,0.08);
}
.hero-metric:last-child { border-right: none; }
.hero-metric-num {
    display: block;
    font-size: 28px;
    font-weight: 800;
    color: var(--cyan);
    line-height: 1;
    margin-bottom: 4px;
}
.hero-metric-label {
    font-size: 11px;
    color: rgba(255,255,255,0.6);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
}

/* ─── SECTION COMMONS ─── */
section { padding: 100px 40px; }
.container { max-width: 1200px; margin: 0 auto; }
.section-eyebrow {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: var(--cyan);
    margin-bottom: 12px;
}
.section-title {
    font-size: clamp(28px, 3.5vw, 44px);
    font-weight: 800;
    color: var(--navy);
    line-height: 1.15;
    letter-spacing: -0.5px;
    margin-bottom: 16px;
}
.section-lead {
    font-size: 17px;
    color: var(--gray-600);
    line-height: 1.75;
    max-width: 600px;
}

/* ─── ABOUT ─── */
.about { background: var(--white); }
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}
.about-visual { position: relative; }
.about-img-wrapper {
    border-radius: 16px;
    overflow: hidden;
    aspect-ratio: 4/3;
    background: var(--navy);
}
.about-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.85;
}
.about-badge {
    position: absolute;
    bottom: -20px;
    right: -20px;
    background: var(--navy);
    color: var(--white);
    border-radius: 12px;
    padding: 20px 24px;
    text-align: center;
    box-shadow: 0 8px 32px rgba(13,22,100,0.4);
    border: 2px solid var(--cyan);
}
.about-badge-num {
    display: block;
    font-size: 32px;
    font-weight: 800;
    color: var(--cyan);
    line-height: 1;
}
.about-badge-text {
    font-size: 11px;
    color: rgba(255,255,255,0.7);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-top: 4px;
}
.about-content { padding-right: 20px; }
.about-text {
    font-size: 16px;
    color: var(--gray-700);
    line-height: 1.8;
    margin-bottom: 16px;
}
.about-route {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-left: 4px solid var(--cyan);
    border-radius: 0 8px 8px 0;
    padding: 16px 20px;
    margin-top: 28px;
}
.about-route-icon { color: var(--navy); flex-shrink: 0; }
.about-route-text { font-size: 14px; font-weight: 600; color: var(--navy); }
.about-route-sub { font-size: 12px; color: var(--gray-600); margin-top: 2px; }

/* ─── SERVICES ─── */
.services { background: var(--gray-50); }
.services-header { text-align: center; margin-bottom: 64px; }
.services-header .section-lead { margin: 0 auto; text-align: center; }
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 28px;
}
.service-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 16px;
    padding: 36px 32px;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}
.service-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: var(--cyan);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s;
}
.service-card:hover::before { transform: scaleX(1); }
.service-card:hover {
    border-color: var(--cyan);
    box-shadow: 0 12px 40px rgba(26,159,192,0.12);
    transform: translateY(-4px);
}
.service-icon {
    width: 56px;
    height: 56px;
    background: var(--cyan-light);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: var(--navy);
}
.service-title { font-size: 20px; font-weight: 700; color: var(--navy); margin-bottom: 12px; }
.service-desc { font-size: 14px; color: var(--gray-600); line-height: 1.75; margin-bottom: 20px; }
.service-list { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.service-list li {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--gray-700);
}
.service-list li::before {
    content: '';
    width: 6px; height: 6px;
    background: var(--cyan);
    border-radius: 50%;
    flex-shrink: 0;
}

/* ─── RUTAS ─── */
.routes {
    background: var(--navy);
    color: var(--white);
    padding: 80px 40px;
}
.routes-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}
.routes .section-title { color: var(--white); }
.routes .section-lead { color: rgba(255,255,255,0.65); }
.routes .section-eyebrow { color: var(--cyan); }
.route-cards { display: flex; flex-direction: column; gap: 16px; }
.route-card {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px;
    padding: 20px 24px;
    display: flex;
    align-items: center;
    gap: 20px;
    transition: all 0.25s;
}
.route-card:hover {
    background: rgba(26,159,192,0.15);
    border-color: rgba(26,159,192,0.4);
}
.route-arrow { color: var(--cyan); font-size: 22px; flex-shrink: 0; }
.route-ports { flex: 1; }
.route-port-name { font-size: 15px; font-weight: 700; color: var(--white); }
.route-port-country { font-size: 12px; color: rgba(255,255,255,0.5); margin-top: 2px; }
.route-tag {
    background: rgba(26,159,192,0.2);
    color: var(--cyan);
    font-size: 11px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 100px;
    border: 1px solid rgba(26,159,192,0.3);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

/* ─── CONTACT ─── */
.contact { background: var(--white); }
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 80px;
    align-items: start;
}
.contact-info h2 {
    font-size: clamp(28px, 3.5vw, 42px);
    font-weight: 800;
    color: var(--navy);
    line-height: 1.15;
    letter-spacing: -0.5px;
    margin-bottom: 16px;
}
.contact-lead { font-size: 16px; color: var(--gray-600); line-height: 1.75; margin-bottom: 36px; }
.contact-items { display: flex; flex-direction: column; gap: 20px; }
.contact-item { display: flex; align-items: flex-start; gap: 16px; }
.contact-item-icon {
    width: 44px; height: 44px;
    background: var(--cyan-light);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--navy);
    flex-shrink: 0;
}
.contact-item-content label {
    display: block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--cyan);
    margin-bottom: 3px;
}
.contact-item-content span { font-size: 15px; color: var(--gray-700); font-weight: 500; }
.contact-form {
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: 20px;
    padding: 40px;
}
.contact-form h3 { font-size: 20px; font-weight: 700; color: var(--navy); margin-bottom: 6px; }
.contact-form-sub { font-size: 14px; color: var(--gray-600); margin-bottom: 28px; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-size: 13px; font-weight: 600; color: var(--gray-700); margin-bottom: 6px; }
.form-group input, .form-group select, .form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1.5px solid var(--gray-200);
    border-radius: 8px;
    font-size: 14px;
    font-family: 'Inter', sans-serif;
    color: var(--gray-900);
    background: var(--white);
    transition: border-color 0.2s;
    outline: none;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    border-color: var(--navy);
    box-shadow: 0 0 0 3px rgba(13,22,100,0.08);
}
.form-group textarea { resize: vertical; min-height: 100px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.btn-submit {
    width: 100%;
    padding: 14px;
    background: var(--navy);
    color: var(--white);
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s;
    margin-top: 8px;
}
.btn-submit:hover {
    background: var(--navy-dark);
    transform: translateY(-1px);
    box-shadow: 0 8px 24px rgba(13,22,100,0.3);
}

/* ─── FOOTER ─── */
footer {
    background: var(--gray-900);
    color: rgba(255,255,255,0.6);
    padding: 48px 40px;
}
.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
}
.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-brand img { height: 36px; border-radius: 4px; opacity: 0.9; }
.footer-brand-text { font-size: 13px; color: rgba(255,255,255,0.8); font-weight: 600; }
.footer-brand-ruc { font-size: 11px; color: rgba(255,255,255,0.4); margin-top: 2px; }
.footer-links { display: flex; gap: 24px; }
.footer-links a {
    color: rgba(255,255,255,0.5);
    text-decoration: none;
    font-size: 13px;
    transition: color 0.2s;
}
.footer-links a:hover { color: var(--cyan); }
.footer-copy { font-size: 12px; color: rgba(255,255,255,0.35); }

/* ─── MOBILE NAV ─── */
.mobile-nav {
    display: none;
    position: fixed;
    top: 70px; left: 0; right: 0;
    background: var(--navy);
    z-index: 999;
    padding: 16px;
    flex-direction: column;
    gap: 4px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
    color: rgba(255,255,255,0.85);
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    padding: 12px 16px;
    border-radius: 8px;
    transition: all 0.2s;
}
.mobile-nav a:hover { background: rgba(255,255,255,0.1); }
.mobile-nav .nav-access {
    background: var(--cyan);
    color: var(--white);
    text-align: center;
    margin-top: 8px;
}

/* ─── ALERT ─── */
.alert {
    max-width: 1200px;
    margin: 0 auto 32px;
    padding: 14px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
}
.alert-success { background: #dcfce7; color: #15803d; border: 1px solid #86efac; }
.alert-error { background: #fee2e2; color: #dc2626; border: 1px solid #fca5a5; }

/* ─── RESPONSIVE — Tablet ─── */
@media (max-width: 900px) {
    .navbar { padding: 0 20px; }
    .nav-links { display: none; }
    .nav-access-group { display: none; }
    .mobile-toggle { display: flex; }
    .hero { height: 75vh; min-height: 480px; }
    .hero-content { padding: 0 20px; padding-top: 70px; }
    .hero-metrics { flex-wrap: wrap; }
    .hero-metric { min-width: 120px; }
    .about-grid, .routes-inner, .contact-grid { grid-template-columns: 1fr; gap: 40px; }
    .about-badge { right: 0; bottom: -16px; }
    .services-grid { grid-template-columns: 1fr 1fr; }
    section { padding: 60px 20px; }
    .routes { padding: 60px 20px; }
    .contact-form { padding: 28px; }
    .form-row { grid-template-columns: 1fr; }
    .footer-inner { flex-direction: column; align-items: flex-start; gap: 20px; }
    .footer-links { flex-wrap: wrap; gap: 12px 20px; }
    .page-hero { padding: 100px 20px 48px; }
}

/* ─── RESPONSIVE — Móvil ─── */
@media (max-width: 640px) {
    /* Navbar */
    .navbar { padding: 0 12px; height: 62px; gap: 8px; }
    .nav-logo img { height: 32px; }
    .nav-logo-name { font-size: 12px; }
    .nav-logo-sub { font-size: 8px; letter-spacing: 1px; }
    .mobile-nav { top: 62px; }

    /* Botones de acceso visibles en móvil — compactos */
    .nav-access-group { display: flex; gap: 6px; }
    .nav-access-btn { padding: 5px 8px; min-width: unset; border-radius: 6px; gap: 2px; }
    .nav-access-btn svg { width: 15px; height: 15px; }
    .nav-access-label { font-size: 8px; letter-spacing: 0; }

    /* Hero */
    .hero { height: 100svh; min-height: 560px; max-height: none; }
    .hero-content { padding: 0 16px; padding-top: 62px; width: 100%; }
    .hero-tag { font-size: 10px; letter-spacing: 1.5px; padding: 5px 12px; margin-bottom: 16px; }
    .hero h1 { font-size: clamp(28px, 8vw, 42px); margin-bottom: 16px; letter-spacing: -0.5px; }
    .hero-sub { font-size: 15px; margin-bottom: 28px; }
    .hero-actions { flex-direction: column; gap: 10px; }
    .hero-actions .btn { width: 100%; justify-content: center; padding: 14px 20px; }

    /* Hero metrics — scroll horizontal en móvil */
    .hero-metrics {
        overflow-x: auto;
        justify-content: flex-start;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    .hero-metrics::-webkit-scrollbar { display: none; }
    .hero-metric { min-width: 110px; flex: 0 0 110px; padding: 16px 12px; }
    .hero-metric-value { font-size: 20px !important; }
    .hero-metric-label { font-size: 9px !important; }

    /* Secciones */
    section { padding: 48px 16px; }
    .routes { padding: 48px 16px; }
    .page-hero { padding: 90px 16px 40px; }
    .page-hero h1 { font-size: clamp(26px, 7vw, 38px); }
    .page-hero p { font-size: 15px; }

    /* Servicios */
    .services-grid { grid-template-columns: 1fr; gap: 16px; }
    .service-card { padding: 24px 20px; }

    /* Por qué elegirnos */
    .why-grid { grid-template-columns: 1fr; }

    /* Rutas */
    .routes-inner { gap: 24px; }
    .route-card { padding: 20px; }
    .route-flags { font-size: 24px; }

    /* Lo que transportamos */
    .cargo-grid { grid-template-columns: 1fr 1fr !important; gap: 12px; }
    .cargo-item { padding: 20px 12px; }

    /* Contacto */
    .contact-form { padding: 20px 16px; }
    .contact-info { gap: 16px; }

    /* Footer */
    .footer-inner { padding: 0; }
    footer { padding: 32px 16px; }
    .footer-links { flex-direction: column; gap: 8px; }
    .footer-copy { font-size: 11px; }

    /* Cómo funciona */
    .steps-grid { grid-template-columns: 1fr; }
    .step-connector { display: none; }
}
