:root {
    --azulCian: #008B8B;
    --verdeMenta: #50C878;
    --blancoPuro: #FFFFFF;
    --grisClaro: #E5E5E5;
    --verdeOlivaOS: #4A7B50;

    --fuentePrincipal: font-family: 'Lora', serif;
}

/* apply a natural box layout model to all elements, but allowing components to change */
html {
    box-sizing: border-box;
    font-size: 62.5%;
}

*,
*:before,
*:after {
    box-sizing: inherit;
}

/* globales */
body {
    background-color: var(--blancoPuro);
    font-size: 1.6rem;
    line-height: 1.5;
}

p {
    font-size: 1.8rem;
    font-family: Arial, Helvetica, sans-serif;
    color: black;
}

a {
    text-decoration: none;
}

img {
    width: 100%;
}

.contenedorPrincipal {
    max-width: 120rem;
    margin: 0 auto;
}

.contenedorPrincipal h2 {
    font-size: 6rem;
    color: var(--verdeMenta);
}

/* banner web en video */

/* Banner */
.banner {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    /* Centramos el contenido */
    text-align: center;
}

/* Video de fondo */
.video-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
}

/* Contenedor del logo y el slogan */
.contenido {
    display: flex;
    flex-direction: column;
    align-items: center;
    /* Centramos verticalmente */
    justify-content: center;
    /* Centramos horizontalmente */
    z-index: 2;
    color: white;
}

/* Logo */
.logo {
    width: 30rem;
    opacity: 0;
    animation: fadeInOutLogo 6s infinite;
}

/* Slogan */
.slogan {
    font-size: 3rem;
    color: var(--blancoPuro);
    font-family: var(--fuentePrincipal);
    margin-top: 20px;
    opacity: 0;
    animation: fadeInOutSlogan 6s infinite;
}

/* Animación del logo */
@keyframes fadeInOutLogo {

    0%,
    20% {
        opacity: 0;
    }

    /* Oculto */
    30%,
    60% {
        opacity: 1;
    }

    /* Aparece */
    70%,
    100% {
        opacity: 0;
    }

    /* Se desvanece */
}

/* Animación del slogan */
@keyframes fadeInOutSlogan {

    0%,
    30% {
        opacity: 0;
    }

    /* Oculto */
    40%,
    60% {
        opacity: 1;
    }

    /* Aparece */
    70%,
    100% {
        opacity: 0;
    }

    /* Se desvanece */
}


/* Fin del banner*/


h1 {
    display: none;
}

h2,
h3 {
    text-align: center;
    color: black;
    font-family: var(--fuentePrincipal);
}

h2 {
    font-size: 3rem;
}

h3 {
    font-size: 1.5rem;
}

.header {
    display: flex;
    justify-content: center;
}

.header__logo {
    margin: 3rem 0;
    height: 15rem;
}

.navegacion {
    background-color: var(--verdeMenta);
    padding: 1rem 0;
    display: flex;
    justify-content: center;
    gap: 2rem;
}

.navegacion__enlace {
    font-family: var(--fuentePrincipal);
    font-size: 2rem;
    color: var(--blancoPuro);
}

.navegacion__enlace--activo,
.navegacion__enlace:hover {
    color: var(--blancoPuro);
}

@media (max-width: 768px) {
    .navegacion__enlace {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .navegacion__enlace {
        font-size: 1.5rem;
    }
}

.grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    background-color: whitesmoke;
    /* Fondo blanco */
    padding: 2rem;
    border-radius: 12px;
    /* Bordes redondeados */
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
    /* Sombra sutil */
}

/* Estilos para los elementos internos */
.grid>* {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    /* Bordes redondeados en cada item */
    box-shadow: 0px 2px 8px rgba(0, 0, 0, 0.1);
    /* Sombra ligera */
    text-align: center;
}

.producto {
    padding: 1.5rem;
}

.producto__nombre {
    font-size: 2.5rem;
    color: rgb(0, 0, 0);
    font-weight: 900;

}

.producto__precio {
    font-size: 2rem;

}

.producto__nombre,
.producto__precio {
    font-family: var(--fuentePrincipal);
    margin: 1rem 0;
    text-align: center;
}

