*{
margin: 0;
padding: 0;
box-sizing: border-box;
}

img{
display: block;
max-width: 100%;
height: 4rem;
}

body{
font-family: "Times New Roman";
line-height: 1.4;
background-color: aquamarine;
color: #000;
}

.header img{
width: 100%;
height: 550px;
object-fit: cover;
}

.nav{
display: flex;
justify-content: center;
align-items: center;
gap: 25px;
padding: 14px 10px;
background: #0e6b57;
flex-wrap: wrap;
border: 2px solid #000;
}

.nav a{
text-decoration: none;
color: #fff;
font-weight: 700;
text-transform: uppercase;
padding: 10px 14px;
border-radius: 10px;
background: rgba(255,255,255,0.12);
transition: background 160ms ease, transform 160ms ease;
}

.nav a:hover{
background: rgba(255,255,255,0.22);
transform: translateY(-1px);
}

/* Parte de arriba principal de la web */

/* Bloque grande por categoría */
.categoria{
width: min(1100px, 92%);
margin: 28px auto;
padding: 18px 18px 22px;
background: #000;color: #fff;
border: 3px solid #fff;
box-shadow: 0 0 0 6px rgba(0,0,0,0.25);
}

.categoria > h2{
margin: 0 0 16px;
text-align: center;
font-size: clamp(22px, 3.2vw, 34px);
font-weight: 800;
letter-spacing: 1px;
border: 3px solid #fff;
padding: 10px 14px;
display: inline-block;
width: fit-content;
}

.categoria{
text-align: center;
}
.grid-productos{
text-align: left; 
}

.grid-productos{
display: grid;
grid-template-columns: repeat(4, minmax(0, 1fr));
gap: 12px;
margin-top: 14px;
}

.producto{
background: rgba(255,255,255,0.06);
border: 2px solid rgba(255,255,255,0.75);
border-radius: 10px;
overflow: hidden;
transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

.producto:hover{
transform: translateY(-2px);
background: rgba(255,255,255,0.10);
border-color: #fff;
}

.producto > summary{
list-style: none;
cursor: pointer;
}
.producto > summary::-webkit-details-marker{
display: none;
}

.producto > summary img{
width: 100%;
height: 180px;     
object-fit: cover;  
display: block;
}

.producto[open]{
border-color: #fff;
box-shadow: 0 0 0 3px rgba(255,255,255,0.25) inset;
}

.producto .info{
padding: 12px 12px 14px;
}

.producto .info h3{
margin: 0 0 6px;
font-size: 18px;
font-weight: 800;
}

.producto .info p{
margin: 0 0 8px;
line-height: 1.35;
font-size: 14px;
opacity: 0.95;
}

.producto .info p strong{
font-weight: 900;
}

.btn-pedir{
display: inline-block;
margin-top: 6px;
padding: 10px 12px;
border-radius: 10px;
background: #0e6b57;
color: #fff;
text-decoration: none;
font-weight: 800;
letter-spacing: 0.3px;
border: 2px solid rgba(255,255,255,0.7);
transition: transform 140ms ease, background 140ms ease, border-color 140ms ease;
}

.btn-pedir:hover{
transform: translateY(-1px);
background: #12816a;
border-color: #fff;
}

@media (max-width: 1100px){
.grid-productos{
    grid-template-columns: repeat(3, minmax(0, 1fr));
}
}

@media (max-width: 780px){
.grid-productos{
    grid-template-columns: repeat(2, minmax(0, 1fr));
}
.producto > summary img{
    height: 170px;
}
}

@media (max-width: 460px){
.grid-productos{
    grid-template-columns: 1fr;
}
.producto > summary img{
    height: 200px;
}
}

/* parte de abajo footer */

.footer{
margin-top: 40px;
padding: 18px 10px;
text-align: center;
background: #111;
color: #fff;
}