:root {
    --primary-color: #003366; /* Azul Marino Corporativo */
    --secondary-color: #ff9900; /* Naranja de acento */
    --text-color: #333;
    --light-bg: #f4f7f6;
    --white: #ffffff;
    --max-width: 1200px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--white);
    overflow-x: hidden;
}

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

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* Header & Navigation */
header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(5px);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 10px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

.logo img {
    height: 60px;
    width: auto;
    display: block;
    transition: transform 0.3s ease;
}

.logo img:hover {
    transform: scale(1.05);
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 20px;
}

nav ul li a {
    text-decoration: none;
    color: var(--primary-color);
    font-weight: 700;
    transition: color 0.3s, border-bottom 0.3s;
    padding-bottom: 5px;
    border-bottom: 2px solid transparent;
}

nav ul li a:hover {
    color: var(--secondary-color);
    border-bottom: 2px solid var(--secondary-color);
}

/* Botón hamburguesa (oculto en escritorio) */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    padding: 10px;
    background: transparent;
    border: none;
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    height: 3px;
    width: 100%;
    background: var(--primary-color);
    border-radius: 2px;
    transition: transform 0.3s, opacity 0.3s;
}

.menu-open .menu-toggle span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

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

.menu-open .menu-toggle span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(0,51,102,0.7), rgba(0,51,102,0.7)), url('camion1.jpg') center/cover no-repeat;
    height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
}

.hero h1 {
    font-size: 5rem;
    margin-bottom: 20px;
    letter-spacing: 5px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero p {
    font-size: 1.4rem;
    margin-bottom: 20px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    font-weight: 300;
}

.btn {
    display: inline-block;
    background: var(--secondary-color);
    color: var(--white);
    padding: 15px 40px;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.1rem;
    transition: transform 0.3s, background 0.3s, box-shadow 0.3s;
    margin-top: 20px;
}

.btn:hover {
    background: #e68a00;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

/* Services Section */
.services {
    padding: 100px 0;
    background: var(--light-bg);
    text-align: center;
}

.services h2 {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    position: relative;
}

.services h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--secondary-color);
    margin: 10px auto;
    border-radius: 2px;
}

.section-desc {
    max-width: 700px;
    margin: 0 auto 60px;
    font-size: 1.2rem;
    color: #666;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
    gap: 35px;
}

.card {
    background: var(--white);
    padding: 25px 25px 35px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.card-img-wrap {
    width: 100%;
    height: 175px;
    background: #f8fafc;
    border-radius: 14px;
    padding: 10px;
    margin-bottom: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.card-img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 10px;
    display: block;
}

.card h3 {
    margin-bottom: 14px;
    color: var(--primary-color);
    font-size: 1.5rem;
}

/* Fleet Section */
.fleet {
    padding: 100px 0;
    background: var(--white);
    text-align: center;
}

.fleet h2 {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    position: relative;
}

.fleet h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--secondary-color);
    margin: 10px auto;
    border-radius: 2px;
}

.fleet-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
    gap: 30px;
    margin-top: 50px;
}

.fleet-item {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    height: 260px;
    transition: transform 0.3s ease;
}

.fleet-item:hover {
    transform: scale(1.02);
}

.fleet-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

/* Mission & Vision Section */
.mision-vision {
    padding: 100px 0;
    background: var(--white);
}

.mv-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(400px, 100%), 1fr));
    gap: 50px;
}

.mv-item {
    padding: 40px;
    border-radius: 20px;
    background: var(--light-bg);
    box-shadow: 0 5px 15px rgba(0,0,0,0.03);
    transition: background 0.3s;
}

.mv-item:hover {
    background: #edf2f1;
}

.mv-item h2 {
    color: var(--primary-color);
    margin-bottom: 25px;
    font-size: 2.2rem;
    display: flex;
    align-items: center;
    gap: 15px;
}

.mv-item h2::before {
    content: '';
    width: 10px;
    height: 40px;
    background: var(--secondary-color);
    border-radius: 5px;
}

.mv-item p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #444;
}

/* Commitment Section */
.commitment {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--primary-color) 0%, #001a33 100%);
    color: var(--white);
}

.commitment-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.commitment h2 {
    font-size: 3rem;
    margin-bottom: 40px;
    color: var(--white);
}

.commitment p {
    font-size: 1.3rem;
    margin-bottom: 25px;
    opacity: 0.9;
}

/* Map Section */
.map-section {
    padding: 100px 0;
    text-align: center;
}

.map-section h2 {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 50px;
}

.map-container {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

/* Footer */
footer {
    background: var(--primary-color);
    color: var(--white);
    padding: 60px 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr));
    gap: 40px;
    margin-bottom: 40px;
    text-align: left;
}