.grafico {
    min-height: 30rem;
    background-repeat: no-repeat;
    background-size: cover;
    grid-column: 1 / 3;
}

.grafico--agro1 {
    grid-row: 2 / 3;
    background-image: url(../imagenes/agro1.jpg);

}

.grafico--agro2 {
    grid-row: 8 / 9;
    background-image: url(../imagenes/agro2.jpg);
}


@media (min-width: 768px) {
    .grafico--agro2 {
        grid-row: 5 / 6;
        grid-column: 2 / 4;
    }
}

@media (max-width: 768px) {
    .grid {
        grid-template-columns: repeat(3, 1fr);
    }

}

@media (max-width: 480px) {
    .grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.nosotros {
    display: grid;
    grid-template-rows: (2, auto);
}

@media (min-width: 768px) {
    .nosotros {
        grid-template-columns: repeat(2, 1fr);
        column-gap: 2rem;
    }
}

.nosotros__contenido {
    font-family: var(--fuentePrincipal);
}

.nosotros__imagen {
    grid-row: 1 / 2;
    max-height: 50vh;
    object-fit: cover;
}

@media (min-width: 768px) {
    .nosotros__imagen {
        grid-column: 2 / 3;
    }
}

.bloques {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 5rem;
}

@media (min-width: 768px) {
    .bloques {
        grid-template-columns: repeat(4, 1fr);
    }
}

.bloque {
    text-align: center;

}

.bloque__titulo {
    margin: 0;
    font-size: 3rem;
    color: var(--verdeOlivaOS);
}

/* Esta porcion de codigo trabaja el svg, estamos unicamente definiendo propiedades para los iconos, pero solo tamaño */
#Capa_2 {
    width: 10rem;
    height: auto;
    max-width: 100%;
}

/* pagina del producto donde se muestra la informacion a detalle*/
@media (min-width: 760px) {
    .botas {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        column-gap: 2rem;
    }
}

.formulario {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;

}

.formulario__campo {
    padding: 2rem;
    border: .5rem solid var(--verdeOlivaOS);
    text-align: center;
    background-color: transparent;
    color: var(--verdeOlivaOS);
    font-size: 2rem;
    font-family: Arial, Helvetica, sans-serif;
    font-weight: 600;
    appearance: none;
}

.fromulario__submit {
    background-color: var(--verdeMenta);
    border: none;
    font-size: 2rem;
    font-family: var(--fuentePrincipal);
    padding: 2rem;
    transition: background-color .3s ease;
}

.fromulario__submit:hover {
    cursor: pointer;
    background-color: var(--verdeOlivaOS);
}

/* Codigo para pagina de servicios */
/* Contenedor Principal */
.contenedor-principal {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    text-align: center;
}

/* Título */
.contenedor-principal__titulo {
    font-size: 6rem;
    color: var(--verdeMenta);
}

/* Servicios - Grid Layout */
.servicios {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    /* Adaptable */
    gap: 2rem;
    justify-items: center;
}

/* Cada servicio */
.servicios__item {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s ease-in-out;
}

.servicios__item:hover {
    transform: translateY(-5px);
}

/* Imagen */
.servicios__imagen {
    width: 100%;
    max-width: 400px;
    border-radius: 10px;
    margin-bottom: 15px;
}

/* Título */
.servicios__titulo {
    font-size: 3rem;
    color: #222;
    margin-bottom: 10px;
}

/* Descripción */
.servicios__descripcion {
    font-size: 2rem;
    color: #555;
    line-height: 1.5;
}
/* fin del codigo pagina de servicios */


/* footer o pie de pag */
.footer {
    background-color: var(--verdeMenta);
    padding: 1rem 0;
    margin-top: 2rem;
}

.footer__texto {
    font-family: var(--fuentePrincipal);
    text-align: center;
    color: black;
    font-size: 2rem;
    font-weight: 600;
}

@media (max-width: 768px) {
    .footer__texto {
        font-size: 2rem;
        font-weight: 900;
    }
}

@media (max-width: 480px) {
    .footer__texto {
        font-size: 1.2rem;
        font-weight: 900;
    }
}