/* ============================================================
   MENÚS HOME (VERSIÓN FINAL DEPURADA)
   ============================================================ */

/* Fondo global */
.menus-page {
    background: #000;
    color: #fff;
    min-height: 100vh;
}

.container-row {
    padding-top: 4.5rem !important;
    padding-bottom: 4.5rem !important;
}

/* ============================================================
   HERO
   ============================================================ */
.full-hero {
    position: relative;
    height: 100vh;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.full-hero .overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    z-index: 1;
}

.hero-center {
    position: relative;
    z-index: 2;
    text-align: center;
    color: #fff;
    max-width: 800px;
    padding: 2rem;
}

.hero-logo {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    object-fit: contain;
    background: rgba(255, 255, 255, 0.08);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.hero-title {
    font-size: 3rem;
    font-weight: 600;
    letter-spacing: 1px;
}

.hero-subtitle {
    font-size: 1.1rem;
    font-weight: 300;
    opacity: 0.85;
}

.btn-outline-light {
    border-width: 2px;
    border-radius: 999px;
    padding: 0.6rem 2rem;
    font-weight: 500;
    transition: all 0.25s ease;
}

.btn-outline-light:hover {
    background: #fff;
    color: #000;
}

/* ============================================================
   TOPBAR FIJA Y TRANSPARENTE
   ============================================================ */
.menus-topbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: transparent !important;
    backdrop-filter: none !important;
    box-shadow: none !important;
    padding: 24px 24px 0;
    pointer-events: none;
}

.menus-topbar .menus-topbar-inner {
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.menus-topbar .menus-topbar-right {
    pointer-events: auto;
}

.menus-topbar .toplink {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    margin-left: 24px;
    opacity: .95;
    transition: opacity .2s ease;
}

.menus-topbar .toplink:hover {
    opacity: 1;
    text-decoration: underline;
}

.menus-topbar .divider {
    color: rgba(255, 255, 255, .7);
    margin-left: 24px;
}

@media (max-width: 575px) {
    .menus-topbar {
        padding: 16px 16px 0;
    }

    .menus-topbar .toplink {
        margin-left: 16px;
    }

    .menus-topbar .divider {
        margin-left: 16px;
    }
}

/* Compensar ancla fija */
#menus {
    scroll-margin-top: 80px;
}

/* ============================================================
   REDES SOCIALES
   ============================================================ */
.social-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1.5px solid rgba(255, 255, 255, 0.7);
    color: #fff;
    font-size: 1.2rem;
    transition: all 0.25s ease;
    padding-top: 3px;
    padding-left: 1px;
}

.social-icon:hover {
    background: #fff;
    color: #000;
}

/* Colores por red */
.social-icon.facebook:hover {
    color: #1877f2;
}

.social-icon.instagram:hover {
    color: #e4405f;
}

.social-icon.linkedin:hover {
    color: #0a66c2;
}

.social-icon.tiktok:hover {
    color: #000;
}

.social-icon.x:hover {
    color: #000;
}

.social-icon.youtube:hover {
    color: #ff0000;
}

.social-icon.fork:hover {
    color: #9b59b6;
}

.social-icon.yelp:hover {
    color: #d32323;
}

/* ============================================================
   SLIDER DE CARTAS (ESTILO GOURMEATSAPP)
   ============================================================ */
#menus {
    padding: 0rem 2rem;
    text-align: center;
}

.menus-swiper {
    width: 100%;
    overflow: hidden;
    padding: 2rem 0 4rem;
    position: relative;
    background: transparent;
}

.menus-swiper .swiper-wrapper {
    align-items: stretch;
}

.menus-swiper .swiper-slide {
    width: auto;
    flex-shrink: 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.menu-slide {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    text-decoration: none;
    color: #fff;
    transition: transform .3s ease, opacity .3s ease;
}

.menu-slide:hover {
    transform: translateY(-6px);
    opacity: .95;
}

.menu-image {
    width: 280px;
    height: 320px;
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 4px 18px rgba(0, 0, 0, .3);
    margin-bottom: 1rem;
}

.menu-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .3s ease;
}

.menu-slide:hover .menu-image img {
    transform: scale(1.04);
}

.menu-name {
    font-size: 1.25rem;
    font-weight: 600;
    color: #fff;
    margin: 0;
}

.menu-desc {
    font-size: .95rem;
    color: rgba(255, 255, 255, .8);
    margin-top: .35rem;
    max-width: 260px;
}

/* Swiper bullets */
.menus-swiper .swiper-pagination {
    bottom: 0;
    position: relative;
    margin-top: 1.5rem;
    display: flex;
    justify-content: center;
}

.menus-swiper .swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    background: rgba(255, 255, 255, 0.6);
    opacity: 1;
    margin: 0 5px !important;
    transition: background .2s ease, transform .2s ease;
}

.menus-swiper .swiper-pagination-bullet-active {
    background: #fff;
    transform: scale(1.2);
}

@media (max-width: 767px) {
    .menu-image {
        width: 200px;
        height: 220px;
    }

    .menu-name {
        font-size: 1.05rem;
    }

    .menu-desc {
        font-size: 0.85rem;
    }
}

