@charset 'UTF-8';

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

:focus {
    outline: 2px solid rgba(0,0,0,0.1);
    outline-offset: 2px;
}

body {
        font-family: "Barlow", Sans-serif;
    line-height: 1.6;
    color: #333;
}

.t-center {
    text-align: center;
}

.arrow-open {
    position: absolute;
    width: 1em;
    height: 1em;
    display: flex;
    left: 0;
    top: 10px;
    border-radius: 50%;
    border: 2px solid #FFF;
    transform: translateY(0%);
}
.arrow-open:hover, .arrow-open.active {
    border-color: #FFED00;
}
.plato-item:not(.active) .arrow-open:hover, .plato-item:not(.active) .arrow-open.active {
    border: 2px solid #FFF;
}
.arrow-open::after {
    content: '';
    position: absolute;
    width: 18px;
    height: 2px;
    background: #FFF;
    top: 48%;
    left: 50%;
    transform: translate(-50%) rotate(90deg);
}
.arrow-open::before {
    content: '';
    position: absolute;
    width: 18px;
    height: 2px;
    background: #FFF;
    top: 48%;
    left: 50%;
    transform: translate(-50%);
}

/* Secciones de categoría */
.imagen-seccion {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 16px;
    position: relative;
    margin-bottom: 24px;
    padding-top: 50px;
	margin-left: -5px;
}

.imagen-seccion h3 {
    color: #FFED00;
    position: relative;
    font-family: "AkhandSoft", Sans-serif;
    font-size: 6rem;
    font-weight: 700;
    margin: 0;
    letter-spacing: 0.5px;
    line-height: 1.2em;
}
.descripcion-seccion {
    font-size: 3rem;
    font-weight: 900;
    color: #FFF;
    line-height: 1.2em;
    position: relative;
    padding-left: 0px;
    margin-bottom: 0;
    padding-top: 0px;
    padding-bottom: 10px;
    font-family: "AkhandSoft", Sans-serif;
}
.plato-item.active .box-close {
    display: flex;
}
.box-close {
    display: flex;
    flex-direction: column;
}
.wrap-image-plato {
    aspect-ratio: 1 / 1;
}
/* Contenedor de platos */
.container-galeria {
    margin-bottom: 48px;
}

.plato-wrapper {
    display: grid;
    /*grid-template-columns: repeat(4, 1fr);*/
    gap: 10px;
    padding: 16px 0;
}
.title-section-gen {
  scroll-margin-top: 80px;
}
/* Tarjeta de plato */
.plato-item {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.plato-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

.imagen-plato {
    width: 100%;
    aspect-ratio: 1;
    background-size: cover;
    background-position: center;
    transition: transform 0.5s ease;
}

.plato-item:hover .imagen-plato {
    transform: scale(1.05);
}

.datos-plato {
    padding: 0;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.plato-nombre {
    font-size: 3rem;
    font-weight: 300;
    color: #FFF;
    line-height: 1.2em;
    position: relative;
    padding-left: 40px;
    margin-bottom: 0;
    padding-top: 10px;
    padding-bottom: 10px;
    font-family: "AkhandSoft", Sans-serif;
}

.plato-nota {
        font-family: "Barlow", Sans-serif;
    font-size: 0.95rem;
    color: #fff;
    margin-bottom: 16px;
    line-height: 1.5;
    flex: 1;
}
.wrap-image-plato {
    overflow: hidden;
}

.box-close {
    display: none;
}
.plato-precio {
    font-family: "AkhandSoft", Sans-serif;
    font-size: 2.5rem;
    font-weight: 900;
    color: #FFF;
    margin-top: 12px;
    text-align: right;
}

/* Alérgenos */
.imagen-alergenos {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 12px 0;
    justify-content: center;
}

.imagen-alergenos img {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    transition: transform 0.2s ease;
}

.imagen-alergenos img:hover {
    transform: scale(1.15);
}

/* Popup */
.plato-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 16px;
}

.plato-popup {
    background: #fff;
    border-radius: 24px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
    padding: 32px 28px 28px;
    max-width: 450px;
    width: 90vw;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    text-align: center;
    opacity: 0;
    transform: translateY(40px);
    animation: fadeInUpPopup 0.4s ease forwards;
}

.plato-popup-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: transparent;
    border: none;
    font-size: 2rem;
    color: #666;
    cursor: pointer;
    z-index: 2;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.3s ease;
}

