body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    background: #f4f4f4;
}

/* HEADER */
header {
    background: #c40000;
    color: white;
    padding: 20px;
    text-align: center;
}

/* NAV */
nav {
    background: #222;
    text-align: center;
}

nav a {
    color: white;
    padding: 15px;
    display: inline-block;
    text-decoration: none;
}

nav a:hover {
    background: #c40000;
}

/* HERO */
.hero {
    background: url("img/portada.png") center/cover;
    height: 400px;
    border-radius: 6px;
    margin-top: 20px;
}

/* CONTENIDO */
.container {
    max-width: 1100px;
    margin: auto;
    padding: 20px;
}

/* Categorías desplegables */
.categoria {
    margin-bottom: 30px;
}

.categoria-btn {
    background: none;
    border: none;
    color: #c40000;
    font-size: 22px;
    font-weight: bold;
    cursor: pointer;
    border-bottom: 2px solid #c40000;
    padding: 8px 0;
    width: 100%;
    text-align: left;
    transition: color 0.3s;
}

.categoria-btn:hover {
    color: #ff6666;
}

.categoria-btn::after {
    content: "▼";
    float: right;
    transition: transform 0.3s;
}

.categoria-btn.active::after {
    transform: rotate(180deg);
}

.categoria .menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease, padding 0.3s ease;
    padding: 0 0;
}

.categoria .menu.open {
    padding: 15px 0;
}

/* Menú de platos */

.menu {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

/* Tablet */

@media (max-width: 900px) {

    .menu {
        grid-template-columns: repeat(2, 1fr);
    }

}

/* Móvil */

@media (max-width: 500px) {

    .menu {
        grid-template-columns: 1fr;
    }

    nav a {
        display: block;
        border-top: 1px solid #444;
    }

    .hero {
        height: 250px;
    }

}

.plato {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
}

.plato:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

.plato img {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

.plato h4 {
    margin: 10px;
}

.plato p {
    margin: 0 10px 10px 10px;
}

/* FOOTER */
footer {
    background: #222;
    color: white;
    text-align: center;
    padding: 20px;
    margin-top: 40px;
}

/* Tamaño normal ordenador */

header h1{
font-size:32px;
}

/* Tablet */

@media (max-width:768px){

header h1{
font-size:24px;
}

}

/* Móvil */

@media (max-width:480px){

header h1{
font-size:20px;
}

header p{
font-size:14px;
}

}