* {
    box-sizing: border-box;
    padding: 0%;
    margin: 0%;
    text-decoration: none;
}

h1 {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    color: #f4f4f4;
}

h2 {
    font-family: 'Poppins', sans-serif;
    color: #e67e22;
    font-weight: 600;
}

h3 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
}

h4 {
    font-family: 'Montserrat', sans-serif;
    color: #27ae60;
    font-weight: 600;
}


/* =========================
   SCROLL
========================= */

html {
    scroll-padding-top: 180px;
    /* Esto hace que cualquier ancla respete el header */
    scroll-behavior: smooth;
}

/* =========================
   BODY
========================= */

body {
    font-family: 'Roboto', sans-serif;
    background-color: #f4f4f4;
    color: #333;
}

img {
    width: 90px;
    height: auto;
    border-radius: 15px 20px 20px 5px;
    object-fit: cover;
}

/* =========================
   HEADER
========================= */
.header {

    background-image: linear-gradient(rgba(0, 0, 0, 0.683),
            rgba(0, 0, 0, 0.744)),
        url(imagenes/intro.jpg);
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;

    position: sticky;
    top: 0px;
    /* En la pura parte superior */
    z-index: 1000;
    /* Asegura que pase por encima del contenido */
    padding-top: 10px;
    text-align: center;

}

.header p {
    color: #f4f4f4;
}

/* =========================
   MENÚ RESTAURANTES
========================= */

.contenedor-menu {

    margin: 10px 0px;
    padding-bottom: 10px;
    padding-top: 10px;
    display: flex;
    overflow-x: auto;
    white-space: nowrap;
    justify-content: flex-start;
    gap: 8px;

    -webkit-overflow-scrolling: touch;
}

.contenedor-menu::-webkit-scrollbar {
    display: none;
}

.menu-link {
    /* Base del diseño */
    flex: 0 0 auto;
    /* Evita que se encojan */
    font-family: 'Montserrat', sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
    color: #333;
    background-color: #f5dcca;
    /* Tu color melón original */
    padding: 10px 20px;
    border-radius: 25px;
    /* Bordes redondeados */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

/* ==========================================
   EFECTO DE SELECCIÓN (ACTIVO)
========================================== */

/* El estado "activo" usa el naranja de tus h2 */
.menu-link.activo,
.menu-link:active,
.menu-link:focus {
    background-color: #e67e22;
    color: white;
    box-shadow: 0 4px 10px rgba(230, 126, 34, 0.4);
    transform: translateY(-2px);
    /* Pequeño levante al estar seleccionado */
    outline: none;
}

/* --- contenedores de categoria ---*/

.contenedor-data {

    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    width: 90%;
    gap: 20px;
    margin: 10px 20px;

    -webkit-overflow-scrolling: touch;
}

/* Ocultar la barra de scroll si lo prefieres */
.contenedor-data::-webkit-scrollbar {
    display: none;
}


.data {
    /* Ajusta este valor a la altura real de tu header + un pequeño extra */
    scroll-margin-top: 130px;
    flex: 0 0 100%;
    width: 100%;
    scroll-snap-align: start;
    display: flex;
    flex-direction: column;
}


.categoria {
    margin: 10px 10px;
}

.categoria-titulo {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.categoria-platos {
    background-color: #ffffff;
    border-radius: 15px;
    /* Bordes más redondeados */
    padding: 10px 20px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
    /* Sombra más suave y moderna */
    margin-top: 10px;
}

.platos h4 {
    display: flex;
    justify-content: flex-end;
    color: rgb(2, 121, 81);

}