* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

@font-face {
    font-family: aptos;
    src: url("fuentes/Aptos.ttf");
}

body {
    font-family: aptos;
    background-color: white;
}

a {
    text-decoration: none;

}

ul {
    list-style: none;
}

h2 {
    color: #40610c;
}

.blanco {
    color: white;
}

.verde {
    color: #40610c;
}

p {
    font-size: clamp(12px, 2vw, 1.6rem);
    text-align: justify;
}



h2 {
    font-size: clamp(20px, 4vw, 3.5rem);
    font-style: italic;
    color: #6e8262;
    font-weight: 100;
    /* font-size: 3.5em; */
}

h3 {
    font-size: clamp(15px, 3vw, 2.5rem);
    font-style: italic;
    color: #6e8262;
    font-weight: 100;
}

header {
    position: fixed;
    /* lo saca del flujo y lo pega a la ventana */
    top: 0;
    /* lo fija arriba */
    left: 0;
    /* opcional: que empiece desde la izquierda */
    width: 100%;
    /* ocupa todo el ancho */
    background-color: white;
    z-index: 1000;
    /* alto para que quede encima del contenido */
}


.pagina {

    background-color: white;
    margin-top: 5em;
}

.separacion {
    padding: 2em 0 2em 0;
}


#menu>ul {

    display: flex;
    justify-content: center;
    list-style: none;
    height: 4em;
    gap: 5vw;
    margin: 0;
    padding: 0;
    color: #6e8262;
}

/* cada li de primer nivel */
#menu>ul>li {
    position: relative;
    /* necesario para posicionar el submenu */
    padding: 0;
}

/* el enlace ocupa todo el li */
#menu>ul>li>a {
    display: block;
    /* hace que respete width:100% */
    width: 100%;
    height: 100%;
    text-decoration: none;
    color: #6e8262;
    padding: 0 2em;
    /* controla tú el espacio lateral */
    line-height: 4em;
    /* centra verticalmente el texto */
}
#menu>ul>li>a:hover{
 color: #783906;
}

   
/* submenú oculto por defecto */
#menu>ul>li>ul {
    position: absolute;
    /* saca el ul del flujo, no ocupa espacio */
    top: 100%;
    /* justo debajo del li */
    left: 0;
    display: none;
    /* oculto hasta hover */
    background-color: white;
    margin: 0;
    padding: 0;
    list-style: none;
    min-width: 100%;
    /* como mínimo igual de ancho que el padre */
}

/* mostrar submenú al hacer hover */
#menu>ul>li:hover>ul {
    display: block;
}

/* estilo para los items del submenu */
#menu>ul>li>ul>li>a {
    display: block;
    padding: 1.5em 2em 1.5em 2em;
    text-decoration: none;
    color: #6e8262;
}
#menu>ul>li>ul>li>a:hover{
     color: #783906;
}





/* estilo básico */
#menu-movil {
    display: none;
    position: relative;
}

/* checkbox oculto */
#menu-toggle {
    display: none;
}

/* hamburguesa visible */
.hamburger {
    display: none;
    font-size: 2rem;
    padding: 0.5em 1em;
    cursor: pointer;
    user-select: none;
}

/* menú */
.menu-items {
    list-style: none;
    margin: 0;
    padding: 0;

}

.menu-items li {
    position: relative;

}

.menu-items li a {
    display: block;
    padding: 1em;
    color: #6e8262;
    text-decoration: none;
    background-color: white;

}

/* submenús ocultos */
.menu-items li ul {
    display: none;
    list-style: none;
    margin: 0;
    padding: 0;

}

.menu-items li:hover>ul {
    display: block;

    /* submenú al tocar o hover */

}

.menu-items li ul li a {

    background-color: rgb(250, 250, 250);
    padding-left: 2em;
}



#portada {

    width: 100%;
    height: 100vh;
    display: flex;
    justify-content: center;
    justify-items: center;
    align-items: center;

}

#portada img {
    width: 100%;
    max-width: none;
    /* permite que se estire más allá de su tamaño original */
    height: 88%;
    /* mantiene proporción */
    object-fit: cover;
    /* recorta sin deformar */
    object-position: left;
}


#portada h1 {
    position: absolute;
    width: 100%;
    font-size: 3rem;
    padding: 1rem;
    text-align: center;
    background-color: rgba(0, 0, 0, 0.178);
    font-style: italic;
    font-weight: 100;
}

#introduccion {
    width: 100%;
    display: flex;

}


#introduccion>div:nth-child(1) {
    width: 50%;
    display: flex;
    flex-direction: column;

    padding: 0 0 0 5em;

}


#introduccion>div:nth-child(1)>h2 {
    flex: 1;
    width: 100%;
    padding: 0.5em;
    display: flex;
    align-items: center;
    justify-content: center;

}

#introduccion div:nth-child(1) img {
    width: 100%;
    height: 25em;
}


#introduccion div:nth-child(2) {
    width: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #783906;
    padding-left: 5em;
}


