/* ============================== */
/* CONFIGURACIÓN GENERAL */
/* ============================== */

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding-top: 75px;

    font-family: Arial, Helvetica, sans-serif;

    background-color: #f5f5f5;
    color: #222;
}


/* Evita que la barra fija tape los títulos */

header,
section {
    scroll-margin-top: 80px;
}


/* ============================== */
/* BARRA DE NAVEGACIÓN */
/* ============================== */

.navbar {
    position: fixed;

    top: 0;
    left: 0;

    width: 100%;

    background-color: white;

    display: flex;
    justify-content: space-between;
    align-items: center;

    padding: 10px 60px;

    box-sizing: border-box;

    box-shadow:
        0 2px 10px rgba(0, 0, 0, 0.08);

    z-index: 1000;
}


/* LOGO Y NOMBRE */

.marca {
    display: flex;
    align-items: center;

    text-decoration: none;

    color: #005C00;

    font-size: 20px;
    font-weight: bold;
}

.marca img {
    width: 55px;
    height: 55px;

    object-fit: contain;

    margin-right: 10px;
}


/* MENÚ */

.menu {
    display: flex;
    align-items: center;

    gap: 30px;
}

.menu a {
    text-decoration: none;

    color: #333;

    font-size: 16px;
    font-weight: bold;

    transition: 0.3s;
}

.menu a:hover {
    color: #005C00;
}


/* BOTÓN COTIZAR */

.menu .boton-cotizar {
    background-color: #005C00;

    color: white;

    padding: 11px 20px;

    border-radius: 7px;
}

.menu .boton-cotizar:hover {
    background-color: #008000;

    color: white;

    transform: translateY(-2px);
}


/* ============================== */
/* PORTADA */
/* ============================== */

header {
    text-align: center;

    padding: 20px 20px 35px;

    background-color: white;
}

header img {
    width: 230px;

    max-width: 90%;

    margin-bottom: 0;
}

header h1 {
    margin-top: 10px;
    margin-bottom: 8px;
}

header h2 {
    margin-top: 0;
    margin-bottom: 18px;
}

h1 {
    color: #005C00;

    font-size: 42px;

    margin-bottom: 5px;
}

h2 {
    color: #e60000;
}

p {
    font-size: 18px;
}


/* ============================== */
/* SERVICIOS */
/* ============================== */

.servicios {
    padding: 45px 20px 60px;

    background-color: #f5f5f5;

    text-align: center;
}

.servicios h2 {
    color: #005C00;

    font-size: 36px;

    margin-bottom: 10px;
}

.descripcion-servicios {
    color: #555;

    margin-bottom: 40px;
}


/* CONTENEDOR DE LAS TARJETAS */

.contenedor-servicios {
    max-width: 1100px;

    margin: auto;

    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 25px;
}


/* TARJETAS */

.tarjeta {
    background-color: white;

    padding: 30px 25px;

    border-radius: 10px;

    box-shadow:
        0 4px 12px rgba(0, 0, 0, 0.08);

    transition: 0.3s;
}


/* EFECTO AL PASAR EL MOUSE */

.tarjeta:hover {
    transform: translateY(-6px);

    box-shadow:
        0 8px 20px rgba(0, 0, 0, 0.15);
}


/* TÍTULOS DE LAS TARJETAS */

.tarjeta h3 {
    color: #005C00;

    font-size: 21px;

    margin-bottom: 15px;
}


/* TEXTO DE LAS TARJETAS */

.tarjeta p {
    font-size: 16px;

    line-height: 1.6;

    color: #555;
}


/* ============================== */
/* NOSOTROS */
/* ============================== */

.nosotros {
    background-color: white;

    text-align: center;

    padding: 70px 20px;
}

.nosotros h2 {
    color: #005C00;

    font-size: 34px;

    margin-bottom: 20px;
}

.nosotros p {
    max-width: 750px;

    margin: auto;

    color: #555;

    line-height: 1.7;
}


/* ============================== */
/* CONTACTO */
/* ============================== */

.contacto {
    text-align: center;

    padding: 60px 20px;

    background-color: #f5f5f5;
}

.contacto h2 {
    color: #005C00;

    font-size: 34px;

    margin-bottom: 15px;
}

.contacto p {
    color: #555;

    margin-bottom: 30px;
}


/* BOTÓN WHATSAPP */

.boton-whatsapp {
    display: inline-block;

    background-color: #005C00;

    color: white;

    padding: 15px 30px;

    text-decoration: none;

    border-radius: 8px;

    font-size: 18px;

    font-weight: bold;

    transition: 0.3s;
}

.boton-whatsapp:hover {
    background-color: #008000;

    transform: translateY(-3px);
}


/* ============================== */
/* PIE DE PÁGINA */
/* ============================== */

footer {
    background-color: #222;

    color: white;

    text-align: center;

    padding: 35px 20px;

    border-top: 4px solid #005C00;
}

footer h3 {
    color: white;

    font-size: 24px;

    margin: 0 0 8px 0;
}

footer p {
    font-size: 14px;

    color: #cccccc;

    margin: 6px 0;
}

footer p:first-of-type {
    color: #ffffff;

    font-weight: bold;
}


/* ============================== */
/* TABLET Y CELULAR */
/* ============================== */

@media (max-width: 800px) {

    body {
        padding-top: 70px;
    }


    /* BARRA */

    .navbar {
        padding: 8px 15px;
    }

    .marca img {
        width: 48px;
        height: 48px;
    }

    .marca span {
        display: none;
    }

    .menu {
        gap: 12px;
    }

    .menu a {
        font-size: 13px;
    }

    .menu .boton-cotizar {
        padding: 9px 12px;
    }


    /* SERVICIOS */

    .contenedor-servicios {
        grid-template-columns: 1fr;
    }


    /* PORTADA */

    header img {
        width: 200px;
    }

    h1 {
        font-size: 36px;
    }

    .servicios h2,
    .nosotros h2,
    .contacto h2 {
        font-size: 30px;
    }

}


/* ============================== */
/* CELULARES PEQUEÑOS */
/* ============================== */

@media (max-width: 600px) {

    .menu {
        gap: 8px;
    }

    .menu a {
        font-size: 12px;
    }

    .menu .boton-cotizar {
        padding: 8px 10px;
    }

}