body {
    background-color: white;
    margin: 0;
    padding: 0;
    font-family: 'Amatic SC', cursive;
    color: #222;
    font-size: 2.2rem;
    -webkit-text-size-adjust: 130%;
}

.fondo-fijo {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-image: url('fondo-carta.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: -1;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

.container {
    max-width: 800px;
    margin: auto;
    padding: 2rem;
    box-sizing: border-box;
}

.cabecera {
    display: none;
}

.alergenos {
    text-align: center;
    font-size: 1.8rem;
    color: #222;
    margin-bottom: 2rem;
}

.leyenda-alergenos {
    margin-top: 4rem;
    background-color: rgba(255,255,255,0.85);
    padding: 2rem;
    border-radius: 10px;
    font-size: 2rem;
    color: #222;
}

.leyenda-alergenos ul {
    list-style: none;
    padding-left: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 1.2rem;
}

.leyenda-alergenos li {
    background: #f4f4f4;
    padding: 0.6rem 1.2rem;
    border-radius: 6px;
    box-shadow: 1px 1px 3px rgba(0,0,0,0.1);
}

.icono-alergeno {
  height: 2.25em;
  width: auto;
  vertical-align: middle;
  margin-left: 0.2em;
}

h1 {
    text-align: center;
    font-size: 6rem;
    margin-bottom: 1rem;
}
h2 {
    text-align: center;
    font-size: 3.6rem;
    margin-bottom: 3rem;
}

details {
    margin-bottom: 2rem;
    padding: 0;
}

summary {
    font-size: 3.6rem;
    font-weight: bold;
    cursor: pointer;
    outline: none;
    position: relative;
    padding-left: 2.8rem;
    margin-bottom: 1.2rem;
    list-style: none;
}

summary::-webkit-details-marker {
    display: none;
}

summary::before {
    content: "+";
    position: absolute;
    left: 0;
    top: 0;
    font-size: 4.2rem;
    line-height: 1.2;
}
details[open] > summary::before {
    content: "−";
}

ul {
    list-style: none;
    padding-left: 1.5rem;
    margin-top: 1rem;
}

li {
    margin-bottom: 1.5rem;
    line-height: 2;
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    font-size: 2.4rem;
}

.nombre-precio {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    width: 100%;
    gap: 1rem;
}

.nombre {
    flex: 1 1 60%;
}

.precio {
    background-color: rgba(255, 255, 255, 0.85);
    padding: 0.3rem 0.8rem;
    border-radius: 0.6rem;
    color: #000;
    font-weight: bold;
    font-size: 2.2rem;
    white-space: nowrap;
    align-self: flex-start;
    margin-left: auto;
}

.detalle-vino {
    background-color: rgba(255, 255, 255, 0.7);
    padding: 0.8rem;
    border-radius: 0.6rem;
    margin-top: 0.5rem;
}

.detalle-vino small {
    display: block;
    font-size: 1.8rem;
    color: #222;
    margin-top: 0.1rem;
    line-height: 1.3;
}

small {
    font-size: 1.9em;
    color: #222;
}

li::after {
    content: "";
    display: block;
    width: 100%;
    border-bottom: 2px dashed rgba(0, 0, 0, 0.2);
    margin-top: 1rem;
    margin-bottom: 0.5rem;
}

li:last-child::after {
    border: 2px solid gray;
}

.fondo-difuminado {
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    background-color: rgba(255, 255, 255, 0.3);
    padding: 2rem;
    border-radius: 12px;
    margin: 2rem auto;
    max-width: 800px;
}

@media screen and (max-width: 500px) {
    html, body {
        width: 100%;
        overflow-x: hidden;
    }

    body {
        font-size: 3.6rem;
    }

    h1 {
        font-size: 6rem;
        margin-bottom: 1rem;
    }

    h2 {
        font-size: 4.8rem;
        margin-bottom: 2rem;
    }

    summary {
        font-size: 4.8rem;
    }

    li {
        flex-direction: column;
        align-items: flex-start;
        font-size: 3.6rem;
        margin-bottom: 1.2rem;
    }

    .precio {
        align-self: flex-end;
        margin-top: 0.4rem;
    }

    .container {
        padding: 1.2rem;
    }
}