/* CARTA — extraido de cartas/index.php el 20-08-2026 */

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: var(--font-family);
    background: #f8f9fa;
    overflow-x: hidden;
}

/* Header del restaurante mejorado */
.restaurant-header {
    background: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
}

.header-content {
    display: flex;
    align-items: center;
    padding: 2rem;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.restaurant-photo {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    object-fit: cover;
    border: 6px solid var(--primary-color);
    flex-shrink: 0;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.restaurant-info {
    flex: 1;
}

.restaurant-name {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary-color);
    margin: 0 0 0.5rem 0;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-family: var(--font-family);
}

.restaurant-description {
    color: #6b7280;
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}


/* Menú del día destacado */
.menu-del-dia-card {
    background: linear-gradient(135deg, var(--success-color), #059669);
    color: white;
    border-radius: 16px;
    padding: 2rem;
    margin: 2rem auto;
    max-width: 1200px;
    width: 90%;
    text-align: center;
    box-shadow: 0 8px 25px rgba(22, 163, 74, 0.3);
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
    display: block;
}

.menu-del-dia-card:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="20" r="2" fill="rgba(255,255,255,0.1)"/><circle cx="80" cy="40" r="1.5" fill="rgba(255,255,255,0.1)"/><circle cx="40" cy="80" r="1" fill="rgba(255,255,255,0.1)"/></svg>');
    pointer-events: none;
}

.menu-del-dia-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 35px rgba(22, 163, 74, 0.4);
}

.menu-del-dia-title {
    font-size: 2rem;
    font-weight: 800;
    margin: 0 0 0.5rem 0;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    position: relative;
    z-index: 1;
}

.menu-del-dia-badge {
    background: rgba(255,255,255,0.2);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    margin-bottom: 1rem;
    display: inline-block;
    position: relative;
    z-index: 1;
}

.menu-del-dia-precio {
    font-size: 2.5rem;
    font-weight: 800;
    margin: 1rem 0;
    position: relative;
    z-index: 1;
}