#introduccion div:nth-child(2)>div {

    background-color: #e9e8e3;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100%;
    width: 100%;
    padding: 2em;

}

#introduccion div:nth-child(2)>div>div:nth-of-type(1) {
    width: 90%;
    min-height: auto;
    display: flex;
    flex-direction: column;
    justify-content: start;
    align-items: center;
    padding: 0;
    gap: 2em;
}





#cuidados {
    width: 100%;
    display: flex;

}

#cuidados div:nth-child(1) {
    width: 55%;
    display: flex;
    height: 45em;
    padding-right: 5%;
}

#cuidados div:nth-child(1) img {
    height: 100%;
    width: 100%;

}


#cuidados div:nth-child(2) {
    width: 45%;
    display: flex;
    justify-content: center;
    align-items: center;

}


#luz {
    width: 100%;
    display: flex;
    min-height: 50em;

}

#luz>div:nth-child(1) {
    width: 50%;
    display: flex;
    height: 35em;


}

#luz>div:nth-child(1) img {
    height: 100%;
    width: 100%;

}


#luz>div:nth-child(2) {
    width: 50%;
    display: flex;
    flex-direction: column;
    position: relative;
    padding: 2em 2em 2em 5em;


}



#luz div:nth-child(1) h2 {
    display: none;
}

#luz div:nth-child(2)>h2 {
    flex: 1;
    /* ocupa todo el espacio sobrante */
    display: flex;
    justify-content: center;
    align-items: center;



}

#luz div:nth-child(2) div:nth-of-type(1) {
    width: 100%;
    min-height: 60%;
    color: #783906;
    background-color: #e9e8e3;
    z-index: 500;
    padding: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 4em;
    gap: 2em;
}

#luz div:nth-child(2) div:nth-of-type(1) p {

    padding: 0;
}

#luz div:nth-child(2) div:nth-of-type(2) {
    position: absolute;
    width: 50%;
    height: 50%;
    bottom: 0;
    right: 0;
    background-color: #6e8262;
}

#riego {
    display: grid;
    grid-template-columns: 1fr 1fr;
    /* 2 columnas = 100% */
    grid-template-rows: 1fr 1fr;
    /* 2 filas = 100% */
    width: 100%;
    min-height: 80vh;

    /* ocupa toda la altura del viewport */
}


#riego div:nth-child(1) {
    grid-column: 1 / 2;
    /* columna 1 */
    grid-row: 1 / 2;
    /* fila 1 */

    display: flex;
    position: relative;
    overflow: hidden;


}

#riego div:nth-child(1) img {
    position: absolute;
    width: 100%;
    height: 100%;
}

#riego div:nth-child(2) {
    grid-column: 2 / 3;
    /* columna 2 */
    grid-row: 1 / 2;
    /* fila 1 */

    display: flex;
    justify-content: center;
    align-items: center;
}

#riego div:nth-child(3) {
    grid-column: 1 / 2;
    /* ocupa las 2 columnas */
    grid-row: 2 / 3;
    /* fila 2 */

    background-image: url("imagenes/borroso.png");
    background-size: cover;
    /* Hace que la imagen cubra todo el fondo */
    background-repeat: no-repeat;
    /* Evita que la imagen se repita */
    background-position: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: start;



}

#riego div:nth-child(3)>div:nth-of-type(1) {
    width: 100%;
    min-height: 60%;
    display: flex;
    flex-direction: column;
    justify-content: start;
    align-items: center;
    padding: 4em 4em 2em 4em;
    gap: 2em;
    color: #783906;

}






#riego div:nth-child(4) {
    grid-column: 2 / 3;
    grid-row: 2 / 3;
    background-color: #6e8262;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: start;
}

#riego div:nth-child(4)>div:nth-of-type(1) {
    width: 100%;
    min-height: 60%;
    display: flex;
    flex-direction: column;
    justify-content: start;
    align-items: center;
    padding: 4em 4em 2em 5em;
    gap: 2em;
    color: white;


}





#sustrato {
    display: flex;
    height: auto;
    position: relative;
}

#sustrato>img {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 50%;
    height: 70%;
}

#sustrato>div:nth-child(1) {

    width: 50%;
    min-height: 80vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

#sustrato>div:nth-child(1)>div:nth-of-type(1) {
    width: 100%;
    height: 66%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 4em 6em 4em 6em;
}

#sustrato>div:nth-child(1)>div:nth-of-type(1)>div:nth-of-type(1) {
    background-color: #e9e8e3;
    color: #783906;
    min-height: 82%;
    width: 100%;
    display: flex;
    flex-direction: column-reverse;
    justify-content: center;
    align-items: center;
    padding: 2em;
    gap: 2em;
}

#sustrato>div:nth-child(1)>div:nth-of-type(2) {
    width: 100%;
    height: 40%;
    background-color: #6e8262;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 6em 0 6em;
    flex: 1;
}