/* ============================================================
   FOOTER
   ============================================================ */
.menus-footer {
    background: #000;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding: 26px 16px;
}

.footer-made {
    color: #fff;
    font-weight: 600;
    letter-spacing: .2px;
    font-size: 0.90rem;
}

.footer-made .heart {
    display: inline-block;
    margin: 0 .35rem;
    transform: translateY(2px);
    color: #14b8a6;
}

.menus-footer a {
    color: #fff;
    text-decoration: none;
    border-bottom: 2px solid transparent;
    transition: border-color .2s ease, opacity .2s ease;
}

.menus-footer a:hover {
    border-color: rgba(255, 255, 255, .7);
    opacity: .95;
}

@media (max-width: 575px) {
    .footer-made {
        font-size: .98rem;
        font-weight: 600;
    }
}

/* ============================================================
   GENERAL
   ============================================================ */
html {
    scroll-behavior: smooth;
}

.menus-section-full {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: #000;
    color: #fff;
}

.menus-section-full .container-row {
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ============================================================
   RESPONSIVE ADJUSTMENTS (TABLET + MOBILE)
   ============================================================ */

/* Tablet (>=768px y <992px) */
@media (min-width: 768px) and (max-width: 991px) {
    .menu-image {
        width: 240px;
        height: 260px;
    }

    .menu-name {
        font-size: 1.15rem;
    }

    .menu-desc {
        font-size: 0.9rem;
        max-width: 240px;
    }

    .menus-swiper {
        padding: 3rem 0;
    }
}

/* Móvil (hasta 575px) */
@media (max-width: 575px) {
    .menu-image.mobile {
        width: 200px;
        height: 220px;
    }

    .menu-name {
        font-size: 1.05rem;
    }

    .menu-desc {
        font-size: 0.85rem;
        color: rgba(255, 255, 255, .8);
    }

    .menus-swiper {
        padding: 2.5rem 0 3.5rem;
    }

    .menus-swiper .swiper-pagination {
        margin-top: 0.8rem;
    }
}

.menus-swiper .swiper {
    overflow: visible !important;
    /* deja respirar los slides */
}

/* ============================================================
   TABLET FIX (centrado y sin corte del primer menú)
   ============================================================ */
@media (min-width: 768px) and (max-width: 1199px) {

    /* Ajusta alto visible total del bloque */
    #menus.menus-section-full {
        min-height: calc(100svh - var(--topbar-height, 64px));
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        padding: 0 !important;
    }

    /* Centra correctamente el swiper */
    .menus-swiper {
        width: 100%;
        max-width: 900px;
        margin: 0 auto;
        padding: 3rem 1rem 4rem;
        /* ← añade margen lateral */
    }

    /* Ajusta el ancho real de cada slide */
    .menus-swiper .swiper-slide {
        width: 260px !important;
        margin-right: 24px !important;
    }

    /* Centra el grupo de slides en el carrusel */
    .menus-swiper .swiper-wrapper {
        justify-content: flex-start;
        padding-left: 24px;
        /* ← margen interno para no cortar el 1º */
        padding-right: 24px;
        /* ← iguala visualmente los extremos */
    }

    /* Tamaños y textos */
    .menu-image {
        width: 240px;
        height: 260px;
        border-radius: 20px;
        overflow: hidden;
    }

    .menu-image img {
        object-fit: cover;
        width: 100%;
        height: 100%;
    }

    .menu-name {
        font-size: 1.15rem;
        margin-top: 0.8rem;
    }

    .menu-desc {
        font-size: 0.9rem;
        max-width: 230px;
        margin: 0.35rem auto 0;
        line-height: 1.35;
    }

    /* Bullets más abajo */
    .menus-swiper .swiper-pagination {
        margin-top: 1.5rem;
    }

    /* Footer fijo al fondo */
    .menus-footer {
        margin-top: auto;
        background: #000;
        padding: 22px 16px;
        border-top: 1px solid rgba(255, 255, 255, 0.06);
    }
}

/* ========== MOBILE: cartas más grandes y centradas ========== */
/* ============================================================
   MOBILE FIX (más altura en las cartas)
   ============================================================ */
@media (max-width: 575px) {

    /* Aumentar altura del área visible */
    .menus-swiper {
        padding: 2.5rem 0 4rem;
    }

    /* Mantener el ancho, pero más alto */
    .menu-image.mobile {
        width: 280px;
        height: 320px;
        /* antes 220px, ahora más alto */
        border-radius: 22px;
        overflow: hidden;
        box-shadow: 0 4px 18px rgba(0, 0, 0, .3);
    }

    .menu-image.mobile img {
        object-fit: cover;
        width: 100%;
        height: 100%;
    }

    /* Ajuste de texto para mantener proporción */
    .menu-name {
        font-size: 1.1rem;
        margin-top: .75rem;
    }

    .menu-desc {
        font-size: 0.9rem;
        max-width: 90%;
        margin: 0.35rem auto 0;
    }

    /* Centrar un poco más los slides */
    .menus-swiper .swiper-slide {
        width: auto;
        display: flex;
        justify-content: center;
        align-items: flex-start;
    }
}
