/* ===========================
   HERO PEQUEÑO - CARTA
=========================== */
.carta-hero {
    position: relative;
    height: 35vh;
    background-image: url('../assets/img/plato\ CEVICHE\ para\ PAGINA\ FONDO\ HD\ webP.jpg');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carta-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.55);
}

.carta-hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    color: var(--blanco);
}

.carta-hero-content h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.carta-hero-content p {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* ===========================
   NOTA DE PRECIOS
=========================== */
.nota-precios {
    background-color: #fff8ee;
    border-left: 4px solid var(--naranja);
    padding: 14px 40px;
    text-align: center;
}

.nota-precios p {
    font-size: 0.9rem;
    color: #888;
}

/* ===========================
   SECCIÓN CARTA
=========================== */
.carta-section {
    background-color: #f8f8f8;
    padding: 60px 0;
}

.carta-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 40px;
}

/* ===========================
   TABS
=========================== */
.tabs {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 40px;
    justify-content: center;
}

.tab {
    padding: 10px 24px;
    border-radius: 25px;
    border: 2px solid var(--azul);
    background-color: transparent;
    color: var(--azul);
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tab:hover {
    background-color: var(--azul);
    color: var(--blanco);
}

.tab.active {
    background-color: var(--azul);
    color: var(--blanco);
}

/* ===========================
   TAB CONTENT
=========================== */
.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: mostrarCategoria 0.22s ease;
}

@keyframes mostrarCategoria {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===========================
   CATEGORIA HERO
=========================== */
.categoria-hero {
    position: relative;
    height: 200px;
    background-size: cover;
    background-position: center;
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 32px;
    display: flex;
    align-items: flex-end;
}

.categoria-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.75), rgba(0,0,0,0.1));
}

.categoria-titulo {
    position: relative;
    z-index: 1;
    padding: 24px;
    color: var(--blanco);
}

.categoria-titulo h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.categoria-titulo p {
    font-size: 0.95rem;
    opacity: 0.85;
}

/* ===========================
   PRECIOS HEADER
=========================== */
.precios-header {
    display: grid;
    grid-template-columns: 1fr 130px 100px;
    padding: 0 20px 12px 20px;
    gap: 16px;
}

.badge-personal {
    background-color: var(--naranja);
    color: var(--blanco);
    font-size: 0.8rem;
    font-weight: 600;
    padding: 4px 14px;
    border-radius: 20px;
    text-align: center;
}

.badge-familiar {
    background-color: var(--azul);
    color: var(--blanco);
    font-size: 0.8rem;
    font-weight: 600;
    padding: 4px 14px;
    border-radius: 20px;
    text-align: center;
}

/* ===========================
   PLATOS LISTA
=========================== */
.platos-lista {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 40px;
}

.plato-row {
    display: grid;
    grid-template-columns: 1fr 130px 100px;
    align-items: center;
    gap: 16px;
    background-color: var(--blanco);
    border-radius: 12px;
    padding: 20px;
    border-left: 4px solid transparent;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.plato-row:hover {
    border-left-color: var(--naranja);
    box-shadow: 0 4px 16px rgba(0,0,0,0.10);
    transform: translateX(4px);
}

.plato-row.popular {
    border-left-color: var(--naranja);
}

.plato-row-nombre {
    font-size: 1rem;
    font-weight: 600;
    color: var(--texto-oscuro);
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.plato-row-desc {
    font-size: 0.85rem;
    color: #888;
    line-height: 1.4;
}

.badge-popular {
    background-color: #fff3e0;
    color: var(--naranja);
    font-size: 0.75rem;
    font-weight: 600;
    padding: 2px 10px;
    border-radius: 20px;
}

.precio-personal {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--naranja);
    text-align: center;
}

.precio-familiar {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--azul);
    text-align: center;
}

.sin-familiar{
    grid-template-columns: 1fr 130px;
}
/* ===========================
   BANNER WHATSAPP
=========================== */
.banner-whatsapp {
    position: relative;
    background-image: url('../assets/img/duo-marino\ WEBP.webp');
    background-size: cover;
    background-position: center;
    padding: 80px 40px;
    text-align: center;
    color: var(--blanco);
}

.banner-whatsapp::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.30);
}

.banner-whatsapp-content {
    position: relative;
    z-index: 1;
}

.banner-whatsapp h2 {
    font-size: 2rem;
    margin-bottom: 16px;
}

.banner-whatsapp p {
    font-size: 1rem;
    margin-bottom: 32px;
}