#sustrato>div:nth-child(1)>div:nth-of-type(2)>div:nth-of-type(1) {

    height: 100%;
    width: 100%;
    display: flex;
    flex-direction: column-reverse;
    justify-content: space-evenly;
    align-items: center;
    color: white;
    padding: 2em;
}


#sustrato>div:nth-child(2) {

    width: 50%;
    min-height: 80vh;
}

#sustrato>div:nth-child(2) h2 {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 25%;
    width: 100%;
}


.plantaTipoA {
    width: 100%;
    display: flex;
    min-height: 50em;
}



.plantaTipoA>div:nth-child(1) {
    width: 50%;
    display: flex;
    min-height: 50em;
    flex-direction: column;
    align-items: center;
    justify-content: start;
    position: relative;

}

.plantaTipoA>div:nth-child(1) h2 {
    height: 20%;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.plantaTipoA>div:nth-child(1) img {
    height: 80%;
    width: 100%;
    position: absolute;
    left: 0;
    bottom: 0;
}



.plantaTipoA>div:nth-child(2) {
    width: 50%;
    display: flex;
    min-height: 50em;
    flex-direction: column;
    align-items: center;
    justify-content: start;
    padding-left: 5em;


}

.plantaTipoA>div:nth-child(2)>div:nth-of-type(1) {
    width: 100%;
    min-height: 40%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 4em;
    background-color: #e9e8e3;
    color: #783906;
}

.plantaTipoA>div:nth-child(2)>div:nth-of-type(1)>div:nth-of-type(1) {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-items: flex-start;
    gap: 2em;
}

.plantaTipoA>div:nth-child(2)>div:nth-of-type(2) {
    width: 100%;
    min-height: 40%;
    display: flex;
    flex-direction: column;
    background-color: #6e8262;
    color: white;

}

.plantaTipoA>div:nth-child(2)>div:nth-of-type(2)>div:nth-of-type(1) {
    width: 100%;
    height: 50%;
    display: flex;

}


.plantaTipoA>div:nth-child(2)>div:nth-of-type(2)>div:nth-of-type(1)>div:nth-of-type(1) {
    width: 4.5em;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #687E57;
}

.plantaTipoA>div:nth-child(2)>div:nth-of-type(2)>div:nth-of-type(1)>div:nth-of-type(1) img {
    width: 80%;
    height: 3em;

}

.plantaTipoA>div:nth-child(2)>div:nth-of-type(2)>div:nth-of-type(1)>div:nth-of-type(2) {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 4em 0 4em;
}


.plantaTipoA>div:nth-child(2)>div:nth-of-type(2)>div:nth-of-type(2) {
    width: 100%;
    height: 50%;
    display: flex;


}

.plantaTipoA>div:nth-child(2)>div:nth-of-type(2)>div:nth-of-type(2)>div:nth-of-type(1) {
    width: 4.5em;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #687E57;
}

.plantaTipoA>div:nth-child(2)>div:nth-of-type(2)>div:nth-of-type(2)>div:nth-of-type(1) img {
    width: 80%;
    height: 3em;
}

.plantaTipoA>div:nth-child(2)>div:nth-of-type(2)>div:nth-of-type(2)>div:nth-of-type(2) {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 4em 0 4em;
}







.plantaTipoB {
    width: 100%;
    display: flex;
    min-height: 50em;
}



.plantaTipoB>div:nth-child(1) {
    width: 50%;
    display: flex;
    min-height: 50em;
    flex-direction: column;
    align-items: center;
    justify-content: start;
    order: 2;
    position: relative;

}

.plantaTipoB>div:nth-child(1) h2 {
    width: 100%;
    height: 20%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-left: 2.5em;
}

.plantaTipoB>div:nth-child(1) img {
    height: 80%;
    width: 100%;
    bottom: 0;
    left: 0;
    position: absolute;
    padding-left: 5em;

}



.plantaTipoB>div:nth-child(2) {
    width: 50%;
    display: flex;
    min-height: 50em;
    flex-direction: column;
    align-items: center;
    justify-content: start;
    order: 1;


}

.plantaTipoB>div:nth-child(2)>div:nth-of-type(1) {
    width: 100%;
    min-height: 40%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 4em;
    background-color: #e9e8e3;
    color: #783906;
}

.plantaTipoB>div:nth-child(2)>div:nth-of-type(1)>div:nth-of-type(1) {
    display: flex;
    flex-direction: column;
    align-items: start;
    justify-items: start;
    gap: 2em;
}

.plantaTipoB>div:nth-child(2)>div:nth-of-type(2) {
    width: 100%;
    min-height: 40%;
    display: flex;
    flex-direction: column;
    background-color: #6e8262;
    color: white;

}

.plantaTipoB>div:nth-child(2)>div:nth-of-type(2)>div:nth-of-type(1) {
    width: 100%;
    height: 50%;
    display: flex;

}


.plantaTipoB>div:nth-child(2)>div:nth-of-type(2)>div:nth-of-type(1)>div:nth-of-type(1) {
    width: 4.5em;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #687E57;
}

.plantaTipoB>div:nth-child(2)>div:nth-of-type(2)>div:nth-of-type(1)>div:nth-of-type(1) img {
    width: 80%;
    height: 3em;

}

.plantaTipoB>div:nth-child(2)>div:nth-of-type(2)>div:nth-of-type(1)>div:nth-of-type(2) {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 4em 0 4em;
}


.plantaTipoB>div:nth-child(2)>div:nth-of-type(2)>div:nth-of-type(2) {
    width: 100%;
    height: 50%;
    display: flex;


}

.plantaTipoB>div:nth-child(2)>div:nth-of-type(2)>div:nth-of-type(2)>div:nth-of-type(1) {
    width: 4.5em;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #687E57;
}

.plantaTipoB>div:nth-child(2)>div:nth-of-type(2)>div:nth-of-type(2)>div:nth-of-type(1) img {
    width: 80%;
    height: 3em;
}

.plantaTipoB>div:nth-child(2)>div:nth-of-type(2)>div:nth-of-type(2)>div:nth-of-type(2) {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 4em 0 4em;
}






#conclusion {
    width: 100%;
    display: flex;
    min-height: 50em;
}



