body {
    font-family: 'Open Sans', sans-serif;
    margin: 0;
    padding: 0;
    background: url('imagenes/fondo.png') no-repeat center center fixed;
    background-size: cover;
    color: #333;
}

.hero-header {
    height: 600px;
    color: white;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: none; 
}

.header-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 20px 5%; /* Padding para las esquinas */
    box-sizing: border-box;
    z-index: 1; 
}

/* --- LOGO Y NAVEGACIÓN: Logo Izquierda, Menú Derecha --- */
.top-nav-bar {
    display: flex;
    justify-content: space-between; /* Clave para separar Logo y Menú */
    align-items: center;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.logo-header img {
    height: 120px; 
    filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.5));
}

/* Se eliminan las reglas de .logo-header-bottom-left */

.navbar {
    background-color: transparent;
    padding: 15px 0;
    display: flex;
    gap: 30px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.navbar > a.nav-item {
    text-decoration: none;
    color: #ffffff;
    font-weight: bold;
    font-size: 1.1rem;
    position: relative;
    transition: color 0.3s ease;
    padding: 5px 0;
}

.navbar > a.nav-item::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -5px;
    width: 0;
    height: 2px;
    background-color: #66fcf1;
    transition: width 0.3s ease;
}

.navbar > a.nav-item:hover {
    color: #66fcf1;
}

.navbar > a.nav-item:hover::after {
    width: 100%;
}

.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown .nav-item {
    color: #ffffff;
    font-weight: bold;
    font-size: 1.1rem;
    padding: 5px 0;
    cursor: pointer;
    position: relative;
    transition: color 0.3s ease;
}

.dropdown .nav-item::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -5px;
    width: 0;
    height: 2px;
    background-color: #66fcf1;
    transition: width 0.3s ease;
}

.dropdown:hover .nav-item {
    color: #66fcf1;
}

.dropdown:hover .nav-item::after {
    width: 100%;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: rgba(255, 255, 255, 0.95);
    min-width: 160px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    z-index: 1;
    border-radius: 8px;
    padding: 10px 0;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
}

.dropdown-content a {
    color: #333;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    font-weight: normal;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.dropdown-content a:hover {
    background-color: #f0f2f5;
    color: #007bff;
}

.dropdown:hover .dropdown-content {
    display: block;
}

/* --- CONTENIDO HERO CENTRADO --- */
.hero-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center; /* Centra horizontalmente el eslogan */
    max-width: 1200px;
    margin: 0 auto;
    padding-left: 0; 
    text-align: center; 
}

.slogan {
    font-size: 2.8rem;
    font-weight: bold;
    margin-bottom: 40px;
    line-height: 1.3;
    max-width: 700px;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
    text-align: center; 
}

.hero-button {
    display: inline-block;
    padding: 18px 45px;
    background-color: #007bff;
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: bold;
    font-size: 1.2rem;
    transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.hero-button:hover {
    background-color: #0056b3;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

main {
    max-width: 1200px;
    margin: 40px auto;
    padding: 20px;
}

.summary {
    background-color: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
}

.summary h2 {
    font-size: 2.5rem;
    color: #2c3e50;
    text-align: center;
    margin-bottom: 30px;
    border-bottom: 2px solid #eee;
    padding-bottom: 15px;
}

.summary p {
    font-size: 1.1rem;
    line-height: 1.6;
    text-align: center;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.logistics-components {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.modern-card {
    background-color: #f8f8f8;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
    position: relative;
    overflow: hidden;
    border-top: 5px solid #007bff;
}

.modern-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.15);
}

.card-icon {
    font-size: 2.5rem;
    color: #007bff;
    margin-bottom: 15px;
    transition: color 0.3s ease;
}

.modern-card:hover .card-icon {
    color: #0056b3;
}

.modern-card h3 {
    font-size: 1.4rem;
    color: #333;
    margin-bottom: 15px;
}

.modern-card p {
    font-size: 0.95rem;
    line-height: 1.5;
    color: #555;
}

.objective-section {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px;
    margin: 40px auto;
    max-width: 1200px;
    background-color: white;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    overflow: hidden;
    gap: 50px;
    flex-direction: row; 
}

.objective-image {
    flex: 0 0 45%;
    width: 45%;
    height: 350px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.objective-image img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    filter: grayscale(100%);
}

.objective-content {
    flex: 1;
    padding: 0;
    text-align: left;
}

.objective-content h2 {
    color: #007bff;
    font-size: 3.2rem;
    font-weight: bold;
    text-transform: uppercase;
    text-align: left;
    margin-bottom: 20px;
}

.objective-content p {
    font-size: 1.35rem;
    line-height: 1.6;
    color: #555;
    text-align: left;
    margin-bottom: 0;
    max-width: 600px;
}

footer {
    background-color: #333;
    color: white;
    text-align: center;
    padding: 30px 20px;
    margin-top: 60px;
}

@media (max-width: 768px) {
    .hero-header {
        height: 500px;
    }

    .top-nav-bar {
        flex-direction: column;
        gap: 15px;
    }

    .navbar {
        flex-direction: column;
        gap: 10px;
        align-items: center;
    }
    
    .nav-item {
        margin: 0 10px;
        font-size: 1rem;
    }
    
    .hero-content {
        padding-left: 0;
        align-items: center;
        text-align: center;
    }

    .slogan {
        font-size: 2rem;
    }

    .hero-button {
        padding: 15px 30px;
    }

    .summary h2 {
        font-size: 2rem;
    }

    .logistics-components {
        grid-template-columns: 1fr;
    }
    
    .objective-section {
        flex-direction: column;
        padding: 20px;
        gap: 25px;
    }

    .objective-image {
        flex: none;
        width: 100%;
        height: 250px;
        margin-bottom: 20px;
    }

    .objective-content {
        padding: 0;
        text-align: center;
    }

    .objective-content h2 {
        text-align: center;
        font-size: 2.5rem;
    }

    .objective-content p {
        text-align: center;
        font-size: 1.2rem;
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .hero-header {
        height: 400px;
    }

    .logo-header img {
        height: 80px;
    }

    .navbar {
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }

    .nav-item {
        font-size: 0.9rem;
        margin: 0 5px;
    }

    .slogan {
        font-size: 1.5rem;
    }

    .hero-button {
        padding: 12px 25px;
        font-size: 1rem;
    }
}