.menu-del-dia-cta {
    background: rgba(255,255,255,0.2);
    border: 2px solid rgba(255,255,255,0.3);
    color: white;
    padding: 0.75rem 2rem;
    border-radius: 25px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    margin-top: 1rem;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

.menu-del-dia-cta:hover {
    background: rgba(255,255,255,0.3);
    border-color: rgba(255,255,255,0.5);
}

/* Banner publicitario */
.banner-publicitario {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 2rem;
}

.banner-content {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.banner-content:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.banner-image {
    width: 100%;
    max-height: 300px;
    object-fit: cover;
    display: block;
}

.banner-label {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0,0,0,0.7);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    text-transform: uppercase;
}

/* Vista principal de familias */
.families-view {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.families-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.family-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.family-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.family-image {
    width: 100%;
    height: 180px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: white;
}

.family-content {
    padding: 1.5rem;
    text-align: center;
}

.family-name {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    font-family: var(--font-family);
}

.family-count {
    color: #6b7280;
    font-size: 0.9rem;
}

/* Vista de platos */
.dishes-view {
    display: none;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0;
    position: relative;
}

/* Contenedor de header fijo */
.fixed-header-wrapper {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/* Header compacto para vista de platos */
.compact-header {
    background: var(--primary-color);
    color: white;
    position: relative;
    z-index: 101;
}

.compact-header-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    max-width: 1200px;
    margin: 0 auto;
}

.compact-section-title {
    background: rgba(255,255,255,0.1);
    padding: 0.75rem 1rem;
    text-align: center;
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 0;
    border-top: 1px solid rgba(255,255,255,0.2);
}

/* Botón de filtros */
.filter-button {
    background: linear-gradient(135deg, rgba(255,255,255,0.25), rgba(255,255,255,0.15));
    color: white;
    border: 2px solid rgba(255,255,255,0.4);
    padding: 1rem 2rem;
    border-radius: 12px;
    cursor: pointer;
    margin-left: auto;
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-family: var(--font-family);
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    position: relative;
    overflow: hidden;
}

.filter-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.filter-button:hover::before {
    left: 100%;
}

.filter-button:hover {
    background: linear-gradient(135deg, rgba(255,255,255,0.35), rgba(255,255,255,0.25));
    border-color: rgba(255,255,255,0.6);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

.filter-button:active {
    transform: translateY(0);
    box-shadow: 0 3px 10px rgba(0,0,0,0.2);
}

/* Modal de filtros */
.filter-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 3000;
    padding: 2rem;
}

.filter-content {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    max-width: 400px;
    width: 100%;
}

.filter-options {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin: 1rem 0;
}

.filter-option {
    display: flex;
    align-items: center;
    padding: 0.75rem;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-option:hover {
    border-color: var(--primary-color);
}

.filter-option.active {
    border-color: var(--primary-color);
    background: #f0f9ff;
}

.filter-option input {
    margin-right: 0.75rem;
}

.filter-icon {
    width: 24px;
    height: 24px;
    margin-right: 0.75rem;
}

.dietary-icons {
    display: flex;
    gap: 0.3rem;
    margin-bottom: 0.5rem;
    flex-wrap: wrap;
}

.dietary-icon {
    width: 18px;
    height: 18px;
}


.back-button {
    background: linear-gradient(135deg, rgba(255,255,255,0.25), rgba(255,255,255,0.15));
    color: white;
    border: 2px solid rgba(255,255,255,0.4);
    padding: 1rem 2rem;
    border-radius: 12px;
    cursor: pointer;
    margin-right: 1rem;
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-family: var(--font-family);
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    position: relative;
    overflow: hidden;
}

.back-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.back-button:hover::before {
    left: 100%;
}

.back-button:hover {
    background: linear-gradient(135deg, rgba(255,255,255,0.35), rgba(255,255,255,0.25));
    border-color: rgba(255,255,255,0.6);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

.back-button:active {
    transform: translateY(0);
    box-shadow: 0 3px 10px rgba(0,0,0,0.2);
}

.section-title {
    font-size: 2rem;
    color: var(--primary-color);
    margin: 0;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-family: var(--font-family);
}

.dishes-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    padding: 1rem;
}

.dish-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.2s ease;
    display: flex;
    flex-direction: column;
}

.dish-card:hover {
    transform: translateY(-2px);
}

.dish-image {
    width: 100%;
    height: 120px;
    object-fit: cover;
    background: #f3f4f6;
}

.dish-content {
    padding: 1rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.dish-info {
    margin-bottom: 1rem;
}

.dish-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 0.3rem;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    font-family: var(--font-family);
    line-height: 1.2;
}

.dish-prices {
    margin-bottom: 1rem;
}

.price-tag {
    display: inline-block;
    background: var(--primary-color);
    color: white;
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-right: 0.4rem;
    margin-bottom: 0.3rem;
    text-transform: uppercase;
    letter-spacing: 0.01em;
    font-family: var(--font-family);
}

.dish-allergens {
    display: flex;
    gap: 0.3rem;
    margin-bottom: 0.5rem;
    flex-wrap: wrap;
}

.allergen-icon {
    width: 18px;
    height: 18px;
}

.add-to-order-btn {
    width: 100%;
    background: var(--success-color);
    color: white;
    border: none;
    padding: 0.6rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    font-family: var(--font-family);
    font-size: 0.85rem;
}

.add-to-order-btn:hover {
    background: #059669;
}

/* Botones de formato en modal de selección */
.format-option-btn {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 1rem 1.25rem !important;
    background: #f9fafb !important;
    border: 2px solid #e5e7eb !important;
    border-radius: 12px !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    font-family: inherit !important;
    font-size: 1rem !important;
}

.format-option-btn:hover {
    background: #f3f4f6 !important;
    border-color: var(--primary-color) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1) !important;
}

/* Contenedores de formato con botón AÑADIR */
.format-item {
    display: flex !important;
    align-items: center !important;
    gap: 1rem !important;
    padding: 0.75rem !important;
    background: #f9fafb !important;
    border: 2px solid #e5e7eb !important;
    border-radius: 12px !important;
    transition: all 0.3s ease !important;
}

.format-item:hover {
    background: #f3f4f6 !important;
    border-color: #d1d5db !important;
}

.format-add-btn {
    background: var(--success-color) !important;
    color: white !important;
    border: none !important;
    padding: 0.5rem 1rem !important;
    border-radius: 8px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    text-transform: uppercase !important;
    letter-spacing: 0.02em !important;
    font-size: 0.8rem !important;
    min-width: 70px !important;
    transition: all 0.3s ease !important;
    font-family: var(--font-family) !important;
}

.format-add-btn:hover {
    background: #059669 !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3) !important;
}

/* Breadcrumb responsive */
.breadcrumb-container {
    background: rgba(255,255,255,0.95);
    border-bottom: 1px solid #e5e7eb;
    padding: 0.75rem 1rem;
    backdrop-filter: blur(10px);
    position: relative;
    z-index: 99;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: #6b7280;
    max-width: 1200px;
    margin: 0 auto;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.breadcrumb::-webkit-scrollbar {
    display: none;
}

.breadcrumb-item {
    display: flex;
    align-items: center;
    white-space: nowrap;
    flex-shrink: 0;
}

.breadcrumb-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
    font-size: 0.9rem;
}

.breadcrumb-link:hover {
    background: rgba(21, 85, 74, 0.1);
    color: var(--secondary-color);
    transform: translateY(-1px);
}

.breadcrumb-separator {
    margin: 0 0.25rem;
    color: #d1d5db;
    font-weight: 300;
    flex-shrink: 0;
}

.breadcrumb-current {
    color: var(--dark-color);
    font-weight: 600;
    font-size: 0.9rem;
}

/* Estilos mejorados para etiquetas de características */
.dietary-label,
.allergen-label {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 500;
    white-space: nowrap;
}

.dietary-label {
    background: #d1fae5;
    border: 1px solid #a7f3d0;
    color: #059669;
}

.allergen-label {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #dc2626;
}

/* Responsive para breadcrumb */
@media (max-width: 768px) {
    /* Header fijo responsivo */
    .fixed-header-wrapper {
        position: sticky;
        top: 0;
        z-index: 1000;
    }
    
    .breadcrumb-container {
        padding: 0.5rem 0.75rem;
    }
    
    .breadcrumb {
        font-size: 0.85rem;
        gap: 0.25rem;
    }
    
    .breadcrumb-link {
        padding: 0.2rem 0.4rem;
        font-size: 0.85rem;
    }
    
    .breadcrumb-current {
        font-size: 0.85rem;
    }
    
    .breadcrumb-separator {
        margin: 0 0.1rem;
    }
}

@media (max-width: 480px) {
    /* Header fijo para móviles pequeños */
    .fixed-header-wrapper {
        position: sticky;
        top: 0;
        z-index: 1000;
        box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    }
    
    .breadcrumb-container {
        padding: 0.4rem 0.5rem;
    }
    
    .breadcrumb {
        font-size: 0.8rem;
    }
    
    .breadcrumb-link {
        font-size: 0.8rem;
        padding: 0.15rem 0.3rem;
    }
    
    .breadcrumb-current {
        font-size: 0.8rem;
    }
    
}

/* Carrito flotante */
.order-cart {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: var(--primary-color);
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 50px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
    cursor: pointer;
    z-index: 1000;
    display: none;
}

.cart-count {
    background: white;
    color: var(--primary-color);
    border-radius: 50%;
    width: 25px;
    height: 25px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin-left: 0.5rem;
}

/* Modal del carrito */
.cart-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 1rem;
    overflow-y: auto;
}