#conclusion>div:nth-child(1) {
    width: 50%;
    display: flex;
    min-height: 50em;
    align-items: center;
    justify-content: center;
    position: relative;
}

#conclusion>div:nth-child(1) img {
    padding-right: 6em;
    height: 100%;
    width: 100%;
    position: absolute;
}

#conclusion>div:nth-child(2) {
    width: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: start;
    padding-left: 5em;
}

#conclusion>div:nth-child(2)>div:nth-of-type(1) {
    width: 100%;
    min-height: 40%;
    display: flex;
    justify-content: center;
    align-items: center;

}

#conclusion>div:nth-child(2)>div:nth-of-type(1) h3 {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}

#conclusion>div:nth-child(2)>div:nth-of-type(2) {
    width: 100%;
    min-height: 60%;
    display: flex;
    justify-content: center;
    align-items: end;

}

#conclusion>div:nth-child(2)>div:nth-of-type(2)>div:nth-of-type(1) {
    background-color: #e9e8e3;
    color: #783906;
    display: flex;
    flex-direction: column;
    justify-content: start;
    align-items: center;
    width: 100%;
    gap: 2em;
    padding: 4em;
    min-height: 20em;
}

#footer {
    text-align: center;
    background-color: white;
    padding: 1em 0;
  color: #6e8262;
  z-index: 1000;
    font-size: 0.9rem;
   
}



/****************************************/
/****************************************/
/****************************************/

/* Portátiles y pantallas medianas (≤1199px) */
@media (max-width: 1199px) {
  

    #introduccion div:nth-child(1) img {

        height: 20em;
    }

    #cuidados div:nth-child(1) {
        height: 45em;
    }


    #cuidados div:nth-child(1) img {

        object-fit: cover;
    }


    #luz div:nth-child(1) img {
        height: 80%;

    }

    #sustrato>div:nth-child(1)>div:nth-of-type(1) {

        padding: 4em;

    }

    #sustrato>div:nth-child(1)>div:nth-of-type(2) {

        padding: 0 4em 0 4em;

    }





    .plantaTipoA>div:nth-child(1) img {
        height: 50%;
        width: 100%;
        position: relative;
    }


    .plantaTipoA>div:nth-child(2)>div:nth-of-type(2)>div:nth-of-type(1)>div:nth-of-type(2) {
        padding: 0 2em 0 2em;
    }

    .plantaTipoA>div:nth-child(2)>div:nth-of-type(2)>div:nth-of-type(2)>div:nth-of-type(2) {
        padding: 0 2em 0 2em;

    }

    .plantaTipoA>div:nth-child(2)>div:nth-of-type(2)>div:nth-of-type(1)>div:nth-of-type(1) {
        width: 4em;
    }

    .plantaTipoA>div:nth-child(2)>div:nth-of-type(2)>div:nth-of-type(1)>div:nth-of-type(1) img {
        width: 80%;
        height: 2.8em;

    }

    .plantaTipoA>div:nth-child(2)>div:nth-of-type(2)>div:nth-of-type(2)>div:nth-of-type(1) {
        width: 4em;
    }

    .plantaTipoA>div:nth-child(2)>div:nth-of-type(2)>div:nth-of-type(2)>div:nth-of-type(1) img {
        width: 80%;
        height: 2.5em;

    }




    .plantaTipoB>div:nth-child(1) img {
        height: 50%;
        width: 100%;
        position: relative;
    }


    .plantaTipoB>div:nth-child(2)>div:nth-of-type(2)>div:nth-of-type(1)>div:nth-of-type(2) {
        padding: 0 2em 0 2em;
    }

    .plantaTipoB>div:nth-child(2)>div:nth-of-type(2)>div:nth-of-type(2)>div:nth-of-type(2) {
        padding: 0 2em 0 2em;

    }

    .plantaTipoB>div:nth-child(2)>div:nth-of-type(2)>div:nth-of-type(1)>div:nth-of-type(1) {
        width: 4em;
    }

    .plantaTipoB>div:nth-child(2)>div:nth-of-type(2)>div:nth-of-type(1)>div:nth-of-type(1) img {
        width: 70%;
        height: 2.2em;

    }

    .plantaTipoB>div:nth-child(2)>div:nth-of-type(2)>div:nth-of-type(2)>div:nth-of-type(1) {
        width: 4em;
    }

    .plantaTipoB>div:nth-child(2)>div:nth-of-type(2)>div:nth-of-type(2)>div:nth-of-type(1) img {
        width: 70%;
        height: 2em;

    }


    #conclusion>div:nth-child(1) img {
        padding: 4em 6em 4em 0;
    }

    #conclusion>div:nth-child(2)>div:nth-of-type(1) {
        padding-top: 6em;
    }


}