.btn-whatsapp {
    display: inline-block;
    text-decoration: none;
    background-color: #25D366;
    color: var(--blanco);
    padding: 16px 36px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
}

.btn-whatsapp:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(37, 211, 102, 0.5);
}

/* ===========================
   BOTÓN FLOTANTE WHATSAPP
=========================== */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #25D366;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    text-decoration: none;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.5);
    z-index: 999;
    transition: all 0.3s ease;
    color: var(--blanco);
}

.whatsapp-float:hover {
    transform: scale(1.1);
}




/* ===========================
    RESPONSIVE - CARTA
=========================== */
@media (max-width: 768px) {

    /* HERO CARTA */
    .carta-hero {
        height: 30vh;
        min-height: 240px;
    }

    .carta-hero-content h1 {
        font-size: 2rem;
    }

    .nota-precios {
        padding: 12px 22px;
    }

    .carta-section {
        padding: 36px 0 80px;
    }

    .carta-container {
        padding: 0 18px;
    }

    /* TABS */
    .tabs {
        position: sticky;
        top: 72px;
        z-index: 50;
        justify-content: flex-start;
        flex-wrap: nowrap;
        gap: 10px;
        overflow-x: auto;
        margin: 0 -18px 30px;
        padding: 12px 18px 14px;
        background-color: #f8f8f8;
        border-top: 1px solid rgba(1, 110, 172, 0.08);
        border-bottom: 1px solid rgba(1, 110, 172, 0.12);
        box-shadow: 0 10px 20px rgba(15, 23, 42, 0.06);
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
    }

    .tabs::-webkit-scrollbar {
        display: none;
    }

    .tab {
        flex: 0 0 auto;
        scroll-snap-align: center;
        padding: 9px 18px;
        font-size: 0.85rem;
        white-space: nowrap;
        border-width: 1px;
        background-color: var(--blanco);
    }

    .tab.active {
        box-shadow: 0 8px 18px rgba(1, 110, 172, 0.22);
    }

    /* CATEGORIA HERO */
    .categoria-hero {
        height: 155px;
        border-radius: 10px;
        margin-bottom: 22px;
    }

    .categoria-titulo h2 {
        font-size: 1.5rem;
    }

    .categoria-titulo {
        padding: 18px;
    }

    /* PLATOS - TABLA */
    .precios-header {
        display: none;
    }

    .plato-row {
        grid-template-columns: 1fr;
        align-items: stretch;
        padding: 16px;
        gap: 12px;
        border-left-width: 0;
        border-top: 3px solid transparent;
        border-radius: 10px;
    }

    .plato-row:hover {
        border-left-color: transparent;
        border-top-color: var(--naranja);
        transform: translateY(-2px);
    }

    .plato-row.popular {
        border-left-color: transparent;
        border-top-color: var(--naranja);
    }

    .plato-row-desc {
        font-size: 0.8rem;
    }

    .plato-row-nombre {
        font-size: 0.95rem;
        line-height: 1.35;
    }

    .badge-popular {
        font-size: 0.7rem;
        padding: 3px 9px;
    }

    .precio-personal,
    .precio-familiar {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: fit-content;
        min-height: 32px;
        padding: 6px 12px;
        border-radius: 999px;
        font-size: 0.85rem;
        text-align: left;
    }

    .precio-personal {
        background-color: #fff3e0;
    }

    .precio-familiar {
        background-color: #eef7ff;
    }

    .precio-familiar::before {
        content: "Familiar ";
        margin-right: 4px;
        color: var(--azul);
        font-weight: 700;
    }

    .precio-personal::before {
        content: "Personal ";
        margin-right: 4px;
        color: var(--naranja);
        font-weight: 700;
    }

    .precio-familiar:empty {
        display: none;
    }

    .precio-familiar.sin-precio {
        display: none;
    }

    #bebidas .precio-personal::before {
        content: "Precio ";
    }

    /* BANNER WHATSAPP */
    .banner-whatsapp {
        padding: 56px 24px 76px;
    }

    .banner-whatsapp h2 {
        font-size: 1.5rem;
    }

    .btn-whatsapp {
        padding: 14px 24px;
        font-size: 0.95rem;
    }

    .whatsapp-float {
        right: 18px;
        bottom: 18px;
        width: auto;
        height: 52px;
        padding: 0 18px;
        border-radius: 999px;
        gap: 10px;
        font-size: 1.45rem;
    }

    .whatsapp-float::after {
        content: "Pedir";
        font-size: 0.95rem;
        font-weight: 700;
    }

}
