/* EMC TRANSPORTES - Premium Corporate Styles */

:root {
    /* Brand Colors */
    --color-primary: #0A2342;
    /* Dark Navy - Maritime */
    --color-secondary: #FF6B00;
    /* Safety Orange - Accent */
    --color-dark: #121212;
    --color-light: #F5F5F5;
    --color-white: #FFFFFF;
    --color-grey: #8D99AE;

    /* Gradients */
    --gradient-hero: linear-gradient(135deg, rgba(10, 35, 66, 0.95) 0%, rgba(20, 45, 80, 0.8) 100%);
    --gradient-accent: linear-gradient(90deg, #FF6B00, #FF8C00);

    /* Typography */
    --font-heading: 'Space Grotesk', sans-serif;
    --font-body: 'Outfit', sans-serif;

    /* Spacing */
    --section-padding: 100px;

    /* Effects */
    --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.15);
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--color-light);
    color: var(--color-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header & Nav */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 5%;
    max-width: 1400px;
    margin: 0 auto;
}

.logo-text {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-primary);
}

.logo-text .accent {
    color: var(--color-secondary);
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links li a {
    font-weight: 500;
    color: var(--color-primary);
    position: relative;
    font-size: 0.95rem;
}

.nav-links li a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-secondary);
    transition: width 0.3s ease;
}

.nav-links li a:hover::after {
    width: 100%;
}

.hamburger {
    display: none;
    cursor: pointer;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: var(--color-primary);
    transition: all 0.3s ease-in-out;
}

/* Hero Section */
#hero {
    height: 100vh;
    width: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-color: var(--color-primary);
    /* Fallback */
    background-image: url('assets/hero_bg.png');
    background-size: cover;
    background-position: center;
    color: var(--color-white);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-hero);
    opacity: 0.85;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 0 20px;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    letter-spacing: -1px;
}

.hero-content p {
    font-size: 1.25rem;
    margin-bottom: 40px;
    color: rgba(255, 255, 255, 0.9);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 15px 35px;
    border-radius: 5px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.btn-primary {
    background: var(--gradient-accent);
    color: var(--color-white);
    border: none;
    box-shadow: 0 4px 15px rgba(255, 107, 0, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 0, 0.6);
}

.btn-secondary {
    background: transparent;
    color: var(--color-white);
    border: 2px solid var(--color-white);
    margin-left: 20px;
}

.btn-secondary:hover {
    background: var(--color-white);
    color: var(--color-primary);
}

/* Section Components */
.section-padding {
    padding: var(--section-padding) 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header .subtitle {
    display: block;
    color: var(--color-secondary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.section-header h2 {
    font-size: 2.5rem;
    color: var(--color-primary);
}

.section-header.light h2 {
    color: var(--color-white);
}

/* About Section */
.about-grid {
    display: flex;
    align-items: center;
    justify-content: center;
}

.about-text {
    max-width: 800px;
    text-align: center;
}

.about-text p {
    font-size: 1.1rem;
    margin-bottom: 30px;
    color: #444;
}

.feature-list {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
    margin-top: 40px;
}

.feature-list li {
    background: var(--color-white);
    padding: 15px 25px;
    border-radius: 50px;
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    color: var(--color-primary);
}

/* Stats Bar */
.stats-bar {
    background: var(--color-primary);
    padding: 60px 0;
    color: var(--color-white);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    text-align: center;
    gap: 30px;
}

.stat-item .number {
    display: block;
    font-size: 3.5rem;
    font-weight: 700;
    font-family: var(--font-heading);
    color: var(--color-secondary);
}

.stat-item .label {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* Fleet Section */
.bg-dark {
    background-color: #051121;
    color: var(--color-white);
}

.fleet-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.fleet-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 40px;
    border-radius: 15px;
    transition: all 0.3s ease;
    text-align: center;
}

.fleet-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.08);
}

.card-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.fleet-card h3 {
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.fleet-card p {
    color: rgba(255, 255, 255, 0.7);
}

/* Services & Routes */
.routes-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.map-placeholder {
    width: 100%;
    height: 400px;
    background-color: #e0e0e0;
    border-radius: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #666;
    font-weight: 600;
    background-image: url('assets/map_placeholder.png');
    background-size: cover;
    background-position: center;
    position: relative;
}

.map-placeholder span {
    background: rgba(255, 255, 255, 0.9);
    padding: 10px 20px;
    border-radius: 5px;
    box-shadow: var(--shadow-sm);
}

.route-item {
    margin-bottom: 40px;
    padding-left: 20px;
    border-left: 3px solid var(--color-secondary);
}

.route-item h3 {
    font-size: 1.4rem;
    color: var(--color-primary);
    margin-bottom: 10px;
}

/* Contact Section */
.bg-blue {
    background-color: #eff6ff;
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 60px;
    background: var(--color-white);
    padding: 60px;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
}

.contact-info h2 {
    color: var(--color-primary);
    margin-bottom: 20px;
}

.contact-info>p {
    margin-bottom: 40px;
    color: #666;
}

.info-item {
    margin-bottom: 30px;
}

.info-item h4 {
    color: var(--color-primary);
    margin-bottom: 5px;
    font-size: 1.1rem;
}

.info-item p {
    color: #555;
    font-size: 0.95rem;
}

.contact-form .form-group {
    margin-bottom: 20px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--color-secondary);
}

.full-width {
    width: 100%;
}

/* Footer */
footer {
    background: var(--color-primary);
    color: rgba(255, 255, 255, 0.6);
    text-align: center;
    padding: 30px 0;
    font-size: 0.9rem;
}

/* Animations */
.animate-up {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s forwards;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.delay-1 {
    animation-delay: 0.2s;
}

.delay-2 {
    animation-delay: 0.4s;
}

/* Responsive */
@media (max-width: 900px) {
    .routes-container {
        grid-template-columns: 1fr;
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
        padding: 40px;
    }
}

@media (max-width: 768px) {
    .hamburger {
        display: block;
        z-index: 1001;
    }

    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .nav-links {
        position: fixed;
        left: -100%;
        top: 0;
        gap: 0;
        flex-direction: column;
        background-color: var(--color-white);
        width: 100%;
        height: 100vh;
        /* Fallback */
        height: 100dvh;
        text-align: center;
        transition: 0.3s;
        padding-top: 100px;
    }

    .nav-links.active {
        left: 0;
    }

    .nav-links li {
        margin: 20px 0;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .cta-group {
        display: flex;
        flex-direction: column;
        gap: 15px;
    }

    .btn-secondary {
        margin-left: 0;
    }
}