.cart-content {
    background: white;
    border-radius: 16px;
    max-width: 500px;
    width: 100%;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    position: relative;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    margin: auto;
}

.cart-header {
    padding: 1.5rem;
    background: var(--primary-color);
    color: white;
    border-radius: 16px 16px 0 0;
    text-align: center;
    position: relative;
    flex-shrink: 0;
}

.cart-title {
    font-size: 1.5rem;
    font-weight: 800;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.cart-body {
    padding: 1.5rem;
    overflow-y: auto;
    flex: 1;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    padding: 1rem;
    background: #f9fafb;
    border-radius: 12px;
    margin-bottom: 1rem;
    gap: 1rem;
}

.cart-item-info {
    flex: 1;
}

.cart-item-name {
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 0.25rem;
}

.cart-item-price {
    font-size: 0.9rem;
    color: #6b7280;
}

.cart-item-quantity {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}

.cart-item-total {
    font-weight: 700;
    color: var(--primary-color);
    min-width: 60px;
    text-align: right;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-shrink: 0;
}

.quantity-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-weight: bold;
}

.cart-total {
    background: var(--primary-color);
    color: white;
    padding: 1.5rem;
    border-radius: 0 0 16px 16px;
    text-align: center;
    flex-shrink: 0;
}

.per-person-calculator {
    background: rgba(255,255,255,0.1);
    padding: 1rem;
    border-radius: 8px;
    margin-top: 1rem;
}

