:root {
    --blanco: #FFFFFF;
    --negro: #111111;
    --gris: #343A40;
    --verde: #0D6000;
    --verdeClaro: rgb(151, 192, 32);
    --fuentePrincipal: 'Raleway', sans-serif;
    --verdeClaroBoton: #7CCA3D;
    --verdeBoton: #3a7226;
    --naranja: #EA4800;
}

html {
    box-sizing: border-box;
    font-size: 62.5%;
}

*,
*::before,
*::after {
    box-sizing: inherit;
}

body {
    font-family: var(--fuentePrincipal);
    font-size: 1.6rem;
    line-height: 1.8;
}

h1,
h2,
h3 {
    font-weight: 900;
    line-height: 1.2;
    margin: 1rem 0 4rem 0;
}

h1,
h2 {
    font-size: 4.8rem;
}

h3 {
    font-size: 2.8rem;
}

a {
    text-decoration: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.contenedor {
    max-width: 120rem;
    margin: 0 auto;
    width: 90%;
}

.btn {
    color: var(--gris);
    background-color: var(--verdeClaroBoton);
    border: 1px solid var(--verdeClaroBoton);
    padding: .5rem 2rem;
    transition: background-color .3s;
}

.btn:hover {
    background-color: var(--verdeBoton);
    border-color: var(--verdeBoton);
    color: var(--blanco);
    transform: scale(1.1) rotate(-8deg);
}

/* Utilidades */
.text-center {
    text-align: center;
}

.mt-5 {
    margin-top: 5rem;
}

.font-w-700 {
    font-weight: 700;
}

/* Header */
.header {
    min-height: 60rem;
    /* background-image: url("../img/logo_c.png"); */
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    padding: 5rem 0;
}

.notavif.notwebp .header {
    background-image: url("../img/logo_c.png");
}

.webp .header {
    background-image: url("../img/logo_c.webp");
}

.contenido-header {
    display: flex;
    flex-direction: column;
    height: calc(60rem - 4rem);
    justify-content: space-between;
    color: var(--blanco);
}

.nombre-sitio {
    font-weight: 900;
    text-align: center;
    font-size: 3rem;
    text-shadow: 2px 2px 11px var(--verde);
}

@media (min-width:768px) {
    .nombre-sitio {
        font-size: 4rem;
    }
}

@media (min-width:1280px) {
    .barra {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
}

.contacto {
    display: flex;
    flex-direction: column;
    align-items: center;
}

@media (min-width:768px) {
    .contacto {
        align-items: flex-end;
    }
}

.email {
    display: flex;
}

.email::before {
    content: '';
    display: block;
    width: 3.2rem;
    height: 3.2rem;
    /* background-image: url("../img/email32.png"); */
    background-repeat: no-repeat;
    background-position: center center;
    margin-right: 1rem;
}

.notavif.notwebp .email::before {
    background-image: url("../img/email32.png");
}

.webp .email::before {
    background-image: url("../img/email32.webp");
}

.header a {
    color: var(--blanco);
    font-size: 2rem;
    font-weight: 700;
}

.navegacion {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    margin-top: 1rem;
}

@media (min-width:768px) {
    .navegacion {
        flex-direction: row;
        line-height: 1;
        align-items: center;
        justify-content: center;
        flex-wrap: wrap;
    }
}

@media (min-width:1280px) {
    .navegacion {
        flex-wrap: nowrap;
    }
}

.navegacion a {
    padding: .5rem;
    transition: background-color 300ms;
    width: 100%;
    text-align: center;
}

.navegacion a:hover {
    background-color: rgb(255 255 255 /.5);
    color: var(--negro);
}

@media (min-width:768px) {
    .navegacion a {
        padding: 1rem 2rem;
        width: auto;
        min-width: 21rem;
    }
}

@media (min-width:1280px) {
    .navegacion a {
        min-width: auto;
    }
}

.slogan {
    text-align: center;
    text-shadow: 2px 2px 11px var(--verde);
}

@media (min-width:768px) {
    .slogan {
        text-align: right;
    }
}

.slogan h2 {
    font-size: 3rem;
    margin: 0;
}

@media (min-width:1280px) {
    .slogan h2 {
        font-size: 4rem;
        font-size: 3.6rem;
    }
}

.slogan p {
    margin: 0;
    line-height: 1;
}

/* Generalidad */
.generalidad h3 {
    text-align: center;
}

@media (min-width:768px) {
    .generalidad h3 {
        text-align: left;
    }
}

.generalidad span {
    display: block;
    font-weight: 900;
    text-align: center;
}

/* Administracion */
.administracion h3 {
    text-align: center;
}

@media (min-width:768px) {
    .administracion h3 {
        text-align: left;
    }
}

/* Historia */
.historia h3 {
    text-align: center;
}

@media (min-width:768px) {
    .historia h3 {
        text-align: left;
    }
}

.historia div {
    display: flex;
    flex-direction: row-reverse;
    margin-bottom: 5rem;
}

/* Footer */
.footer {
    border-top: 1px solid #e1e1e1;
    text-align: center;
}

@media (min-width:768px) {
    .footer div:nth-child(1) {
        text-align: left;
    }
}

.footer h4 {
    color: var(--verde);
}

.footer a {
    display: block;
    color: var(--negro);
    padding: .5rem 0;
}

.footer a:hover {
    text-decoration: underline;
    text-decoration-color: var(--verde);
}

@media (min-width:768px) {
    .footer-grid-4 {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 2rem;
    }

    .footer-grid-3 {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 2rem;
    }
}

.redes-social div:first-of-type {
    margin-bottom: 1.5rem;
}

.redes-social .contenedor {
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.copyright p:nth-child(1) {
    margin-bottom: 0;
}

.copyright p:nth-child(2) {
    margin-top: 0;
}

/* Historia detalle */
.historias {
    margin-bottom: 5rem;
}

.historias h3 {
    text-align: center;
}

@media (min-width:768px) {
    .historias h3 {
        text-align: left;
    }
}

.historias p {
    padding-left: 1.6rem;
}

.historias p::before {
    content: '';
    display: inline-block;
    width: 1rem;
    height: 1rem;
    /* background-image: url("../img/fish1.gif"); */
    background-repeat: no-repeat;
    background-position: center center;
    margin-right: 1rem;
}

.notavif.notwebp .historias p::before {
    background-image: url("../img/fish1.gif");
}

.webp .historias p::before {
    background-image: url("../img/fish1.webp");
}

.historia-detalle {
    display: grid;
    grid-template-columns: 1, 1fr;
}

@media (min-width:768px) {
    .historia-detalle {
        grid-template-columns: repeat(2, 1fr);
        gap: 3rem;
    }
}

@media (min-width:1280px) {
    .historia-detalle {
        grid-template-columns: repeat(3, 1fr);
    }
}

.historia-detalle ul {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

@media (min-width:768px) {
    .historia-detalle ul:nth-child(3) {
        grid-column: 2/3;
        grid-row: 1/2;
    }
}

@media (min-width:1280px) {
    .historia-detalle ul {
        margin: 1.6rem 0;
    }

    .historia-detalle ul:nth-child(3) {
        grid-column: 3/4;
    }
}

/* Sector agricola */
/*          Cultivo */
.cultivos-contenedor>div {
    margin-bottom: 8rem;
}

@media (min-width:768px) {
    .cultivos-contenedor>div {
        margin-bottom: 0;
    }
}

@media (min-width:768px) {

    .cultivo h3,
    .cultivo h4 {
        text-align: left;
    }

    .cultivo-contenido {
        display: grid;
        grid-template-columns: 1fr 3fr;
        gap: 4rem;
    }
}

@media (min-width:1280px) {
    .cultivo-contenido {
        grid-template-columns: 1fr 4fr;
    }
}

.cultivo img {
    margin: 0 auto;
    border-radius: 1.5rem;
}

@media (min-width:768px) {
    .cultivo img {
        margin-top: 2.128rem;
    }
}

.cultivo .contenedor-btn,
.tecnico .contenedor-btn,
.tecnicos .contenedor-btn,
.historias .contenedor-btn,
.cultivos .contenedor-btn {
    display: flex;
    flex-direction: row-reverse;
}

/*          Tecnico */
.tecnico {
    margin-bottom: 5rem;
}

.tecnico .contenedor-img {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 33rem;
    justify-content: flex-start;
}

.tecnico img {
    border-radius: 1.5rem;
    margin-bottom: 1.6rem;
}

@media (min-width:768px) {
    .tecnico h3 {
        text-align: left;
    }

    .tecnico .contenedor-img {
        margin-top: 1.6rem;
    }

    .tecnico-contenido {
        display: grid;
        grid-template-columns: 1fr 3fr;
        gap: 4rem;
    }
}

@media (min-width:1280px) {
    .tecnico-contenido {
        grid-template-columns: 1fr 4fr;
    }
}

/* Cultivos */
.cultivos>div {
    margin-bottom: 5rem;
}

.cultivos h3,
.cultivos h4 {
    text-align: center;
}

@media (min-width:768px) {

    .cultivos h3,
    .cultivos h4 {
        text-align: left;
    }
}

.cultivos img {
    margin: 0 auto;
    border-radius: 1.5rem;
}

@media (min-width:768px) {
    .cultivos img {
        margin: 0;
        margin-top: 2.128rem;
    }
}

@media (min-width:768px) {

    .soya,
    .trigo,
    .sorgo,
    .maiz,
    .azucar,
    .arroz {
        display: grid;
        grid-template-columns: 1fr 3fr;
        gap: 4rem;
    }
}

@media (min-width:1280px) {

    .soya,
    .trigo,
    .sorgo,
    .maiz,
    .azucar,
    .arroz {
        grid-template-columns: 1fr 2fr;
        gap: 2rem;
    }

    .cultivos .cultivos-contenedor {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 3rem;
    }
}

/* Tecnico detalles */
.tecnicos {
    margin-bottom: 5rem;
}

.tecnicos img {
    margin: 0 auto;
    border-radius: 1.5rem;
}

@media (min-width:768px) {
    .tecnicos h3 {
        text-align: left;
    }

    .tecnicos img {
        margin: 0;
        margin-top: 1.6rem;
    }

    .tecnicos-contenido {
        display: grid;
        grid-template-columns: 1fr 3fr;
        gap: 4rem;
    }
}

@media (min-width:1280px) {
    .tecnicos-contenido {
        grid-template-columns: 1fr 4fr;
    }
}

/* Pecuario */
.pecuario>div {
    margin-bottom: 8rem;
}

@media (min-width:768px) {
    .pecuario>div {
        margin-bottom: 5rem;
    }
}

.pecuario h3,
.pecuario h4 {
    text-align: center;
}

@media (min-width:768px) {

    .pecuario h3,
    .pecuario h4 {
        text-align: left;
    }
}

.pecuario img {
    margin: 0 auto;
    border-radius: 1.5rem;
}

@media (min-width:768px) {
    .pecuario img {
        margin: 2.128rem 0 0 0;
    }
}

@media (min-width:768px) {
    .pecuario-contenido {
        display: grid;
        grid-template-columns: 1fr 3fr;
        gap: 4rem;
    }
}

@media (min-width:1280px) {
    .pecuario-contenido {
        grid-template-columns: 1fr 4fr;
    }
}

/* Contactos */
.contactos {
    text-align: center;
}

@media (min-width:768px) {
    .contactos {
        text-align: left;
    }
}

.contactos>div {
    margin-bottom: 8rem;
}

@media (min-width:768px) {
    .contactos>div {
        margin-bottom: 5rem;
    }
}

.contactos h3,
.contactos h4 {
    text-align: center;
}

@media (min-width:768px) {

    .contactos h3,
    .contactos h4 {
        text-align: left;
    }
}

.contactos img {
    margin: 0 auto;
}

@media (min-width:768px) {
    .contactos img {
        margin: 2.128rem 0 0 0;
    }
}

.contactos-contenido div>h4 {
    font-weight: 700;
    color: var(--naranja);
}

.contactos-contenido div h4 span {
    font-weight: normal;
    color: var(--negro);
}

.contactos-contenido p>span {
    font-weight: 700;
    color: var(--negro);
}

@media (min-width:768px) {
    .contactos-contenido {
        display: grid;
        grid-template-columns: 1fr 8fr;
        gap: 4rem;
    }
}

@media (min-width:1280px) {
    .contactos-contenido {
        grid-template-columns: 1fr 8fr;
    }
}