/* Tablets horizontales (≤991px) */
@media (max-width: 991px) {
  

    #introduccion {
        flex-direction: column;
        gap: 2em;

    }

    #introduccion div:nth-child(1) {
        width: 100%;
        padding: 2em 7em 0 7em;
    }

    #introduccion div:nth-child(1) img {
        height: 40vh;
    }

    #introduccion div:nth-child(2) {
        width: 100%;
        padding: 0 7em 0 7em;

    }


    #introduccion>div:nth-child(1)>h2 {

        padding: 1em;
    }



    #luz div:nth-child(2) div:nth-of-type(1) {
        min-height: 50%;
        padding: 2em;

    }

    #luz div:nth-child(2) div:nth-of-type(2) {
        width: 40%;
        height: 40%;

    }

    #luz div:nth-child(1) img {
        height: 71%;

    }

    #riego {
        min-height: 70vh;
    }

    #riego div:nth-child(3)>div:nth-of-type(1) {

        gap: 2em;

    }

    #riego div:nth-child(4)>div:nth-of-type(1) {

        gap: 2em;

    }

    .plantaTipoA {

        min-height: 35em;
    }


    .plantaTipoA>div:nth-child(1) {
        min-height: 35em;
    }

    .plantaTipoA>div:nth-child(2) {
        min-height: 35em;
    }


    .plantaTipoA>div:nth-child(1) {
        padding-right: 3em;
    }

    .plantaTipoA>div:nth-child(2) {
        padding-left: 3em;
    }

    .plantaTipoA>div:nth-child(2)>div:nth-of-type(2)>div:nth-of-type(1)>div:nth-of-type(1) img {
        height: 1.7em;
        width: 60%;
    }


    .plantaTipoA>div:nth-child(2)>div:nth-of-type(2)>div:nth-of-type(2)>div:nth-of-type(1) img {
        height: 1.7em;
        width: 60%;
    }

    .plantaTipoB {

        min-height: 35em;
    }


    .plantaTipoB>div:nth-child(1) {
        min-height: 35em;
    }

    .plantaTipoB>div:nth-child(2) {
        min-height: 35em;
    }

    .plantaTipoB>div:nth-child(1) {
        padding-left: 3em;
    }

    .plantaTipoB>div:nth-child(2) {
        padding-right: 3em;
    }

    .plantaTipoB>div:nth-child(2)>div:nth-of-type(2)>div:nth-of-type(1)>div:nth-of-type(1) img {
        height: 1.7em;
        width: 60%;
    }


    .plantaTipoB>div:nth-child(2)>div:nth-of-type(2)>div:nth-of-type(2)>div:nth-of-type(1) img {
        height: 1.7em;
        width: 60%;
    }


    #conclusion {

        min-height: 45em;
    }



    #conclusion>div:nth-child(1) {

        min-height: 45em;

    }

    #conclusion>div:nth-child(1) img {
        padding: 6em 3em 6em 0;
    }

    #conclusion>div:nth-child(2) {

        padding-left: 3em;
    }

    #conclusion>div:nth-child(2)>div:nth-of-type(1) {
        width: 100%;
        min-height: 30%;



    }



    #conclusion>div:nth-child(2)>div:nth-of-type(2) {
        min-height: 70%;
        align-items: center;
    }

}