.per-person-input {
    background: rgba(255,255,255,0.2);
    border: 1px solid rgba(255,255,255,0.3);
    color: white;
    padding: 0.5rem;
    border-radius: 6px;
    width: 80px;
    text-align: center;
    margin: 0 0.5rem;
}

.per-person-input::placeholder {
    color: rgba(255,255,255,0.7);
}

/* Modal popup */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    padding: 1rem;
}

.modal-content {
    background: white;
    border-radius: 16px;
    max-width: 500px;
    width: 100%;
    max-height: 85vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.modal-header {
    padding: 1.5rem 1.5rem 1rem 1.5rem;
    border-bottom: 1px solid #e5e7eb;
    position: relative;
}

.modal-body {
    padding: 1.5rem;
}

.close-modal {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    background: rgba(255, 255, 255, 0.95);
    border: none;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    font-size: 1.6rem;
    cursor: pointer;
    color: #374151;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    font-weight: bold;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0,0,0,0.15);
}

.close-modal:hover {
    background: white;
    color: #111827;
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(0,0,0,0.25);
}

.allergen-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem;
    background: #f9fafb;
    border-radius: 8px;
    margin-bottom: 0.5rem;
}

.allergen-name {
    font-size: 0.9rem;
    font-weight: 500;
    color: #374151;
}

/* RESPONSIVE DESIGN COMPLETO PARA CARTA PÚBLICA */

/* Tablet Large (1200px+) */
@media (min-width: 1200px) {
    .families-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 2rem;
    }
    
    .dishes-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
    }
}

/* Tablet Portrait (768px - 1199px) */
@media (max-width: 1199px) and (min-width: 768px) {
    .header-content {
        padding: 2rem 1.5rem;
        gap: 1.5rem;
    }
    
    .restaurant-photo {
        width: 140px;
        height: 140px;
    }
    
    .restaurant-name {
        font-size: 2.2rem;
    }
    
    .families-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
        padding: 0 1rem;
    }
    
    .dishes-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .dish-image {
        width: 120px;
        height: 120px;
        flex-shrink: 0;
    }
}

