* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #222;
    background: #f5f5f5;
}

/* ===== VARIABLES ===== */

:root {
    --primary: #f52323;
    --dark: #1a1a1a;
    --light: #ffffff;
    --gray: #666;
    --section-padding: 80px 10%;
}

/* ===== GENERALES ===== */

section {
    padding: var(--section-padding);
}

h1,
h2,
h3 {
    margin-bottom: 20px;
    font-weight: bold;
}

p {
    color: var(--gray);
}

a {
    text-decoration: none;
}

img {
    max-width: 100%;
}

/* ===== HEADER ===== */

header {
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 100;
    background: rgba(26,26,26,0.95);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;

    padding: 20px 10%;
}

.logo {
    background-image: url("logo.png");
    background-size: contain;
    background-repeat: no-repeat;
    width: 150px;
    height: 50px;
}
.logo h2 {
    display: none;
    color: var(--primary);
    margin: 0;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
}

nav a {
    color: white;
    font-weight: 600;
    transition: .3s;
}

nav a:hover {
    color: var(--primary);
}

/* ===== HERO ===== */

#inicio {
    min-height: 100vh;

    display: flex;
    align-items: center;

    background:
        linear-gradient(
            rgba(0,0,0,.65),
            rgba(0,0,0,.65)
        ),
        url("hero.png");

    background-size: cover;
    background-position: center;
}

.hero-content {
    max-width: 700px;
    color: white;
}

.hero-content h1 {
    font-size: 3.5rem;
    line-height: 1.2;
}

.hero-content p {
    color: #ddd;
    margin-bottom: 30px;
    font-size: 1.1rem;
}

.hero-content a {
    display: inline-block;

    background: var(--primary);
    color: white;

    padding: 15px 35px;

    font-weight: bold;
    border-radius: 5px;

    transition: .3s;
}

.hero-content a:hover {
    transform: translateY(-3px);
}

/* ===== EMPRESA ===== */

#empresa {
    background: white;
    text-align: center;
}

.empresa-datos {
    margin-top: 50px;

    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.empresa-datos div {
    padding: 30px;
    background: #fafafa;
    border-radius: 8px;
}

.empresa-datos h3 {
    color: var(--primary);
    font-size: 2rem;
}

/* ===== SERVICIOS ===== */

#servicios {
    background: #ebebeb;
    text-align: center;
}

.servicios-grid {
    margin-top: 50px;

    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.servicios-grid article {
    background: white;
    padding: 40px;
    border-radius: 10px;

    transition: .3s;
}

.servicios-grid article:hover {
    transform: translateY(-5px);
}

/* ===== MAQUINARIA ===== */

#maquinaria {
    background: white;
    text-align: center;
}

.maquinaria-grid {
    margin-top: 50px;

    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

.maquinaria-grid article {
    background: #fafafa;
    padding: 30px;
    border-radius: 10px;
}

/* ===== CTA ===== */

#cta {
    background: var(--dark);
    text-align: center;
    color: white;
}

#cta p {
    color: #ccc;
    margin-bottom: 30px;
}

#cta a {
    display: inline-block;

    background: var(--primary);
    color: white;

    padding: 15px 35px;
    border-radius: 5px;
    font-weight: bold;
}



/* ===== GALERÍA ===== */

#galeria {
    background: #f8f8f8;
    text-align: center;
}

#galeria p {
    margin-bottom: 50px;
}

.galeria-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.galeria-item {
    overflow: hidden;
    border-radius: 10px;
    cursor: pointer;
}

.galeria-item img {
    width: 100%;
    height: 300px;

    object-fit: cover;
    display: block;

    transition: .4s;
}

.galeria-item:hover img {
    transform: scale(1.08);
}

/* ===== CONTACTO ===== */

#contacto {
    background: white;
}

.contacto-info {
    margin-bottom: 40px;
}

.contacto-info p {
    margin-bottom: 30px;
}
.contacto-info a {
    color: var(--primary);
    font-weight: bold;
}
.contacto-info .whatsapp-btn{
    color: #FFF;
}

.icono{
    height: 20px;
    margin-right: 8px;
}

form {
    max-width: 700px;

    display: flex;
    flex-direction: column;
    gap: 20px;
}

input,
textarea {
    padding: 16px;

    border: 1px solid #ddd;
    border-radius: 5px;

    font-size: 1rem;
}

button {
    background: var(--primary);
    color: white;

    border: none;
    padding: 16px;

    cursor: pointer;

    font-weight: bold;
    border-radius: 5px;

    transition: .3s;
}

button:hover {
    opacity: .9;
}

/* ===== FOOTER ===== */

footer {
    background: var(--dark);
    text-align: center;

    padding: 30px;
}

footer p {
    color: #aaa;
}
.whatsapp-btn {
    display: inline-block;
    margin-left: 10px;
    background: #25D366;
    color: white;
    padding: 8px 12px;
    border-radius: 5px;
    font-size: 0.9rem;
    transition: .3s;
}

/* ===== RESPONSIVE ===== */

@media(max-width: 992px){

    .empresa-datos,
    .servicios-grid,
    .maquinaria-grid {
        grid-template-columns: 1fr 1fr;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .galeria-grid {
        grid-template-columns: 1fr 1fr;
    }

}

@media(max-width: 768px){

    nav {
        flex-direction: column;
        gap: 20px;
    }

    nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }

    .empresa-datos,
    .servicios-grid,
    .maquinaria-grid {
        grid-template-columns: 1fr;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .galeria-grid {
        grid-template-columns: 1fr;
    }

}