.plato-popup-close:hover {
    background: rgba(0,0,0,0.05);
    color: #333;
}

.plato-popup-img {
    width: 100%;
    max-height: 220px;
    object-fit: cover;
    border-radius: 16px;
    margin-bottom: 20px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.plato-popup-title {
        font-family: "Barlow", Sans-serif;
    font-size: 1.75rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: #222;
    line-height: 1.3;
}

.plato-popup-desc {
        font-family: "Barlow", Sans-serif;
    font-size: 1.1rem;
    margin-bottom: 16px;
    color: #555;
    line-height: 1.6;
}

.plato-popup-precio {
        font-family: "Barlow", Sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 20px 0 16px;
    color: #2c3e50;
    padding: 16px 0 0;
    border-top: 2px solid #f0f0f0;
}

.plato-popup-alergenos {
    margin-top: 16px;
    padding-top: 12px;
    border-top: 1px dashed #ddd;
}

.plato-popup-alergenos p {
        font-family: "Barlow", Sans-serif;
    font-size: 0.95rem;
    color: #777;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.plato-popup-alergenos img {
    width: 40px;
    height: 40px;
    margin: 0 6px;
    vertical-align: middle;
    border-radius: 8px;
    transition: transform 0.2s ease;
}

.plato-popup-alergenos img:hover {
    transform: scale(1.1);
}

/* Animaciones */
@keyframes fadeInUpPopup {
    0% {
        opacity: 0;
        transform: translateY(40px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.plato-popup-overlay.fadeout {
    animation: fadeOutPopup 0.3s ease forwards;
}

@keyframes fadeOutPopup {
    0% {
        opacity: 1;
    }
    100% {
        opacity: 0;
    }
}

/* Scroll personalizado para el popup */
.plato-popup::-webkit-scrollbar {
    width: 8px;
}

.plato-popup::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.plato-popup::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

.plato-popup::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

.box-close {
    display: none !important;
}

.lista-categorias-carta {
    margin-left: 0 !important;
    margin-bottom: 0 !important;
}

.lista-categorias-carta {
    position: fixed;
    top: 0px;
    padding-top: 10px;
    left: 0px;
    right: 0px;
    padding-left: 10px;
    padding-right: 10px;
    width: calc(100% - 20px);
    background-color: #000;
    margin-left: 0 !important;
    margin-bottom: 0 !important;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    max-width: 100vw;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    gap: 2.5rem;
    list-style: none;
    padding-bottom: 1em;
    margin-bottom: 1em;
    z-index: 2;
}

.lista-categorias-carta li {
    color: #fff;
    font-size: 20px;
    font-family: "AkhandSoft", Sans-serif;
    border-bottom: 2px solid #FFF;
    width: calc(100% / 8);
    display: flex;
    justify-content: center;
}
.lista-categorias-carta li.active {
    color: #FFED00 !important;
    font-weight: 900;
    border-bottom: 4px solid #FFED00 !important;
    font-family: 'Inter', sans-serif;
}
.lista-categorias-carta > * {
    flex: 0 0 auto;
    width: auto;
    min-width: 0;
}

#box-menus .plato-nombre {
    padding-left: 0 !important;
}

#box-menus .menu-seccion-header .plato-nombre {
    text-transform: uppercase;
    font-weight: 700;
    font-family: "AkhandSoft", Sans-serif;
    font-size: 2em;
}

/* Media Queries */
@media (max-width: 1024px) {
    .plato-wrapper {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
    
    .imagen-seccion h3 {
        font-size: 1.75rem;

    }
}

@media (max-width: 768px) {
    .plato-wrapper {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .descripcion-seccion {
        font-size: 2.5rem;
        font-weight: 900;
        color: #FFF;
        line-height: 1.2em;
        position: relative;
        padding-left: 17px;
        margin-bottom: 0;
        padding-top: 0px;
        padding-bottom: 10px;
        font-family: "AkhandSoft", Sans-serif;
    }
    
    .imagen-seccion {
        margin-bottom: 0;
    }

    .plato-item.active  .arrow-open {
        border: 2px solid #FFED00;
        transform: rotate(45deg);
    }

    .plato-item.active  .arrow-open:before {
        background: #FFED00;
    }

    .plato-item.active  .arrow-open:after {
        background: #FFED00;
    }

    .arrow-open {
        position: absolute;
        width: 1em;
        height: 1em;
        display: flex;
        left: 0;
        top: 17px;
        border-radius: 50%;
        border: 2px solid #FFF;
        transition: all 0.3s ease;
        transform: translateY(0%);
    }

    .arrow-open::before {
    content: '';
    position: absolute;
    width: 14px;
    height: 2px;
    background: #FFF;
    top: 48%;
    left: 50%;
    transform: translate(-50%);
    }

    .arrow-open::after {
        content: '';
        position: absolute;
        width: 14px;
        height: 2px;
        background: #FFF;
        top: 48%;
        left: 50%;
        transform: translate(-50%) rotate(90deg);
    }

    .plato-nota {
        margin-bottom: 0;
        margin-top: 10px;
    }
    
    .imagen-seccion h3 {
        font-size: 3rem;
        bottom: 15px;
        left: 15px;
        text-transform: uppercase;
    }
    
    .plato-nombre {
        font-size: 1.8rem;
    }
    
    .plato-popup-title {
        font-size: 1.5rem;
    }
    .arrow-open {
        font-size: 2.5rem;
    }
    .plato-precio {
        font-size: 1.8rem;
    }
    .plato-popup-desc {
        font-size: 1rem;
    }
    
    .plato-popup-precio {
        font-size: 1.3rem;
    }
    .plato-item.active .box-close {
        display: flex !important;
    }
    .plato-nota {
    font-size: 1.5rem;
    }
    .descripcion-seccion {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .plato-wrapper {
        grid-template-columns: 1fr;
        gap: 0px;
    }
    
    .datos-plato {
        padding: 0px 12px 12px;
    }
    
    .plato-popup {
        padding: 24px 20px 20px;
    }
    
    .plato-popup-alergenos img {
        width: 35px;
        height: 35px;
        margin: 0 4px;
    }
}

/* ============================================================
   Shortcode [menus] (carta de menús)
   Estilos exclusivos, no afectan a otros shortcodes.
   Requiere envolver el contenido del shortcode con la clase
   .menus-shortcode en el wrapper principal.
   ============================================================ */
.menus-shortcode .plato-nombre,
.menus-shortcode .menu-label,
.menus-shortcode .descripcion-seccion,
.menus-shortcode .plato-nota,
.menus-shortcode .datos-plato,
.menus-shortcode .plato-item {
    padding-left: 0;
}

.menus-shortcode .plato-nombre,
.menus-shortcode .plato-nombre .menu-label,
.menus-shortcode .menu-label {
    font-weight: 700;
    text-transform: uppercase;
}

@media (max-width: 768px) {
    .menus-shortcode .descripcion-seccion {
        padding-left: 0;
    }
}
.plato-nombre.menu-label {
	    font-size: 2.5rem;
        font-weight: 900;
		text-transform: uppercase;
        color: #FFF;
        line-height: 1.2em;
        position: relative;
        padding-left: 17px;
        margin-bottom: 0;
        padding-top: 0px;
        padding-bottom: 10px;
        font-family: "AkhandSoft", Sans-serif;
		padding-left: 0;
}
.plato-item.menu-item h3 {
	padding-left: 0;
}