.footer-grid h3 {
    margin-bottom: 20px;
    border-bottom: 2px solid var(--secondary-color);
    display: inline-block;
    padding-bottom: 5px;
}

.footer-info, .footer-location {
    font-style: normal;
}

.footer-info a, .footer-location a {
    color: var(--white);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-info a:hover, .footer-location a:hover {
    color: var(--secondary-color);
}

.maps-link {
    display: inline-block;
    margin-top: 15px;
    background: var(--secondary-color);
    padding: 8px 15px;
    border-radius: 5px;
    font-weight: bold;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 20px;
    text-align: center;
    font-size: 0.9rem;
}

.developer-credit {
    margin-top: 8px;
    font-size: 0.85rem;
    opacity: 0.85;
}

.developer-credit a {
    color: var(--secondary-color);
    text-decoration: none;
    transition: opacity 0.3s, text-decoration 0.3s;
}

.developer-credit a:hover {
    text-decoration: underline;
    opacity: 1;
}

.developer-credit strong {
    color: var(--secondary-color);
    font-weight: 700;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Tablet */
@media (max-width: 992px) {
    .hero h1 {
        font-size: 3.5rem;
    }

    .services h2,
    .fleet h2,
    .commitment h2,
    .map-section h2 {
        font-size: 2.4rem;
    }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .header-content {
        flex-wrap: wrap;
    }

    .logo img {
        height: 48px;
    }

    .menu-toggle {
        display: flex;
    }

    nav {
        width: 100%;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.35s ease;
    }

    .menu-open nav {
        max-height: 400px;
    }

    nav ul {
        flex-direction: column;
        padding: 10px 0;
    }

    nav ul li {
        margin: 0;
        border-top: 1px solid rgba(0, 51, 102, 0.08);
    }

    nav ul li a,
    nav ul li a:hover {
        display: block;
        padding: 14px 5px;
        border-bottom: none;
    }

    .hero {
        height: auto;
        min-height: 70vh;
        padding: 70px 0;
    }

    .hero h1 {
        font-size: 2.5rem;
        letter-spacing: 3px;
    }

    .hero p {
        font-size: 1.05rem;
    }

    .btn {
        padding: 13px 30px;
        font-size: 1rem;
    }

    .services,
    .fleet,
    .mision-vision,
    .commitment,
    .map-section {
        padding: 55px 0;
    }

    .services h2,
    .fleet h2,
    .commitment h2,
    .map-section h2 {
        font-size: 1.95rem;
    }

    .map-section h2 {
        margin-bottom: 25px;
    }

    .commitment h2 {
        margin-bottom: 25px;
    }

    .section-desc {
        font-size: 1rem;
        margin-bottom: 30px;
    }

    .services-grid,
    .fleet-grid,
    .mv-grid {
        gap: 20px;
    }

    .fleet-grid {
        margin-top: 25px;
    }

    .card {
        padding: 18px 18px 24px;
        max-width: 360px;
        width: 100%;
        margin: 0 auto;
    }

    .card:hover {
        transform: translateY(-4px);
    }

    .card-img-wrap {
        max-width: 240px;
        height: 135px;
        padding: 8px;
        margin: 0 auto 14px;
    }

    .card h3 {
        font-size: 1.3rem;
        margin-bottom: 10px;
    }

    .card p {
        font-size: 0.95rem;
    }

    .fleet-item {
        height: 195px;
        max-width: 360px;
        width: 100%;
        margin: 0 auto;
        border-radius: 16px;
    }

    .mv-item {
        padding: 25px 20px;
    }

    .mv-item h2 {
        font-size: 1.7rem;
    }

    .mv-item p,
    .commitment p {
        font-size: 1.02rem;
    }

    .map-container iframe {
        height: 300px;
    }

    footer {
        padding: 45px 0 20px;
    }

    .footer-grid {
        text-align: center;
        gap: 30px;
    }

    .footer-grid h3 {
        display: block;
        width: fit-content;
        margin-left: auto;
        margin-right: auto;
    }

    .footer-info a,
    .footer-location a {
        word-break: break-word;
    }
}

/* Celulares pequeños */
@media (max-width: 400px) {
    .container {
        padding: 0 15px;
    }

    .hero h1 {
        font-size: 2.1rem;
        letter-spacing: 2px;
    }

    .services h2,
    .fleet h2,
    .commitment h2,
    .map-section h2 {
        font-size: 1.7rem;
    }

    .card-img-wrap {
        max-width: 210px;
        height: 120px;
    }

    .fleet-item {
        height: 175px;
    }
}
