/* RESET */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Arial, sans-serif;
    background: #f8f9fa;
    color: #333;
    line-height: 1.6;
}

/* CONTAINER */
.container {
    width: 90%;
    max-width: 1200px;
    margin: auto;
}

/* NAVBAR */
header {
    background: #0f3d2e;
    color: white;
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 20px;
    font-weight: bold;
    letter-spacing: 1px;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
}

nav a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: 0.3s;
}

nav a:hover {
    color: #8b5e34;
}

.btn-nav {
    background: #8b5e34;
    padding: 8px 15px;
    border-radius: 4px;
}

/* HERO */
.hero {
    height: 90vh;
    background: linear-gradient(rgba(0,0,0,0.65), rgba(0,0,0,0.65)),
                url('../images/truck.jpg') center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    padding: 20px;
}

.hero h1 {
    font-size: 48px;
    max-width: 800px;
    margin-bottom: 20px;
}

.hero p {
    font-size: 20px;
    margin-bottom: 30px;
    color: #ddd;
}

.btn-primary {
    background: #1f6f43;
    color: white;
    padding: 12px 28px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: bold;
    transition: 0.3s;
}

.btn-primary:hover {
    background: #8b5e34;
}

/* SERVICES */
.services-preview {
    padding: 80px 0;
    text-align: center;
}

.services-preview h2 {
    font-size: 32px;
    margin-bottom: 50px;
    color: #0f3d2e;
}

.cards {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
    justify-content: center;
}

.card {
    background: white;
    padding: 40px 25px;
    width: 300px;
    border-radius: 8px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
    transition: 0.3s;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.15);
}

.card h3 {
    margin-bottom: 15px;
    color: #1f6f43;
}

/* PAGE HEADER */
.page-header {
    background: #1f6f43;
    padding: 80px 20px;
    text-align: center;
    color: white;
}

.page-header h1 {
    font-size: 36px;
}

/* CONTACT FORM */
.contact-form {
    max-width: 600px;
    margin: 60px auto;
    background: white;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 20px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.contact-form button {
    width: 100%;
    border: none;
}

/* FOOTER */
footer {
    background: #0f3d2e;
    color: white;
    text-align: center;
    padding: 40px 20px;
    margin-top: 80px;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 32px;
    }

    nav ul {
        gap: 15px;
        font-size: 14px;
    }

    .cards {
        flex-direction: column;
        align-items: center;
    }
}

/* Vista de about*/

.about-hero {
    background: linear-gradient(rgba(15, 61, 46, 0.7), rgba(15, 61, 46, 0.7)),
                url('../images/truck2.jpg') center/cover no-repeat;
    color: white;
    text-align: center;
    padding: 120px 20px;
}

.about-hero h1 {
    font-size: 48px;
    margin-bottom: 20px;
}

.about-hero p {
    font-size: 20px;
    color: #ddd;
}

.about-section {
    padding: 80px 20px;
    text-align: center;
}

.about-section h2 {
    font-size: 32px;
    color: #1f6f43;
    margin-bottom: 30px;
    position: relative;
}

.about-section h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: #8b5e34;
    margin: 10px auto 0;
    border-radius: 2px;
}

.about-section p {
    max-width: 800px;
    margin: 0 auto 40px auto;
    font-size: 18px;
    line-height: 1.8;
}

.about-values {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 40px;
}

.value-card {
    background: #1f6f43;
    color: white;
    padding: 30px 20px;
    border-radius: 8px;
    flex: 1 1 200px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    transition: 0.3s;
}

.value-card:hover {
    transform: translateY(-8px);
    background: #8b5e34;
}

.value-card h3 {
    margin-bottom: 15px;
    font-size: 20px;
}

@media (max-width: 768px) {
    .about-hero h1 {
        font-size: 36px;
    }

    .about-section h2 {
        font-size: 28px;
    }
}

header .logo {
    display: flex;
    align-items: center;       /* Centra verticalmente */
    gap: 10px;                 /* Espacio entre logo y texto */
}

header .logo img {
    height: 50px;              /* Ajusta tamaño del logo */
    width: auto;               /* Mantiene proporción */
    display: block;
}

header .logo span {
    font-size: 18px;
    font-weight: bold;
    color: white;              /* Mantiene el color del header */
    letter-spacing: 1px;
}

.logo a{
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo img{
    height: 50px;
    margin-top: 8px; /* mueve solo un poco hacia abajo */



}
/*Para responsibo en el header*/
@media (max-width: 768px){

    .container{
        flex-direction: column;
        gap: 15px;
    }

    

    .logo img{
        height: 40px;
    }

    .logo span{
        font-size: 14px;
        text-align: center;
    }
     nav ul{
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }

    .btn-nav{
        display: block;
        width: 100%;
        max-width: 200px;
        text-align: center;
        padding: 10px;
    }
}