/* Menús de Grupos - Public Display Page Styles (Vanilla CSS) */
/* Converted from Tailwind CSS to maintain exact styling */

/* Custom Font */
@font-face {
    font-family: "GoudyTitling";
    src: url(fonts/goudy_titiling.ttf);
}

/* Smooth scroll behavior */
html {
    scroll-behavior: smooth;
}

/* Main Container */
.wrappermenugrupos {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px 0;
    overflow-x: hidden;
    /* Prevent horizontal scroll */
}

.containermenugrupos {
    width: 100%;
    max-width: 1200px;
    padding: 0 20px;
}

.containermenugrupos h1 {
    font-family: "GoudyTitling";
    color: #44996c;
    font-size: 45px;
    text-align: center;
    margin-bottom: 20px;
}

.containermenugrupos h3 {
    font-family: "GoudyTitling";
    color: black;
    font-size: 20px;
    text-align: center;
    margin-bottom: 10px;
    margin-right: 10px;
    margin-left: 10px;
}

/* Menus Container */
.menus-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    padding: 0 16px;
    gap: 20px;
    /* Additional spacing between menu cards */
}

/* Menu Card */
.menu-card {
    background-color: #f4f4f5;
    /* bg-zinc-100 */
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    /* shadow-xl */
    border-radius: 8px;
    /* rounded-lg */
    padding: 24px 16px 32px 16px;
    /* px-4 pt-6 pb-8 */
    margin-bottom: 16px;
    /* mb-4 */
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    overflow: hidden;
    /* Prevent decorative images from causing horizontal scroll */
}

/* Decorative Images */
.menu-card .decorative-img-top-left {
    position: absolute;
    top: -40px;
    /* -top-10 */
    left: -32px;
    /* -left-8 */
    width: 200px;
    height: auto;
    z-index: 2;
}

.menu-card .decorative-img-top-left img {
    width: 100%;
    height: 100%;
}

.menu-card .decorative-img-bottom-right {
    position: absolute;
    bottom: -2px;
    /* -bottom-0.5 */
    right: -4px;
    /* -right-1 */
    width: 135px;
    height: auto;
    z-index: 2;
}

.menu-card .decorative-img-bottom-right img {
    width: 100%;
    height: 100%;
}

.menu-card .decorative-img-bottom-left {
    position: absolute;
    bottom: -4px;
    /* -bottom-1 */
    left: -24px;
    /* -left-6 */
    width: 150px;
    height: auto;
    z-index: 2;
}

.menu-card .decorative-img-bottom-left img {
    width: 100%;
    height: 100%;
}

/* Menu Title */
.titulomenugrupos {
    font-family: "GoudyTitling";
    color: #44996c;
    font-size: 30px;
    text-align: center;
    margin-bottom: 10px;
    margin-top: 10px;
}

/* Subtitle */
.menu-subtitle {
    font-family: sans-serif;
    font-size: 0.875rem;
    /* text-sm */
    padding-bottom: 12px;
    /* pb-3 */
    text-align: center;
    color: #6b7280;
}

/* Section Container */
.menu-section {
    display: flex;
    flex-direction: column;
    text-align: center;
    margin-bottom: 16px;
    /* mb-4 */
    align-items: center;
    width: 100%;
    z-index: 3;
}

/* Section Title */
.tituloplatomenugrupos {
    font-family: "GoudyTitling";
    font-size: 1.125rem;
    /* text-lg */
    font-weight: 600;
    /* font-semibold */
    color: #374151;
    /* text-gray-700 */
    margin-bottom: 8px;
}

.tituloplatomenugrupos.price-title {
    font-size: 1.5rem;
    /* text-2xl */
    color: #44996c;
    /* text-[#44996c] */
    margin-bottom: 0;
}

.tituloplatomenugrupos.small-text {
    font-size: 0.75rem;
    /* text-[12px] */
}

/* Section Divider */
.section-divider {
    background-color: #94a3b8;
    /* bg-slate-400 */
    height: 1px;
    width: 40%;
    margin-top: 4px;
    /* mt-1 */
}

/* Section Content */
.section-content {
    display: flex;
    flex-direction: column;
    text-align: center;
    margin-bottom: 16px;
    /* mb-4 */
    align-items: center;
    width: 100%;
    max-width: 75%;
}

