/* RUT'S CATERING - MENÚ FINAL - PRECIO AL LADO DEL TÍTULO (DERECHA) */
:root {
    --ruts-negro: #000000;
    --ruts-rosa: #ff1493;
    --ruts-gris-oscuro: #1a1a1a;
    --ruts-gris-claro: #e6e6e6;
    --ruts-fondo-card: #0d0d12;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
    font-family: Inter, system-ui, sans-serif;
    background: var(--ruts-negro);
    color: white;
    min-height: 100vh;
    padding-top: 110px;
}

/* LAYOUT */
.ruts-menu-page {
    max-width: 1300px;
    margin: 0 auto;
    padding: 20px 20px 80px;
    display: flex;
    gap: 40px;
}

/* SIDEBAR - NUNCA TAPADO */
.ruts-sidebar {
    flex: 0 0 260px;
    background: rgba(255,255,255,0.03);
    border: 1px solid #333;
    border-radius: 12px;
    padding: 24px;
    position: sticky;
    top: 110px;
    z-index: 10;
    height: fit-content;
}

.ruts-sidebar h3 { font-size: 18px; color: var(--ruts-rosa); margin-bottom: 20px; font-weight: 700; }
.ruts-sidebar ul { list-style: none; }
.ruts-sidebar li { margin-bottom: 12px; }
.ruts-sidebar a { color: #ccc; text-decoration: none; font-size: 15px; display: block; padding: 6px 0; }
.ruts-sidebar a:hover, .ruts-sidebar a.active { color: var(--ruts-rosa); }

/* HEADER */
.page-header h1 { font-size: 28px; letter-spacing: 0.5px; margin-bottom: 6px; font-weight: 700; color: var(--ruts-rosa); text-align: center; }
.page-header .subtitle { color: #999; font-size: 14px; margin-bottom: 40px 0; text-align: center; }

/* GRID 3 COLUMNAS */
.product-grid {
    display: grid;
    gap: 18px;
    grid-template-columns: repeat(3, 1fr);
    margin-bottom: 50px;
}

@media (max-width: 900px) { .product-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) {
    .ruts-menu-page { flex-direction: column; }
    .ruts-sidebar { position: static; margin-bottom: 30px; }
    .product-grid { grid-template-columns: 1fr; }
}

/* CARDS COMPACTAS */
.card {
    background: var(--ruts-fondo-card);
    border: 1px solid var(--ruts-gris-claro);
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: border-color 0.3s;
}

.card:hover { border-color: var(--ruts-rosa); }

.product-image {
    width: 100%;
    aspect-ratio: 1 / 1;
    background-size: cover;
    background-position: center;
}

/* CARD BODY */
.card-body {
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* TÍTULO Y PRECIO EN LA MISMA LÍNEA - FIX PARA TÍTULOS LARGOS */
.title-price-row {
    display: flex;
    justify-content: flex-start;   /* cambia de space-between */
    align-items: flex-start;
    gap: 16px;                     /* espacio mínimo garantizado entre título y precio */
    flex-wrap: wrap;               /* permite que el título baje si no cabe */
}

.product-title {
    flex: 1;
    min-width: 0;                  /* permite que el flex item se encoja y el texto se envuelva */
    font-size: 14.5px;
    line-height: 1.2;
    color: white;
    font-weight: 600;
    margin: 0;
    word-break: break-word;        /* rompe palabras largas si es necesario */
}

.product-price {
    flex-shrink: 0;                /* el precio nunca se encoge */
    font-size: 15px;
    font-weight: 700;
    color: white;
    white-space: nowrap;
}

/* CANTIDAD + BOTÓN CON TEXTO */
.add-to-cart {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 4px;
}

.qty-input {
    width: 60px;
    padding: 6px 8px;
    border-radius: 6px;
    border: 1px solid #555;
    background: #111;
    color: white;
    text-align: center;
    font-size: 14px;
}

.btn-cart {
    flex: 1;
    background: var(--ruts-rosa);
    color: white;
    border: none;
    padding: 10px 12px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: background 0.3s;
}

.btn-cart:hover {
    background: #ff4db3;
}

/* PAGINACIÓN */
.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 40px;
}

.pagination button {
    background: transparent;
    border: 1px solid #444;
    color: #ccc;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    cursor: pointer;
}

.pagination button.active,
.pagination button:hover {
    background: var(--ruts-rosa);
    border-color: var(--ruts-rosa);
    color: white;
}

/* RESPONSIVE MÓVIL */
@media (max-width: 600px) {
    .ruts-menu-page {
        flex-direction: column;
        padding: 10px 15px 40px;
    }

    .ruts-sidebar {
        display: none;;
    }

    .product-grid {
        display: flex;
        flex-direction: column;
        gap: 12px;
    }

    .card {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        padding: 8px;
        border-radius: 8px;
    }

    .product-image {
        width: 60px;
        height: 60px;
        flex-shrink: 0;
        background-size: cover;
        background-position: center;
        border-radius: 6px;
    }

    .card-body {
        flex: 1;
        display: flex;
        flex-direction: column;
        gap: 4px;
        padding: 0;
    }

    /* En móvil también mantenemos título y precio en la misma línea con el mismo fix */
    .title-price-row {
        gap: 12px;
    }

    .product-title {
        font-size: 14px;
    }

    .product-price {
        font-size: 13px;
        font-weight: 700;
        color: var(--ruts-rosa);
    }

    .add-to-cart {
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: 6px;
        flex-shrink: 0;
    }

    .qty-input {
        width: 48px;
        padding: 4px 6px;
        font-size: 13px;
    }

    .btn-cart {
        padding: 6px 10px;
        font-size: 13px;
        border-radius: 6px;
        white-space: nowrap;
    }

    .combo-badge {
        top: 4px;
        left: 4px;
        padding: 2px 6px;
        font-size: 0.7rem;
    }
}

/* ================================================
   RUT'S FLYER SIDEBAR - Versión FINAL ajustada
   Fondo negro, letras blancas, recuadros full-width
   ================================================ */

.ruts-flyer-sidebar {
    margin-top: 32px;
    background: var(--ruts-fondo-card);     /* negro puro #0d0d12 */
    border: 1px solid #333;
    border-radius: 12px;
    overflow: hidden;
}

.flyer {
    padding: 20px 16px;                     /* solo vertical + un poco lateral para respirar */
    color: #fff;                            /* letras blancas */
    font-size: 13px;
    line-height: 1.45;
    text-align: center;
    background: var(--ruts-fondo-card);     /* negro consistente */
}

/* Título principal */
.flyer .logo-title h1 {
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: 1.2px;
    margin: 0 0 12px;
    color: var(--ruts-rosa);
    text-transform: uppercase;
}

.flyer .logo-title .highlight {
    color: var(--ruts-rosa);
}

/* Subtítulo */
.flyer .subtitle {
    font-size: 0.95rem;
    font-weight: 500;
    color: #ddd;
    margin: 0 0 16px;
}

/* Advertencia - full width */
.flyer .warning {
    background: var(--ruts-rosa);
    color: white;
    font-weight: 700;
    font-size: 0.92rem;
    padding: 8px 0;                         /* sin padding lateral */
    margin: 16px -16px;                     /* sale de borde a borde */
    width: calc(100% + 32px);               /* compensa el padding del .flyer */
    text-align: center;
}

/* Secciones - títulos full width */
.flyer .section {
    margin: 22px 0;
}

.flyer .section h2 {
    background: var(--ruts-rosa);
    color: white;
    font-size: 1rem;
    font-weight: 700;
    padding: 8px 0;
    margin: 0 -16px 12px;                   /* full width */
    width: calc(100% + 32px);
    text-transform: uppercase;
    letter-spacing: 0.6px;
    text-align: center;
}

.flyer .section ul {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: left;
}

.flyer .section li {
    margin-bottom: 8px;
    padding-left: 20px;
    position: relative;
    font-size: 13px;
}

.flyer .section li::before {
    content: "•";
    color: var(--ruts-rosa);
    position: absolute;
    left: 0;
    font-size: 1.4rem;
    line-height: 1;
}

/* Dulces y Dips - full width */
.flyer .sweet-section,
.flyer .dips-section {
    background: rgba(255,20,147,0.08);
    padding: 14px 0;                        /* solo vertical */
    margin: 20px -16px;                     /* full width */
    width: calc(100% + 32px);
    border-top: 1px solid rgba(255,20,147,0.3);
    border-bottom: 1px solid rgba(255,20,147,0.3);
}

.flyer .sweet-section h3,
.flyer .dips-section h3 {
    color: var(--ruts-rosa);
    font-size: 1.05rem;
    margin: 0 0 8px;
    font-weight: 600;
    text-align: center;
}

.flyer .sweet-section p,
.flyer .dips-section p {
    margin: 0;
    font-size: 13px;
    color: #eee;
}

/* Envíos promocional - full width */
.flyer .delivery-section {
    margin: 24px -16px 0;
    padding: 12px 0;
    width: calc(100% + 32px);
    background: rgba(255,20,147,0.08);
    border-top: 1px solid rgba(255,20,147,0.3);
}

.flyer .delivery {
    color: var(--ruts-rosa);
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0;
}

/* Responsive */
@media (max-width: 600px) {
    .flyer {
        padding: 16px 12px;
        font-size: 12.5px;
    }
    
    .flyer .logo-title h1 {
        font-size: 1.45rem;
    }
    
    .flyer .section h2 {
        font-size: 0.95rem;
    }
    
    .flyer .section li {
        font-size: 12.5px;
    }
}