/* Tablets verticales (≤767px) */
@media (max-width: 767px) {


  
    #introduccion div:nth-child(1) {

        padding: 0 2em 0 2em;
    }

    #introduccion div:nth-child(2) {
        padding: 0 2em 0 2em;
    }

    #cuidados {
        position: relative;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    #cuidados div:nth-child(1) {
        width: 100%;
        padding: 0;
        display: flex;
        height: 40em;


    }

    #cuidados div:nth-child(2) {
        width: 40%;
        position: absolute;
        background-color: white;
        width: 100%;
        height: 6em;
        margin-top: 10em;

    }


    #luz {
        width: 100%;
        display: flex;
        flex-direction: column;
        min-height: 30em;

    }

    #luz div:nth-child(1) {
        width: 100%;
        display: flex;
        align-items: center;
        height: 30vh;
        /* padding-right: 8em; */
        padding: 0;

    }

    #luz div:nth-child(2) {
        width: 100%;
        height: 15em;
        display: flex;
        position: relative;
        padding: 2em;


    }

    #luz div:nth-child(1) img {
        height: 100%;
        width: 50%;
        padding: 0;
    }

    #luz div:nth-child(1) h2 {
        display: flex;
        justify-content: center;
        flex: 1;
    }

    #luz div:nth-child(2)>h2 {
        flex: 1;
        display: none;
        justify-content: center;
        align-items: center;
    }



    #riego {
        min-height: 50vh;
    }

    #riego div:nth-child(3)>div:nth-of-type(1) {

        min-height: 65%;
        gap: 1em;


    }

    #riego div:nth-child(4)>div:nth-of-type(1) {

        min-height: 65%;
        gap: 1em;
    }





    #riego div:nth-child(3)>div:nth-of-type(1) {

        padding: 3em 2em 2em 2em;
        gap: 2em;


    }


    #riego div:nth-child(4)>div:nth-of-type(1) {

        padding: 3em 2em 2em 2em;
        gap: 2em;
        color: white;


    }



    #sustrato {
        min-height: 50vh;
    }


    #sustrato>div:nth-child(1)>div:nth-of-type(2) {

        padding: 0;

    }


    #sustrato>img {
        position: absolute;
        bottom: 0;
        right: 0;
        width: 50%;
        height: 60%;
    }

    #sustrato>div:nth-child(2) h2 {
        display: flex;
        justify-content: center;
        align-items: center;
        height: 40%;
        width: 100%;
    }


    .plantaTipoA {

        min-height: 40em;
    }


    .plantaTipoA>div:nth-child(1) {
        min-height: 40em;
    }

    .plantaTipoA>div:nth-child(2) {
        min-height: 40em;
    }


    .plantaTipoA>div:nth-child(1) {
        padding-right: 0;
    }

    .plantaTipoA>div:nth-child(2) {
        padding: 0;
    }


    .plantaTipoA>div:nth-child(1) h2 {
        height: 40%;
    }

    .plantaTipoA>div:nth-child(1) img {
        height: 40%;
        width: 100%;
    }

    .plantaTipoA>div:nth-child(2)>div:nth-of-type(1) {
        padding: 1em;

    }

    .plantaTipoA>div:nth-child(2)>div:nth-of-type(2)>div:nth-of-type(1)>div:nth-of-type(1) {
        width: 2em;
    }


    .plantaTipoA>div:nth-child(2)>div:nth-of-type(2)>div:nth-of-type(2)>div:nth-of-type(1) {
        width: 2em;
    }

    .plantaTipoA>div:nth-child(2)>div:nth-of-type(2)>div:nth-of-type(1)>div:nth-of-type(1) img {
        height: 1.5em;
    }


    .plantaTipoA>div:nth-child(2)>div:nth-of-type(2)>div:nth-of-type(2)>div:nth-of-type(1) img {
        height: 1.3em;
    }

    .plantaTipoA>div:nth-child(2)>div:nth-of-type(2)>div:nth-of-type(1)>div:nth-of-type(2) {
        padding: 2em;
    }

    .plantaTipoA>div:nth-child(2)>div:nth-of-type(2)>div:nth-of-type(2)>div:nth-of-type(2) {
        padding: 2em;

    }






    .plantaTipoB {

        min-height: 40em;
    }


    .plantaTipoB>div:nth-child(1) {
        min-height: 40em;
    }

    .plantaTipoB>div:nth-child(2) {
        min-height: 40em;
    }


    .plantaTipoB>div:nth-child(1) {
        padding: 0;
    }

    .plantaTipoB>div:nth-child(2) {
        padding: 0;
    }


    .plantaTipoB>div:nth-child(1) h2 {
        height: 40%;
    }

    .plantaTipoB>div:nth-child(1) img {
        height: 40%;
        width: 100%;
    }

    .plantaTipoB>div:nth-child(2)>div:nth-of-type(1) {
        padding: 1em;

    }

    .plantaTipoB>div:nth-child(2)>div:nth-of-type(2)>div:nth-of-type(1)>div:nth-of-type(1) {
        width: 2em;
    }


    .plantaTipoB>div:nth-child(2)>div:nth-of-type(2)>div:nth-of-type(2)>div:nth-of-type(1) {
        width: 2em;
    }

    .plantaTipoB>div:nth-child(2)>div:nth-of-type(2)>div:nth-of-type(1)>div:nth-of-type(1) img {
        height: 1.5em;
    }


    .plantaTipoB>div:nth-child(2)>div:nth-of-type(2)>div:nth-of-type(2)>div:nth-of-type(1) img {
        height: 1.3em;
    }

    .plantaTipoB>div:nth-child(2)>div:nth-of-type(2)>div:nth-of-type(1)>div:nth-of-type(2) {
        padding: 2em;
    }

    .plantaTipoB>div:nth-child(2)>div:nth-of-type(2)>div:nth-of-type(2)>div:nth-of-type(2) {
        padding: 2em;

    }




    #conclusion {

        min-height: 40em;
    }



    #conclusion>div:nth-child(1) {

        min-height: 40em;

    }


    #conclusion>div:nth-child(1) img {
        padding: 6em 2em 6em 0;
    }


    #conclusion>div:nth-child(2) {


        padding-left: 0em;
    }


    #conclusion>div:nth-child(2)>div:nth-of-type(2)>div:nth-of-type(1) {

        padding: 2em;
        justify-content: center;

    }





    /* Móviles grandes (≤575px) */
    @media (max-width: 575px) {
      




        #introduccion div:nth-child(1) {

            padding: 0;

        }


        #introduccion div:nth-child(2)>div {
            padding: 2em;

        }

        #introduccion div:nth-child(2)>div>div:nth-of-type(1) {
            width: 100%;
        }

        #introduccion div:nth-child(2) {
            padding: 0;
        }


        #introduccion div:nth-child(1) img {

            height: 35vh;
        }


        #luz>div:nth-child(1) {
            width: 100%;
            display: flex;
            position: relative;




        }

        #luz>div:nth-child(1) img {
            height: 100%;
            width: 100%;
            position: absolute;

        }

        #luz>div:nth-child(1) h2 {
            z-index: 500;
            background-color: rgba(255, 255, 255, 0.6);
            padding: 2em;
        }



        #riego {
            min-height: 50vh;
        }

        #riego {
            display: grid;
            grid-template-columns: 1fr;
            grid-template-rows: 6em 1fr 1.5fr 1fr;
            width: 100%
        }


        #riego div:nth-child(1) {
            margin-top: 2em;
            grid-row: 3/ 4;
            grid-column: 1/2;
            display: flex;
            position: relative;
            overflow: hidden;

        }

        #riego div:nth-child(1) img {
            position: absolute;
            width: 100%;
            height: 100%;
           
        }


        #riego div:nth-child(2) {

            grid-row: 1 / 2;
            grid-column: 1/2;

        }

        #riego div:nth-child(3) {

            /* ocupa las 2 columnas */
            grid-row: 2/ 3;
            grid-column: 1/2;
            background-image: none;
            background-color: #6e8262;
            display: flex;
            justify-content: center;
            align-items: center;
            padding: 0;
            margin: 0;

            /* fila 2 */

        }

            #riego div:nth-child(3)>div:nth-of-type(1) {
            justify-content: center;
            padding: 2em;
            margin: 0;
        
        }

        #riego div:nth-child(3) p {
            color: white;
        }



        #riego div:nth-child(4) {

            grid-row: 4 / 5;
            grid-column: 1/2;
            margin-top: 2em;

            background-color: transparent;
            background-image: url("imagenes/borroso.png");
            background-size: cover;
            /* Hace que la imagen cubra todo el fondo */
            background-repeat: no-repeat;
            /* Evita que la imagen se repita */
            background-position: center;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            
        }

        #riego div:nth-child(4) p {
            color: #783906;
        }

        #riego div:nth-child(3)>div:nth-of-type(1) {

            justify-content: center;
            margin: 0;

        }

        #riego div:nth-child(4)>div:nth-of-type(1) {
            justify-content: center;
            padding: 2em;
            margin: 0;
        }





        #sustrato {
            flex-direction: column;
        }

        #sustrato>img {
            position: absolute;
            bottom: 0;
            right: 0;
            left: 0;
            top: 0;
            width: 100%;
            height: 80%;
        }

        #sustrato>div:nth-child(1) {
            order: 2;
            width: 100%;
            min-height: 50vh;
            display: flex;
            flex-direction: column;
            justify-content: space-between;
            z-index: 1000;
        }




        #sustrato>div:nth-child(1)>div:nth-of-type(1) {
            padding: 6em 2em 6em 2em;
        }

        #sustrato>div:nth-child(1)>div:nth-of-type(1)>div:nth-of-type(1) {
            width: 100%;
        }


        #sustrato>div:nth-child(1)>div:nth-of-type(2)>div:nth-of-type(1) {
            width: 100%;
            padding: 2em;
        }

        #sustrato>div:nth-child(2) {
            order: 1;
            width: 100%;
            min-height: 10vh;
            background-color: white;
            z-index: 1000;
        }

        #sustrato>div:nth-child(2) h2 {
            display: flex;
            justify-content: center;
            align-items: center;
            height: 10vh;
            width: 100%;
        }


        .plantaTipoA {
            flex-wrap: wrap;
            min-height: 30em;
            gap: 0;
        }





        .plantaTipoA>div:nth-child(1) {
            width: 100%;
            display: flex;
            min-height: 10em;
        }


        .plantaTipoA>div:nth-child(1) h2 {
            height: 4em;

        }

        .plantaTipoA>div:nth-child(1) img {
            height: 20em;
        }

        .plantaTipoA>div:nth-child(2) {
            width: 100%;
            min-height: 20em;

        }

        .plantaTipoA>div:nth-child(2)>div:nth-of-type(1) {
            padding: 0 2em 0 2em;

        }

        .plantaTipoA>div:nth-child(2)>div:nth-of-type(2)>div:nth-of-type(1)>div:nth-of-type(1) {
            width: 4em;
        }


        .plantaTipoA>div:nth-child(2)>div:nth-of-type(2)>div:nth-of-type(2)>div:nth-of-type(1) {
            width: 4em;
        }

        .plantaTipoA>div:nth-child(2)>div:nth-of-type(2)>div:nth-of-type(1)>div:nth-of-type(1) img {
            height: 2em;
            width: 70%;
        }


        .plantaTipoA>div:nth-child(2)>div:nth-of-type(2)>div:nth-of-type(2)>div:nth-of-type(1) img {
            height: 2em;
            width: 70%;
        }

        .plantaTipoA>div:nth-child(2)>div:nth-of-type(2)>div:nth-of-type(1)>div:nth-of-type(2) {
            padding: 2em;
        }

        .plantaTipoA>div:nth-child(2)>div:nth-of-type(2)>div:nth-of-type(2)>div:nth-of-type(2) {
            padding: 2em;
        }





        .plantaTipoB {
            flex-wrap: wrap;
            min-height: 30em;
            gap: 0;
        }

        .plantaTipoB>div:nth-child(1) {
            width: 100%;
            display: flex;
            min-height: 10em;
            order: 1;

        }


        .plantaTipoB>div:nth-child(1) h2 {
            height: 4em;

        }

        .plantaTipoB>div:nth-child(1) img {
            height: 20em;
            padding: 0;
        }

        .plantaTipoB>div:nth-child(2) {
            width: 100%;
            min-height: 20em;
            order: 2;

        }

        .plantaTipoB>div:nth-child(2)>div:nth-of-type(1) {
            padding: 0 2em 0 2em;

        }

        .plantaTipoB>div:nth-child(2)>div:nth-of-type(2)>div:nth-of-type(1)>div:nth-of-type(1) {
            width: 4em;
        }


        .plantaTipoB>div:nth-child(2)>div:nth-of-type(2)>div:nth-of-type(2)>div:nth-of-type(1) {
            width: 4em;
        }

        .plantaTipoB>div:nth-child(2)>div:nth-of-type(2)>div:nth-of-type(1)>div:nth-of-type(1) img {
            height: 2em;
            width: 70%;
        }


        .plantaTipoB>div:nth-child(2)>div:nth-of-type(2)>div:nth-of-type(2)>div:nth-of-type(1) img {
            height: 2em;
            width: 70%;
        }

        .plantaTipoB>div:nth-child(2)>div:nth-of-type(2)>div:nth-of-type(1)>div:nth-of-type(2) {
            padding: 2em;
        }

        .plantaTipoB>div:nth-child(2)>div:nth-of-type(2)>div:nth-of-type(2)>div:nth-of-type(2) {
            padding: 2em;
        }


        #conclusion {
            position: relative;
        }

        #conclusion>div:nth-child(1) {
            width: 100%;
            min-height: 50em;
            position: absolute;
        }

        #conclusion>div:nth-child(1) img {
            padding-right: 0;

        }

        #conclusion>div:nth-child(2) {
            width: 100%;
            z-index: 1000;

            padding-left: 0;
        }

        #conclusion>div:nth-child(2)>div:nth-of-type(1) {
            padding: 3em;
            margin-top: 1em;
            min-height: 40%;

        }



        #conclusion>div:nth-child(2)>div:nth-of-type(2)>div:nth-of-type(1) {
            background-color: #e9e8e390;
            backdrop-filter: blur(2px);
            -webkit-backdrop-filter: blur(2px);
            color: #783906;
            min-height: 15em;
        }

        #menu {
            display: none;
        }

        #menu-movil {
            display: block;
            position: relative;

        }

        .hamburger {
            display: block;
        }

        .menu-items {
            display: none;
            flex-direction: column;
            width: 100%;
        }

        /* mostrar menú al activar checkbox */
        #menu-toggle:checked+.hamburger+.menu-items {
            display: flex;
        }

        /* submenús móviles: desplegables */
        .menu-items li ul {
            display: none;
            flex-direction: column;
        }

        .menu-items li:hover>ul,
        .menu-items li:focus-within>ul {
            display: flex;
        }


    }


    /* Móviles pequeños (≤375px aprox) */
    @media (max-width: 375px) {
      

    }
}