/* Mobile Large y Tablet Small (576px - 767px) */
@media (max-width: 767px) {
    /* Header responsive */
    .header-content {
        flex-direction: column;
        text-align: center;
        padding: 1.5rem 1rem;
        gap: 1rem;
    }
    
    .restaurant-photo {
        width: 120px;
        height: 120px;
        margin: 0 auto;
    }
    
    .restaurant-name {
        font-size: 1.6rem;
        line-height: 1.2;
        margin-bottom: 0.5rem;
    }
    
    .restaurant-description {
        font-size: 0.9rem;
        line-height: 1.4;
        margin-bottom: 1rem;
    }
    
    /* Redes sociales responsive */
    .header-social-section p {
        font-size: 0.75rem;
        margin-bottom: 0.6rem;
    }
    
    .header-social-links {
        justify-content: center;
        gap: 8px;
    }
    
    .social-icon-btn {
        padding: 6px 10px !important;
        font-size: 11px !important;
    }
    
    /* Grid responsive */
    .families-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 0 1rem;
    }
    
    .families-view {
        padding: 0;
    }
    
    .family-card {
        margin-bottom: 0;
        padding: 1rem;
    }
    
    .family-card h2 {
        font-size: 1.1rem;
        margin-bottom: 0.5rem;
    }
    
    /* Vista de platos móvil optimizada */
    .dishes-grid {
        padding: 0.5rem;
        gap: 0.8rem;
        grid-template-columns: 1fr;
    }
    
    .dish-card {
        flex-direction: column;
        align-items: stretch;
        padding: 0;
        border-radius: 12px;
        overflow: hidden;
    }
    
    .dish-image {
        width: 100%;
        height: 140px;
        object-fit: cover;
    }
    
    .dish-content {
        padding: 1rem;
    }
    
    .dish-name {
        font-size: 1rem;
        margin-bottom: 0.5rem;
        line-height: 1.3;
    }
    
    .dish-description {
        font-size: 0.85rem;
        line-height: 1.4;
        margin-bottom: 0.8rem;
    }
    
    .dish-prices {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .price-item {
        justify-content: space-between;
        padding: 0.5rem 0;
        border-bottom: 1px solid #f0f0f0;
    }
    
    .price-item:last-child {
        border-bottom: none;
    }
    
    /* Botones responsive */
    .compact-header-actions {
        padding: 0.75rem 1rem;
        gap: 0.5rem;
        flex-wrap: nowrap;
    }
    
    .compact-section-title {
        font-size: 1rem;
        padding: 0.8rem 1rem;
    }
    
    .back-button {
        padding: 0.75rem 1.25rem;
        font-size: 0.85rem;
        margin-right: 0.5rem;
        border-radius: 10px;
        gap: 0.4rem;
        white-space: nowrap;
        flex-shrink: 0;
    }
    
    .filter-button {
        padding: 0.75rem 1.25rem;
        font-size: 0.85rem;
        border-radius: 10px;
        gap: 0.4rem;
        white-space: nowrap;
        flex-shrink: 0;
    }
    
    /* Menú del día responsive */
    .menu-del-dia-badge {
        font-size: 0.7rem;
        padding: 4px 8px;
    }
    
    .menu-del-dia-card {
        margin: 1rem;
        padding: 1rem;
    }
    
    .menu-del-dia-card h3 {
        font-size: 1.2rem;
        margin-bottom: 0.8rem;
    }
    
    /* Modal completamente responsive */
    .modal-overlay {
        padding: 0.5rem;
        z-index: 9999;
    }
    
    .modal-content {
        max-height: 85vh;
        border-radius: 12px;
        width: 100%;
        max-width: 100%;
        margin: 0;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .modal-header {
        padding: 1rem 1rem 0.5rem 1rem;
        position: sticky;
        top: 0;
        background: white;
        border-bottom: 1px solid #f0f0f0;
        z-index: 10;
    }
    
    .modal-body {
        padding: 1rem;
        max-height: none;
        overflow-y: visible;
    }
    
    .close-modal {
        width: 36px;
        height: 36px;
        font-size: 24px;
        top: 0.5rem;
        right: 0.5rem;
        background: rgba(0,0,0,0.1);
        border-radius: 50%;
    }
    
    /* Carrito móvil optimizado */
    .order-cart {
        position: fixed;
        bottom: 1rem;
        left: 50%;
        transform: translateX(-50%);
        z-index: 1000;
        padding: 0.8rem 1.5rem;
        border-radius: 25px;
        font-size: 0.9rem;
        box-shadow: 0 4px 20px rgba(0,0,0,0.3);
        width: auto;
        min-width: 140px;
        text-align: center;
    }
    
    .cart-count {
        font-size: 0.8rem;
        padding: 2px 6px;
        min-width: 18px;
        height: 18px;
    }
    
    .cart-modal {
        z-index: 9998;
        padding: 0;
        align-items: flex-end;
    }
    
    .cart-content {
        width: 100%;
        max-width: 100%;
        margin: 0;
        border-radius: 20px 20px 0 0;
        max-height: 90vh;
        min-height: 60vh;
        position: relative;
        display: flex;
        flex-direction: column;
        box-shadow: 0 -10px 40px rgba(0,0,0,0.2);
    }
    
    .cart-header {
        padding: 1.2rem;
        border-bottom: 1px solid rgba(255,255,255,0.2);
        position: relative;
        background: var(--primary-color);
        z-index: 10;
        flex-shrink: 0;
        border-radius: 20px 20px 0 0;
    }
    
    .cart-body {
        padding: 1rem;
        flex: 1;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        min-height: 200px;
        max-height: calc(90vh - 200px);
    }
    
    .cart-total {
        padding: 1rem;
        border-top: 2px solid #e5e7eb;
        background: var(--primary-color);
        flex-shrink: 0;
        position: relative;
        z-index: 10;
    }
    
    /* Filtros responsive */
    .filter-modal {
        z-index: 9997;
    }
    
    .filter-content {
        width: 100%;
        max-width: 100%;
        margin: 1rem;
        border-radius: 12px;
        max-height: 80vh;
        overflow-y: auto;
    }
    
    .filter-option {
        padding: 0.8rem !important;
        margin-bottom: 0.5rem;
    }
    
    .filter-title {
        font-size: 1rem !important;
    }
    
    .filter-description {
        font-size: 0.8rem !important;
    }
}

/* Mobile Small (480px - 575px) */
@media (max-width: 575px) {
    .header-content {
        padding: 1rem;
        gap: 0.8rem;
    }
    
    .restaurant-photo {
        width: 100px;
        height: 100px;
    }
    
    .restaurant-name {
        font-size: 1.4rem;
    }
    
    .restaurant-description {
        font-size: 0.85rem;
    }
    
    .families-grid {
        padding: 0 0.5rem;
        gap: 0.8rem;
    }
    
    .family-card {
        padding: 0.8rem;
    }
    
    .dishes-grid {
        padding: 0.5rem;
        gap: 0.6rem;
    }
    
    .dish-content {
        padding: 0.8rem;
    }
    
    .dish-name {
        font-size: 0.95rem;
    }
    
    .compact-header-actions {
        padding: 0.6rem 0.5rem;
        gap: 0.3rem;
        flex-wrap: nowrap;
        justify-content: space-between;
    }
    
    .back-button {
        padding: 0.6rem 1rem;
        font-size: 0.8rem;
        margin-right: 0.3rem;
        letter-spacing: 0.02em;
        min-width: auto;
        white-space: nowrap;
        flex-shrink: 0;
    }
    
    .filter-button {
        padding: 0.6rem 1rem;
        font-size: 0.8rem;
        letter-spacing: 0.02em;
        min-width: auto;
        white-space: nowrap;
        flex-shrink: 0;
    }
    
    .modal-content {
        border-radius: 8px;
    }
    
    .cart-content {
        border-radius: 8px 8px 0 0;
    }
}

/* Mobile Extra Small (menos de 480px) */
@media (max-width: 479px) {
    .header-content {
        padding: 0.8rem;
    }
    
    .restaurant-photo {
        width: 80px;
        height: 80px;
    }
    
    .restaurant-name {
        font-size: 1.2rem;
        line-height: 1.2;
    }
    
    .restaurant-description {
        font-size: 0.8rem;
    }
    
    .families-grid {
        padding: 0 0.5rem;
    }
    
    .family-card {
        padding: 0.6rem;
    }
    
    .family-card h2 {
        font-size: 1rem;
    }
    
    .dish-content {
        padding: 0.6rem;
    }
    
    .order-cart {
        padding: 0.6rem 1rem;
        font-size: 0.8rem;
        min-width: 120px;
    }
}

/* Orientación landscape en móviles */
@media (max-height: 500px) and (orientation: landscape) {
    .modal-content {
        max-height: 90vh;
    }
    
    .cart-content {
        max-height: 90vh;
    }
    
    .header-content {
        flex-direction: row;
        text-align: left;
        padding: 1rem;
    }
    
    .restaurant-photo {
        width: 60px;
        height: 60px;
    }
    
    .restaurant-name {
        font-size: 1.2rem;
    }
}
    }
    
    .close-modal {
        width: 35px;
        height: 35px;
        font-size: 1.2rem;
        top: 0.75rem;
        right: 0.75rem;
    }
    
    .add-to-order-btn {
        font-size: 0.8rem;
        padding: 0.5rem;
    }
    
    /* Menú del día responsive */
    .menu-del-dia-card {
        margin: 1rem;
        padding: 1.5rem;
    }
    
    .menu-del-dia-title {
        font-size: 1.5rem;
    }
    
    .menu-del-dia-precio {
        font-size: 2rem;
    }
    
    .menu-del-dia-badge {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }
    
    .menu-del-dia-cta {
        padding: 0.6rem 1.5rem;
        font-size: 0.9rem;
    }
    
    /* Carrito responsive */
    .cart-modal {
        padding: 0;
    }
    
    .cart-content {
        max-height: 92vh;
        min-height: 50vh;
        border-radius: 15px 15px 0 0;
    }
    
    .cart-header {
        padding: 1rem;
        border-radius: 15px 15px 0 0;
    }
    
    .cart-body {
        padding: 0.75rem;
        max-height: calc(92vh - 180px);
    }
    
    .cart-item {
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
        padding: 0.9rem;
        margin-bottom: 0.75rem;
        border-radius: 10px;
        background: #f9fafb;
    }
    
    .cart-item-top {
        display: flex;
        justify-content: space-between;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .cart-item-bottom {
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 1rem;
        padding-top: 0.5rem;
        border-top: 1px solid #e5e7eb;
    }
    
    .cart-item-total {
        min-width: auto;
        text-align: center;
        font-size: 1.1rem;
    }
    
    .cart-total {
        padding: 1rem;
    }
    
    .per-person-input {
        width: 60px;
        font-size: 1rem;
    }
}

