
body{
    background-color: #EFECE6;
    color: #1C1C1C;
   
}
main p{
    font-size: 150%;
    text-align: justify;
}

main h2{
    font-size: 250%;
}
main h3{
    font-size: 150%;
}

body{
    margin: 0;
}
*{
    font-family: "Montserrat";
}

#portada{
    box-sizing: border-box;
    overflow-x: hidden;
    margin-top: 0;
    min-height: 92vh;
    display: grid;

    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;


    background-image: url("../img/toscana.f2c311d12866.jpg");
    background-repeat: no-repeat;  
    background-size: cover;  

    background-position: center;
    color: #1C1C1C;
    width: 100%;

    padding: 2rem 0;
}

#portada1{
    grid-column: 1;
    grid-row: 1;
    place-items: center;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    padding-left: 5%;

    /* font-size: 250%; */
    font-size: clamp(1.8rem, 3.5vw, 3rem);
}

#portada2{
    grid-column: 2;
    grid-row: 2;
    justify-content: flex-end;
    text-align: right;
    align-content: flex-end;
    align-items: center;
    padding-bottom: 10%;
    padding-right: 5%;
}

#portada2 p{
    text-align: right;
}


@media only screen and (min-width:701px){
.imagen_texto{
    display: flex;
    align-content: space-around;
    align-items: stretch;
    gap:0;
    width: 100%;
    
}
.imagen_texto img{
    width: 50%;
    height: auto;
    object-fit: cover;
}


.imagen_texto article{
    padding: 7%;
    width: 50%;
    box-sizing: border-box;

    display: flex;
    flex-direction: column;
    justify-content: center;
}

#tit_bloque_pizzas{
    display: flex;
    justify-content: center; 

}
#vista_pizzas{
    margin-top: 1%;
    padding-top: 1%;

    width: 80%;
    margin: 0 auto;
    display: flex;
    align-items: stretch;
    justify-content: space-evenly;
    gap: 5%;  
}

}
@media only screen and (max-width:700px){

#portada {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto;
        padding: 3rem 1.5rem;
        gap: 2rem;
        min-height: 60vh;
    }

#portada1 {
        grid-column: 1;
        grid-row: 1;
        padding-left: 0;
        justify-content: center;
        text-align: center;
    }

#portada2 {
        grid-column: 1;
        grid-row: 2;
        padding: 0;
        align-items: center;
        text-align: center;
    }

#portada2 p {
        text-align: center;
    }

.imagen_texto{
    display: flex;
    flex-direction: column;
    align-content: space-around;
    align-items: stretch;
    gap:0;
    width: 100%;
    
}
.imagen_texto img{
    width: 100%;
    height: auto;
    object-fit: cover;
}


.imagen_texto article{
    padding: 7%;
    width: 100%;
    box-sizing: border-box;

    display: flex;
    flex-direction: column;
    justify-content: center;
}
#tit_bloque_pizzas{
    display: flex;
    justify-content: center; 
    align-content: center;
    text-align: center;
   

}
#vista_pizzas{
    margin-top: 1%;
    padding-top: 1%;

    width: 80%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: space-evenly;
    gap: 40px;  
}
#bloque_pizzas{
    margin-top: 2%;
    margin-bottom: 2%;
    padding-top: 1%;
    padding-bottom: 1%;
}
}

#vista_pizzas p{
    font-size: 1.1em;
}


section {
    flex-direction: column;
    flex:1;
    border: 2px solid #2b2b2b;
    padding: 2%;
    border-radius: 5%;

}
section h2{
    color: #1C1C1C;
}
section p{
    color: #5A6260;
}



#bloque_pizzas{
    background-color: #F8F7F4;
    padding-bottom: 5%;
    padding-top: 2%;
}

/* #boton_reserva, */ .boton{
    align-self: center;
    background-color: #B82E2E;
    color: #FFFFFF;
    font-size: 1rem;
    font-weight: 600;
    padding: 14px;
    border: none;
    border-radius: 6px;
    margin-top: 10px;
    width: 70%;

    text-decoration: none; 
    text-align: center;     
    display: inline-block;  
    box-sizing: border-box;
    cursor: pointer;
}

/* .boton_reserva:hover {
    background-color: #962323;
    transform: scale(1.08);
} */

.boton:hover {
    background-color: #962323;
}

/* tarjetas: el texto ocupa todo el alto y el botón queda centrado abajo,
   así los botones de todas las tarjetas quedan alineados */
#vista_pizzas section {
    display: flex;
    flex-direction: column;
}
#vista_pizzas section > div {
    flex: 1;
    display: flex;
    flex-direction: column;
}
#vista_pizzas section .boton {
    margin-top: auto;
}

#vista_pizzas {
    flex-wrap: wrap;
    row-gap: 40px;
}
#vista_pizzas section {
    flex: 1 1 260px;
    max-width: 380px;
}
section img {
    width: 100%;
    height: 220px;
    object-fit: contain;
}

/*filtro por ingredientes de allPizza.html*/
#filtro_ingredientes {
    width: 80%;
    margin: 0 auto 40px auto;
}
#filtro_ingredientes details {
    border: 2px solid #2b2b2b;
    border-radius: 12px;
    padding: 0 20px;
}
/* el título del desplegable: se puede pulsar en toda la franja */
#filtro_ingredientes summary {
    font-size: 1.2rem;
    font-weight: 600;
    padding: 16px 0;
    cursor: pointer;
    list-style: none; /* quitamos el triángulo por defecto del navegador... */
    display: flex;
    align-items: center;
    gap: 8px;
}
#filtro_ingredientes summary::-webkit-details-marker {
    display: none; /* ...también en Safari */
}
/* ...y ponemos una flecha propia a la derecha que gira al abrir */
#filtro_ingredientes summary::after {
    content: "▾";
    margin-left: auto;
    transition: transform 0.2s;
}
#filtro_ingredientes details[open] summary::after {
    transform: rotate(180deg);
}
#filtro_ingredientes .num_marcados {
    color: #B82E2E;
    font-size: 1rem;
    white-space: nowrap;
}
#filtro_ingredientes details[open] {
    padding-bottom: 20px;
}
#lista_ingredientes {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
    gap: 10px 20px;
}
#lista_ingredientes label {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    cursor: pointer;
}
#botones_filtro {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-top: 20px;
}
#botones_filtro .boton {
    width: auto;
    margin-top: 0;
    padding: 12px 40px;
}
#botones_filtro a {
    color: #B82E2E;
    font-weight: 600;
}
.sin_pizzas {
    text-align: center;
}
@media only screen and (max-width:700px){
#filtro_ingredientes details {
    padding: 0 12px;
}
#filtro_ingredientes summary {
    font-size: 1rem;
    flex-wrap: wrap;
    row-gap: 2px;
}
#filtro_ingredientes .num_marcados {
    font-size: 0.9rem;
}
#filtro_ingredientes details[open] {
    padding-bottom: 12px;
}
#lista_ingredientes {
    grid-template-columns: 1fr 1fr;
    gap: 10px 12px;
    font-size: 0.9rem;
}
}