/* Entrantes and Postres List */
.entrantes-list,
.postres-list,
.principales-list {
    list-style: none;
    margin: 0;
    padding: 0;
    width: fit-content;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.entrantes-list li,
.postres-list li,
.principales-list li {
    text-align: center;
    font-size: 14px;
    font-family: sans-serif;
    padding-bottom: 8px;
    color: #1f2937;
    width: fit-content;
}

.entrantes-list li:first-child,
.postres-list li:first-child,
.principales-list li:first-child {
    padding-top: 12px;
}

/* Text Items */
.textoplatos {
    /* Custom class - keep as is from existing CSS */
    text-align: center;
    font-size: 18px;
    font-family: sans-serif;
    padding-bottom: 8px;
    /* pb-2 */
    padding-top: 12px;
    /* pt-3 */
    color: #1f2937;
}

.textoplatos.no-top-padding {
    padding-top: 0;
}

.textoplatos.small-text {
    font-size: 16px;
}

.textoplatos.tight-spacing {
    padding-bottom: 4px;
    /* pb-1 */
    padding-top: 0;
}

/* Principales List */
/* .principales-list {
    list-style: none;
    margin: 0;
    padding: 0;
    width: fit-content;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.principales-list li {
    text-align: left;
    font-size: 15px;
    font-family: sans-serif;
    padding-bottom: 8px;
    color: #1f2937;
    position: relative;
    padding-left: 20px;
    width: fit-content;
} */

/* .principales-list li:first-child {
    padding-top: 12px;
} */

/* .principales-list li::before {
    content: "•";
    position: absolute;
    left: 5px;
    color: #44996c;
    font-size: 18px;
    font-weight: bold;
} */

/* Cafe Section */
.cafe-section {
    display: flex;
    flex-direction: column;
    text-align: center;
    margin-bottom: 16px;
    /* mb-4 */
    align-items: center;
    width: 50%;
}

/* Loading State */
.loading-container {
    text-align: center;
    padding: 60px 20px;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #e5e7eb;
    border-top-color: #3b82f6;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.loading-text {
    font-size: 1.125rem;
    color: #6b7280;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 80px 20px;
}

.empty-state-icon {
    font-size: 4rem;
    margin-bottom: 20px;
    opacity: 0.3;
}

.empty-state-text {
    font-size: 1.25rem;
    color: #6b7280;
}

/* Responsive Design */
/* Tablet and larger screens (768px - 1024px) */
@media (max-width: 1024px) {
    .containermenugrupos h1 {
        font-size: 38px;
    }

    .containermenugrupos h3 {
        font-size: 18px;
    }

    .titulomenugrupos {
        font-size: 26px;
    }

    .tituloplatomenugrupos {
        font-size: 1.05rem;
    }

    .textoplatos {
        font-size: 14.5px;
    }
}

/* Tablet (768px - 1023px) */
@media (max-width: 768px) {
    .containermenugrupos h1 {
        font-size: 32px;
    }

    .containermenugrupos h3 {
        font-size: 16px;
    }

    .menu-card {
        padding: 20px 12px 28px 12px;
    }

    .titulomenugrupos {
        font-size: 24px;
    }

    .tituloplatomenugrupos {
        font-size: 1rem;
    }

    .tituloplatomenugrupos.price-title {
        font-size: 1.4rem;
    }

    .textoplatos {
        font-size: 14px;
    }

    /* .principales-list li {
        font-size: 14px;
    } */

    .menu-subtitle {
        font-size: 0.8rem;
    }

    .menu-card .decorative-img-top-left {
        width: 150px;
        top: -30px;
        left: -20px;
    }

    .menu-card .decorative-img-bottom-right {
        width: 100px;
    }

    .menu-card .decorative-img-bottom-left {
        width: 120px;
        left: -20px;
    }

    .cafe-section {
        width: 70%;
    }
}

/* Mobile landscape (481px - 767px) */
@media (max-width: 640px) {
    .containermenugrupos h1 {
        font-size: 28px;
    }

    .containermenugrupos h3 {
        font-size: 15px;
    }

    .titulomenugrupos {
        font-size: 22px;
    }

    .tituloplatomenugrupos {
        font-size: 0.95rem;
    }

    .tituloplatomenugrupos.price-title {
        font-size: 1.3rem;
    }

    .textoplatos {
        font-size: 13.5px;
    }

    /* .principales-list li {
        font-size: 13.5px;
    } */
}

/* Mobile portrait (320px - 480px) */
@media (max-width: 480px) {
    .containermenugrupos h1 {
        font-size: 24px;
        margin-bottom: 15px;
    }

    .containermenugrupos h3 {
        font-size: 14px;
        margin-bottom: 8px;
    }

    .menus-container {
        padding: 0;
    }

    .menu-card {
        padding: 16px 8px 24px 8px;
    }

    .titulomenugrupos {
        font-size: 20px;
    }

    .tituloplatomenugrupos {
        font-size: 0.9rem;
    }

    .tituloplatomenugrupos.price-title {
        font-size: 1.25rem;
    }

    .tituloplatomenugrupos.small-text {
        font-size: 0.7rem;
    }

    .textoplatos {
        font-size: 13px;
        padding-bottom: 6px;
        padding-top: 10px;
    }

    .textoplatos.small-text {
        font-size: 12px;
    }

    /* .principales-list li {
        font-size: 13px;
    } */

    .menu-subtitle {
        font-size: 0.75rem;
    }

    .menu-card .decorative-img-top-left {
        width: 100px;
        top: -9px;
        left: -4px;
    }

    .menu-card .decorative-img-bottom-right {
        width: 80px;
    }

    .menu-card .decorative-img-bottom-left {
        width: 90px;
        left: -10px;
    }

    .section-divider {
        width: 60%;
    }

    .cafe-section {
        width: 90%;
    }
}

/* Small mobile (max 375px) */
@media (max-width: 375px) {
    .containermenugrupos h1 {
        font-size: 22px;
    }

    .containermenugrupos h3 {
        font-size: 13px;
    }

    .titulomenugrupos {
        font-size: 18px;
    }

    .tituloplatomenugrupos {
        font-size: 0.85rem;
    }

    .tituloplatomenugrupos.price-title {
        font-size: 1.15rem;
    }

    .textoplatos {
        font-size: 12px;
    }

    /* .principales-list li {
        font-size: 12px;
    } */
}