/* Vista desktop para platos */
@media (min-width: 769px) {
    .dishes-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
        gap: 1.5rem;
        padding: 2rem;
    }
    
    .dish-card {
        flex-direction: column;
    }
    
    .dish-image {
        width: 100%;
        height: 200px;
    }
    
    .dish-content {
        padding: 1.5rem;
    }
    
    .dish-name {
        font-size: 1.3rem;
        margin-bottom: 0.5rem;
    }
}

/* Estilos para alérgenos */
.dish-allergens {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-top: 0.5rem;
}

.allergen-item {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 6px;
    padding: 0.2rem 0.5rem;
    font-size: 0.75rem;
    font-weight: 500;
    color: #dc2626;
}

.allergen-icon {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

/* Mejorar popup de filtros dietéticos */
.filter-option {
    display: flex;
    align-items: center;
    padding: 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.filter-option:hover {
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.filter-option.active {
    border-color: var(--primary-color);
    background: #f0f9ff;
    box-shadow: 0 4px 12px rgba(21, 85, 74, 0.15);
}

.filter-option input {
    margin-right: 1rem;
    transform: scale(1.2);
}

.filter-icon {
    width: 32px;
    height: 32px;
    margin-right: 1rem;
    flex-shrink: 0;
}

.filter-text {
    flex: 1;
}

.filter-title {
    font-weight: 600;
    font-size: 1.1rem;
    color: #374151;
    margin-bottom: 0.25rem;
}

.filter-description {
    font-size: 0.85rem;
    color: #6b7280;
}

/* Modal de filtros mejorado */
#filters-modal .modal-content {
    max-width: 600px;
    width: 90%;
}

#filters-modal .modal-body {
    padding: 2rem;
}

#filters-modal h3 {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

.filters-grid {
    display: grid;
    gap: 1rem;
    margin-bottom: 2rem;
}

@media (min-width: 768px) {
    .filters-grid {
        grid-template-columns: 1fr 1fr;
    }
}

/* --------------------------------------------------------------------------
   Reserva de espacio (20-08-2026)
   Sin proporcion declarada, la pagina saltaba al terminar de cargar cada foto:
   el usuario iba a pulsar un plato y se le movia debajo del dedo.
   -------------------------------------------------------------------------- */
.family-image {
    aspect-ratio: 4 / 3;
}

.dish-image {
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.restaurant-photo {
    aspect-ratio: 1 / 1;
    object-fit: cover;
}
