*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body{
    font-family: Arial;
    background: #f4f4f4;
    color: #222;
}

/* HEADER */

header{
    background: #005c00;

    padding: 10px 8%;

    display: flex;

    justify-content: space-between;

    align-items: center;

    position: sticky;

    top: 0;

    z-index: 1000;
}

header h1{
    color: white;
    font-style: italic;
}

.logo{
    height: 45px;

    width: auto;
}

nav{
    display: flex;
    gap: 20px;
}

nav a{
    color: white;
    text-decoration: none;
    font-weight: bold;
    font-size: 0.95rem;
    transition: 0.3s;
}

nav a:hover{
    color: #9cff9c;
}

/* HERO */

.hero{
    height: 90vh;

    background:
    linear-gradient(rgba(0,0,0,0.6),
    rgba(0,0,0,0.6)),
    url(IMAGENES/Tracto1-limpieza-exterior.jpg);

    background-size: cover;
    background-position: center;

    display: flex;
    justify-content: center;
    align-items: center;

    text-align: center;
    padding: 20px;
}

.contenido-hero{
    color: white;
}

.contenido-hero h2{
    font-size: 3rem;
    margin-bottom: 20px;
    text-shadow: 0px 0px 8px rgb(236, 233, 233);
}

.contenido-hero p{
    max-width: 700px;
    margin: auto;
    line-height: 1.7;
    margin-bottom: 30px;
}

.boton{
    background: #005c00;
    color: white;
    padding: 15px 30px;
    text-decoration: none;
    border-radius: 5px;
    transition: 0.3s;
}

.boton:hover{
    background: #008000;
}

/* SECCIONES */

section{
    padding: 80px 10%;
}

section h2{
    text-align: center;
    margin-bottom: 40px;
    color: #005c00;
    font-size: 2rem;
}

/* NOSOTROS */

.nosotros p{
    text-align: center;
    max-width: 900px;
    margin: auto;
    line-height: 1.8;
    margin-bottom: 20px;
}

/* NUEVO DISEÑO NOSOTROS */
.nosotros{
    background: #f3f3f3;
    padding: 80px 10%;
}

.nosotros-contenido{
    display: flex;
    align-items: center;
    gap: 40px;
}

.nosotros-img img{
    width: 100%;
    max-width: 400px; 
    border-radius: 15px;
    box-shadow: 0px 4px 12px rgba(0,0,0,0.15);
}

.nosotros-texto{
    flex: 1;
}

.nosotros-texto h2{
    text-align: center;
    color: #005c00;
    margin-bottom: 20px;
}

.nosotros-texto p{
    margin-bottom: 15px;
    line-height: 1.7;
    color: #333;
}

/* SERVICIOS */

.contenedor-servicios{
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(250px,1fr));
    gap: 30px;
}

.card{
    background: white;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    transition: 0.3s;
}

.card:hover{
    transform: translateY(-10px);
}

.card i{
    font-size: 3rem;
    color: #005c00;
    margin-bottom: 20px;
}

.card h3{
    margin-bottom: 15px;
}

/* GALERIA */

.galeria{
    display: grid;

    grid-template-columns: repeat(2, 1fr);

    gap: 25px;

    max-width: 1000px;

    margin: auto;
}

.galeria img{
    width: 100%;

    height: 300px;

    object-fit: cover;

    border-radius: 15px;

    transition: 0.3s;

    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.galeria img:hover{
    transform: scale(1.02);

    filter: brightness(1.05);
}

/* REQUISITOS */

.requisitos{
    background: #e9e9e9;
}

.requisitos ul{
    max-width: 600px;
    margin: auto;
    line-height: 2;
}

.frase{
    text-align: center;

    margin: 40px auto 0 auto;

    font-style: italic;

    font-weight: bold;

    max-width: 900px;

    line-height: 1.8;
}

/* CONTACTO */

.contacto{
    text-align: center;
}

.contacto p{
    margin-bottom: 15px;
}

.redes{
    margin-top: 30px;
}

.redes a{
    color: #005c00;
    font-size: 2rem;
    margin: 0 15px;
    transition: 0.3s;
}

.redes a:hover{
    color: black;
}

/* FOOTER */

footer{
    background: black;
    color: white;
    text-align: center;
    padding: 20px;
}

/* RESPONSIVE */

@media(max-width:768px){

    header{
        flex-direction: column;
        gap: 15px;
    }

    nav{
        flex-wrap: wrap;
        justify-content: center;
    }

    .contenido-hero h2{
        font-size: 2rem;
    }

}

/* DETALLES Y PRECIOS */

.detalles{
    background: #ffffff;
}

.contenedor-detalles{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.detalle-card{
    background: #f0fdf0;
    border-left: 6px solid #005c00;
    padding: 25px;
    border-radius: 10px;
    transition: 0.3s;
}

.detalle-card h3{
    color: #005c00;
    margin-bottom: 10px;
}

.detalle-card p{
    line-height: 1.6;
    margin-bottom: 10px;
}

.detalle-card .precio{
    display: inline-block;
    margin-top: 10px;
    font-size: 1.3rem;
    font-weight: bold;
    color: #008000;
}

.detalle-card:hover{
    transform: translateY(-8px);
    background: #e8ffe8;
}

/* CONTENEDOR DE PRECIO + BOTONES */
.precio-boton{
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    margin-top: 15px;
}

/* BOTÓN COTIZAR */
.boton-cotizar{
    background: #008000;
    color: white;
    padding: 8px 16px;
    text-decoration: none;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: bold;
    transition: 0.3s;
}

.boton-cotizar:hover{
    background: #00a000;
}

/* BOTÓN OTROS SERVICIOS (más chico) */
.boton-volver{
    display: inline-block;
    padding: 6px 14px;
    background: #005c00;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: bold;
    transition: 0.3s;
}

.boton-volver:hover{
    background: #008000;
}

.card a{
    text-decoration: none;
    color: inherit;
    display: block;
}



@media(max-width:768px){
    
    .nosotros-contenido{
        flex-direction: column;
        text-align: center;
    }

    .nosotros-texto h2{
        text-align: center;
    }

    .nosotros-img img{
        max-width: 100%;
    }
}

@media(max-width:768px){

    .galeria{
        grid-template-columns: 1fr;
    }
}